Questions tagged [salesforcedx-cli]

Questions relating to the `sfdx` binary that is supplied as part of the tools suite for Salesforce DX.

Filter by
Sorted by
Tagged with
0
votes
1answer
755 views

ERROR running force:auth:web:login: unable to get local issuer certificate - When Authorizing an Org in VS code

I have installed VS code and Salesforce CLI in my system.Now when I try to Authorize an Org using SFDC:Authorize an Org, It take me to the login page and also logs in and redirects to localhost:1717. ...
0
votes
1answer
955 views

command 'sfdx.force.project.create' not found?

I have installed Visual Studio code and Salesforce CLI(I confirmed in CMD by typing sfdx) but when I start new project in it says"command 'sfdx.force.project.create' not found".
3
votes
1answer
417 views

can't create scratch org (fatal ended with exit code 0 no error description)

I gather that this question has been asked before but so far I haven't found anyone with the same error (or lack thereof) since the VS code status says SFDX: Create a Default Scratch Org... ...
2
votes
2answers
264 views

FlowDefinition isn’t supported

I have an up to date SFDX and plugins. I continue to get the flow definition error when pushing with Illuminated Cloud to my scratch org. I am not sure what the next steps should be as I have followed ...
0
votes
0answers
101 views

Unable to deploy platform events from one sandbox to other

Trying to deploy platform events from one sandbox to another using jenkins. On plat form event we have trigger as well. While deploying it is throwing following error even though the package version ...
1
vote
1answer
413 views

Can Not Update SFDX

I am running into an error when I am trying to update my SFDX version in my cli and I am unsure what it means. Olivias-MacBook-Pro:test op$ sfdx update › Warning: Use "npm update --global sfdx-...
0
votes
0answers
9 views

Dashboard/Report on Salesforce/Outlook Integration Status

I have a requirement to create the Dashboard which will reflect the Salesforce-Outlook Integration Status of any specific User in Salesforce... Any ideas on how can we achieve it ? Thanks & ...
1
vote
2answers
694 views

Error while deployment through SFDX

I took the complete org backup from one org and trying to deploy it in another org. While deployment through the SFDX, I am getting the following errors: Invalid fullName, must end in a custom suffix ...
0
votes
1answer
63 views

Is this workaround would be helpful while getting UNABLE_TO_LOCK_ROW salesforce?

I'm getting UNABLE_TO_LOCK_ROW excpetion and tried couple of solutions like "FOR Update" in SOQL. Changed normal upsert statement to database.upsert & tried to catch,save failed records using ...
1
vote
1answer
833 views

SFDX cli force:source vs force:mdapi? [closed]

I have been reading some mixed comments about the difference between force:source vs force:mdapi. So far my assumption is that force:source is used for scratch org and force:mdapi is used for sandbox/...
0
votes
1answer
484 views

Jenkinsfile: Scope of Variables in Groovy

I need to segregate Target Environment based on JobName... Any idea what I may be doing wrong: Jenkinsfile #!groovy import groovy.json.JsonSlurperClassic node { def BUILD_NUMBER=env.BUILD_NUMBER ...
0
votes
0answers
509 views

VS code : Authorize Org failed

I am new to lightning web component. I have installed VS Code, salesforce extension pack inside VS code, Salesforce CLI and set environment variable C:\Program Files\Salesforce CLI in my system. When ...
2
votes
1answer
63 views

is it possible to pull code from expired scratch org in salesforce

I need to pull some of my code form scratch org but scratch org just expired and i did not take the pull of of my code.
1
vote
1answer
159 views

Connected app JWT authorization failed in Circle Ci

I have been trying to set up Circle ci with GitHub for continuous integration and continuous delivery(CI/CD) in salesforce dx project using this refernce link, but I'm facing an issue with the ...
2
votes
1answer
170 views

Salesforce DX authentication URL Expiration date

I have been going through this link Sfdx authorization for org and find out to check org information via salesforce cli we have to use this command below sfdx force:org:display --targetusername <...
2
votes
2answers
131 views

Enable ProfileSkillEndorsement/ProfileSkillUser/ProfileSkill for Scratch Org

Any idea how to get Custom Objects like ProfileSkillEndorsement, ProfileSkill & ProfileSkillUser in my Scratch Org. I have created a Scratch Org but during my metadata deploy I am getting the ...
1
vote
1answer
294 views

ERROR running force:source:delete - The delete operation failed in the org. Review the error messages below

I am trying to delete an Aura Component by right clicking on the file contents and selecting: SFDX: Delete This from Project and Org But it's not working... I get this message in the output panel:...
3
votes
1answer
323 views

DX is throwing an error while deploying to production

After running sfdx force:mdapi:deploy -d directory -u Production, It runs successfully and queue the deployment and gives the below message To check the status of this deployment, run "sfdx force:...
1
vote
1answer
2k views

ERROR running force:source:push: Push failed

I have been working on some classes using VS code and SFDX. I created a scratch org and pushed code to it using: sfdx force:source:push -u MY_ORG_ALIAS The push was successful. I continued ...
0
votes
0answers
38 views

Salesforce CLI Installation error - The Requested Operation requires elevation

I downloaded salesforce CLI from here However when i run the .exe file, I get the error I searched for solutions online, and tried all options as suggested but unable to get past this error. If ...
0
votes
0answers
365 views

sfdx force:source:deploy fails with UNKNOWN_EXCEPTION

Yesterday it worked, but when I deploy my DX projects to my Sandbox using sfdx force:source:deploy -p ./force-app -l RunLocalTests -u TargetOrg -w 15 it fails with: === Component Failures [1] TYPE ...
3
votes
2answers
2k views

Run specific apex tests during “sfdx force:source:deploy”

Now after summer 19, sfdx force:source:deploy allows us to push source format meta-data into static orgs and production. Commands are introduced here However by check the help of sfdx force:source:...
4
votes
1answer
431 views

VS Code Salesforce plugin deploy does not provide an error message

VS Code plugin for salesforce seems to be broken yesterday, It does not provide proper error message in case of failure. Tried this in a developer org as well as scratch org. Neither deploy code or ...
3
votes
0answers
267 views

DX Orgs and Custom Settings

I ran into an issue whereby I created a hierarchy custom setting in my DX scratch org but when I used the SDFX CLI to pull down the metadata it was ignored. I had used list custom settings before and ...
1
vote
1answer
74 views

How to add ignore managed package components in forceignore file?

How to ignore packaged components in forceignore file? I tried with below but not working. can you please look and suggest to me. **/*CloudingoAgent__* *CloudingoAgent__* package namespace start ...
0
votes
1answer
143 views

How to check deployment history in production org

In production org when I click on the deployment status, it shows a list of passed and failed deployments like below image if it is deployed from a changeset then in name section it shows the name ...
2
votes
1answer
115 views

How is this possible to use the Salesforce CLI after changing my user's password?

Couple of days ago, when logging in to the Org via browser, I was prompted to update my password. Last time I used Salesforce CLI was 2 weeks ago and today I had to do it again. However, no password ...
1
vote
2answers
157 views

Why “sfdx force:auth:web:login” encounters runtime error, and how to get around it?

I am trying to develop with Salesforce DX. There is a new problem since I restarted this project after a two-month break. Every variation of the auth:web:login command fails the same way. force:org:...
0
votes
1answer
37 views

Salesforce CLI not available in sandbox

Under Connected Apps OAuth Usage, Salesforce CLI is not available to install. How to get it like below image
1
vote
1answer
714 views

Unable to login sandbox using Salesforce CLI

{ Error: spawn cmd ENOENTat Process.ChildProcess._handle.onexit (internal/child_process.js:240:19)at onErrorNT (internal/child_process.js:415:16)at process._tickCallback (internal/process/next_tick.js:...
5
votes
3answers
185 views

enable “Data Protection and Privacy” when creating scratch org

Is there any way how to automatically enable "Data Protection and Privacy" option during creation of scratch org (in definition file)? I didn't found any mention about this metadata in Metadata API ...
7
votes
1answer
171 views

Is this possible to rename a field using Tooling API or Ant Migration Tool or SFDX CLI?

I have tried to run renameMetadata call from Ant Migration Tool <target name="1. Rename field on Sandbox"> <sf:renameMetadata username="${sf.Sandbox.username}" password="${...
7
votes
1answer
289 views

Scratch org was created with entitlements enabled, but pulling the source results in entity not found?

I created a scratch org with the following definition file: { "orgName": "Company, Inc", "edition": "Enterprise", "features": ["PersonAccounts", "ServiceCloud"], "settings": { "...
0
votes
1answer
182 views

Error When Deploying Quick Action With Predefined Lookup Field

I have a Quick Action which works fine and has predefined field to a lookup record, AddressType, though it happens in all cases. When deploying to scratch org I get error Formula result is data ...
0
votes
1answer
445 views

Getting error: The service and account specified in key.json do not match the version of the toolbelt

I am new at Salesforce DX. I am trying to connect to my account from sfdx plugin, I typed in the terminal: sfdx force:org:open -u my_username but it gives me an error: ERROR running force:org:...
1
vote
1answer
94 views

Add AppExchange app dependency in sfdx-project.json

We are trying to build up a scratch org with sfdx-project.json file. Post that we are deploying all the live code to it from git. Now during the code deploy, we are facing issues due to the fact that ...
1
vote
3answers
836 views

Generate sfdx-project.json

I would like to create a new version of my package. I work with Jenkins so I clone my git repository once time ==> my sfdx-project.json is in default : sfdx-project.json : { "packageDirectories": [...
5
votes
1answer
314 views

How do I reset the SFDX CLI Runtime Global Configuration Values?

I had sometime back set the apiVersion CLI Runtime Configuration value globally for all projects to version 45.0 when I signed up for Spring '19 preview sandbox, using the command: sfdx force:config:...
1
vote
1answer
169 views

SFDX hello:org plugin not available when installed from npmjs

I've create a SFDX Plugin with sfdx plugins:generate. When the plugin is linked using sfdx plugins:link . the command hello:org is available and work properly. When this same plugin is deployed to ...
0
votes
0answers
168 views

Create scratch org error: storage limit exceeded

I have an old dev org with dev hub enabled. I'm trying to create the first scratch org for this one but I'm getting the following error: storage limit exceeded I'm creating the scratch org using ...
0
votes
0answers
20 views

SFDX Modular Package Development

Is it possible to push source for different package directories? Using Easy Space LWC as an example, I would like to work on es-base-objects (develop on a scratch org and build on CI), how is that ...
1
vote
1answer
482 views

How to create scratch orgs with custom object/fields

New to DX and I faced the following issue: In my Prod environment I have set of custom objects & custom fields. When I create scratch Org I would I like this Org to have all these fields, so the ...
6
votes
0answers
122 views

Enterprise edition Scratch Org with Customer Community Licenses

Looking to understand whether it is possible to get Customer Community licenses in an Enterprise Edition Scratch Org. Scratch Org definition I tried to use for this was the following: Scratch Org ...
1
vote
1answer
69 views

DX retrieve metadata folder for deployment - folder self destructs

I'm attempting to retrieve metadata from my sandbox org in order to deploy to production. I've been doing this over the past month or so using the following commands in my VSCode terminal: export ...
0
votes
0answers
14 views

Uploading SSL Certs

Is it possible to upload an SSL certificate and/or custom branding media via self created DX package? I saw that there are database entries for those things in the SOQL workbench but not sure if they ...
1
vote
0answers
23 views

Test SalesforceDX CLI Plug-in documentation

Does anybody knows where can I found the documentation explaining how to test SalesforceDX Plug-ins? I am asking specifically about testing SFDX CLI Plugins and not how to create the Plug-ins.
1
vote
1answer
2k views

DeployFailed: Deploy failed. Visual studio code - Deploy to source code failed - SFDX Lightning Component Trailblazer

I tried to do the trailhead module "Create a Hello World Lightning Web Component" and I followed all the steps but when I do deploy to source to org, it fails. The error which I get is: "DeployFailed: ...
1
vote
0answers
24 views

Assigning Connected App to Permission Set through SFDX

I'm working on scripting out a scratch org that will have a Connected App w/ a Permission Set. I can get the Connected App & Permission Set imported from JSON, and I can assign a user to the ...
1
vote
1answer
200 views

Authorize a DevHub using SalesforceDX without password

I am working on SalesforceDx and I have to authorize my devhub by just using Username of the org I dont want to enter password. I have tried JWT token for authorization but it uses an OPEN SSl ...
3
votes
0answers
258 views

Pushing a Connected App with the SFDX CLI results in “invalid cross reference id”

I'm working towards moving an existing managed package over to the SFDX CLI metadata format. Part of the application is a Connected App which forms a core part of a SSO process to an external system ...

1 2 3 4 5 8