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
0answers
25 views

Salesforce development best-practice

Are there any best-practice Salesforce resources for Git/Jenkins development/deployment? Surprisingly, I can't find anything current in the Salesforce docs. I have set up Visual Studio Code with the ...
1
vote
1answer
21 views

SFDX FORCE:DATA:TREE:EXPORT Nested __r Relationship Query

I am attempting to export data using the FORCE:DATA:TREE:EXPORT CLI command, using a nested query like the following (for use in our Scratch-Orgs): SELECT ...,(SELECT ... FROM My_Custom_Object__r) ...
1
vote
1answer
33 views

Package hosting options

There are two commands: sfdx force:package:create --name "MyApp" --description "MyApp" --packagetype Unlocked -r force-app sfdx force:package:version:create --package MyApp --installationkey ...
1
vote
1answer
30 views

How to retrieve new meta from the org

I have new classes, pages, etc in the my Salesforce org. Is it possible to update the project with all new files?
0
votes
2answers
23 views

VSCode Lists Erroneous Apex Problems

I'm using VSCode with Github and Deploying to a Sandbox. When I save my classes, VSCode lists problems which don't exist and which don't clear when the class is deployed successfully. For example, all ...
1
vote
1answer
29 views

Analysis for SFDX Apex || sonarqube Community Edition

Is there a way to support SFDX Apex Analysis with sonarqube Community Edition version 7.2 or above. If not then is there any previous Community version which may support it ? Many thanks in advance.
3
votes
1answer
18 views

Automatically close Output window in vsc running salesforce CLI

I have switched from Sublime to VSCode. I have found ways to make most of VSCode work the way I want. The main thing I wish I could do is when I deploy to the org if it is successful I would like ...
4
votes
0answers
46 views

SFDX - symbolic link error

Symbolic links are no longer working, at least they are not when using salesforce-cli v46.9.0. Unexpected errors are presented when pushing code to scratch orgs (sfdx force:source:push). The push/...
0
votes
1answer
19 views

timed out error in salesforce dx when on office network

When I am using my office network I am not able to deploy code to any sandbox using salesforce dx it shows the timed out error and when I use sfdx force:org:list in CLI it shows all org's connected ...
0
votes
0answers
9 views

Transaction Security || Condition Builder || Notifications for Attachment Download

I am trying to build up a Transaction Security Policy via Condition Builder that will trigger for the Attachment Downloads within my Org. However, I am not able to write the Condition Builder Logic ...
4
votes
1answer
61 views

How can I fix sfdx error: “The \”path\“ argument must be of type string. Received type undefined”

I'm getting an error similar to this post and I've checked to see if I could resolve it in the same way, but it appears to be a different issue. Whenever I try to push, deploy or convert to metadata, ...
4
votes
1answer
37 views

Standardized Production to Scratch-Org Approach

We are currently in the process of moving from using Welkin Suite and Classic to SalesforceDX/VS Code/Scratch-Orgs. Is there a standardized approach or automated process for making a Scratch-Org look ...
3
votes
2answers
63 views

Merge Branch || git diff not including .gitignore files

I have 2 branches in SFDX enabled project. mybranch and develop. I want to merge selected changes from develop and then merge those in mybranch. As a starting point I am trying to use git diff to see ...
2
votes
0answers
34 views

Issue to push static resource (single files and zip) using SFDX

have any of you faced issues to push static resources to scratch orgs using SFDX v46.8.0? Asking because I faced this issue and had to revert back salesforcedx plugin to 46.6.0. path\singleFile....
3
votes
0answers
24 views

Is Anyone Else Seeing sfdx force:apex:log:tail Only Using The SFDC_DevConsole DebugLevel Regardless of Setting --debuglevel Flag

Okay so I've read the answer here How do I set the log levels for force:apex:log:tail? as well I have read all the documentation I can find for the sfdx force:apex:log:tail command. And everything I ...
0
votes
1answer
76 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
54 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
59 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
46 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
13 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 ...
0
votes
1answer
56 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
8 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
71 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
53 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
117 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
25 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
80 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
35 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
49 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
58 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
1answer
32 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
73 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:...
2
votes
1answer
73 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
696 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
21 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
127 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 ...
2
votes
1answer
230 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
182 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
70 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
39 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
37 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
106 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
1answer
83 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
33 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
0
votes
1answer
230 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
2answers
96 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
75 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
121 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
42 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
107 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:...