Questions tagged [salesforcedx-cli]

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

188 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
10
votes
0answers
380 views

Scratch orgs and Critical Updates

I notice that all the scratch orgs I've been creating starting in Spring '18 open up with a reminder to Enable the New URL Format for Lightning Experience and the Salesforce Mobile App. Another update ...
10
votes
0answers
8k views

SFDX Deploy: Global Value Set Cannot Be Resolved

I am trying to use DX to deploy to a sandbox. It has been a major hassle. At this point the only error I get is this: Global value set 'External_Evaluation_Required__c' in record type 'Exception' ...
7
votes
1answer
2k views

SFDX mdapi convert does not generate necessary object-meta.xml

I have a simple package that I pulled down from my production org that I am now looking to push:source to a scratch org. The issue is that when I run sfdx force:mdapi:convert -r test/unpackaged I ...
6
votes
0answers
75 views

Getting error when generating an unlocked package version using a scratch org definition file

I am currently generating a package version using CLI and I am using this following definition file: { "orgName": "scratch-org", "edition": "Developer", &...
6
votes
0answers
543 views

Character encoding difference between source:retrieve vs mdapi:retrieve?

Here is the screenshot of a simple validation rule in Salesforce: and I am now going to retrieve this validation rule using three different options and notice how the ' (apostrophe) is escaped(or ...
6
votes
0answers
324 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 ...
6
votes
0answers
3k views

DX: force:source:pull returns "no results found" immediately after "force:source:status" reports Remote Changed?

Spun up a new scratch org and pushed source that was just converted from MDAPI. Logged into the org and activated a lightning home page that was part of the source push. After which, sfdx force:...
6
votes
1answer
382 views

How do I manage my salesforce communities with sfdx?

I have a salesforce community site, and it is built off mostly visual force pages and apex classes. I would like to move the 'application' into sfdx. I am able to, with a little coaxing, deploy the ...
5
votes
0answers
1k views

Why CLI response time is very slow via Command prompt?

I am using Salesforce CLI and Visual studio code for Salesforce DX. The command prompt is taking very long time to execute the sfdx command. Is this because the system configuration which I am using ...
5
votes
0answers
213 views

BASH variables in SFDX breaking dot notation in queries

With the most recent update to SFDX CLI, I've noticed that my queries that use dot notation in the select now retrieve null for dot notation columns if I use a bash variable. It's really quite ...
4
votes
0answers
330 views

ERROR running force:package:version:create: No matching source was found within the package root directory

I'm trying to update an unmanaged package that I've been developing and am running into the following error when running the following command: sfdx force:package:version:create -p SomePackage -d ...
4
votes
0answers
422 views

How do we deploy an Experience Bundle to a scratch org properly?

I'm finding it almost impossible to create a Scratch Org and push all code along with an Experience Bundle (Community). The Community has custom pages that reference Custom Objects in list component. ...
4
votes
0answers
600 views

ERROR: Failed to decipher auth data. reason: Unsupported state or unable to authenticate data

I am getting this error: Failed to decipher auth data. reason: Unsupported state or unable to authenticate data. Anytime I try to run a sfdx force:auth, force:org:display, force:org:open command....
4
votes
0answers
307 views

Salesforce DX - Help for data:tree:export

I have a dev hub trial org where I have created an account record with the name 'Chaser' and it has an Id of '0011N00001Eam4C' When I run the following command, I receive 'Query Returned No results' ...
3
votes
0answers
293 views

Payload Error - Unknown type name 'CustomFieldTranslation' specified in package.xml

I want to deploy / retrieve CustomFieldTranslations for any object to a Sandbox, but receive an error: Unknown type name 'CustomFieldTranslation' specified in package.xml I tried to deploy via path, ...
3
votes
1answer
240 views

Scratch org - Pushing email alert which are using OrgWideAddress

I want to push the code which has email alerts. However, it is not allowing because in the email alert its using org-wide address. I searched and it seems not possible at this moment(v50.0). However, ...
3
votes
0answers
679 views

SFDX: Get Apex Debug Logs returns "undefined"

This is driving me insane - I am no longer receiving full log files when running SFDX: Get Apex Debug Logs via VS Code's command palette. Instead, I get an empty file with the correct file name, but a ...
3
votes
1answer
1k views

ERROR running force:data:tree:import: The requested resource does not exist when using force:data:tree:import

I'm having some trouble with importing Json file which containing data in SObject using sfdx force:data:tree:import -p ./data/Project__c-Round__c-plan.json It spits out an error which is: ERROR ...
3
votes
0answers
78 views

Sandbox not authenticating after creation

I'm trying to create a regular developer sandbox and waiting for it to self authenticate (as described in the salesforce documentation If the sandbox is created within the wait time, the CLI ...
3
votes
0answers
97 views

Creating data with DX/CLI referencing existing records

When setting up a scratch org for CI/QA or development purposes certain "records" like the standard profiles and some other record like Accounts & Contacts ("hasSampleData": "true") are created ...
3
votes
1answer
123 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 ...
3
votes
2answers
1k 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
225 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 ...
3
votes
0answers
630 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 ...
3
votes
0answers
36 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.
3
votes
1answer
430 views

ERROR: Cannot create an AuthInfo instance that will overwrite existing auth data

Background I get this error message: ERROR: Cannot create an AuthInfo instance that will overwrite existing auth data. In the VSCode output panel, when I try and run a unit test: Starting Run ...
3
votes
1answer
245 views

SFDX auth login is throwing an error "Windows cannot find error opening a https://login.salesforce... Make sure you typed the name correctly"

When I try to login to Dev Hub using this command in the terminal: sfdx force:auth:web:login --setdefaultdevhubusername --setalias NewDevHub I encountered an error as shown in the picture above. I'...
3
votes
0answers
148 views

Push custom profiles to Scratch org using Salesforce CLI

I pushed custom profiles to scratch org from my dev org. But permissions of profile were not set in scratch org. I want my scratch org profiles to look exactly same as in my developer org. Please let ...
3
votes
0answers
187 views

ERR_CONNECTION_REFUSED on DX DevHub trial org

I'm not sure what I'm doing wrong, but I signed up for a DevHub trial org, got the verification email, clicked the verify link and immediately got a This site can’t be reached [domain].my.salesforce....
3
votes
0answers
1k views

Salesforce DX errors Pushing to scratch org

I'm using DX to push my metadata from an existing org to a scratch org. I have no idea how to resolve this errors and I have looked online but no help and also I looked someone posted here but did not ...
3
votes
0answers
951 views

DX force:source:pull ERROR: Cannot read property 'fileName' of undefined

What could cause this, and what can I do to fix it? I think this stemmed from a change I made to a custom object, Invention__c. I deleted the default "Invention Layout" and replaced it with two ...
2
votes
0answers
38 views

sfdx force:org:list hangs

When I run the following command in either the VS Code terminal window, or a Windows Command Prompt, it returns all of the orgs, but hangs: sfdx force:org:list Is there some other way I should be ...
2
votes
0answers
485 views

Specifying individual CustomField in package.xml (vscode) does not deploy to Org, but when retrieving by object it does?

When retrieving CustomFields in package.xml by specifying: <types> <members>ObjectName.FieldName__c</members> <name>CustomField</name> </types> They retrieve ...
2
votes
0answers
122 views

DX CLI - Cant find Error after moving a folder

I recently took a folder on my desktop and made it the child of another folder, and now get the following error message when running commands in the CLI: (node:13468) Error Plugin: sfdx-cli: could not ...
2
votes
2answers
1k views

While I am trying to deploy LWC component I am getting error as "Value too long for field" in VS code.Does anyone have solution for this

force-app\main\default\lwc\sampleLWC\sampleLWC.js-meta.xml Failed to save Lightning Component Resource [lwc/sample/sample.js] of Lightning Component Bundle [sampleLWC]. Error: Value too long for ...
2
votes
0answers
144 views

SFDX Snapshot - Unsupported snapshot signup request fields: Namespace

How to create a scratch org from a snapshot with namespace? Any workaround or solution? Error { "status": 1, "name": "INVALID_INPUT", "message": "Unsupported snapshot signup request fields: ...
2
votes
0answers
76 views

SFDX versioning error for leadsource field

I have account,contact, opportunity,case and lead in my unlocked package. For case entitlements,multicurrency fields (ex. currencyisocode, slastartdate, entitlementid etc.) I have added ""features": [...
2
votes
3answers
1k views

Project is not created after running SFDX: Create Project in VS Code

I have issue while creating a project using either SFDX: Create Project or SFDX: Create Project with Manifest command. I don't receive any error but the project is not created. The variable path is ...
2
votes
0answers
5k views

SFDX deploy ECONNRESET

During a sfdx deploy, the CLI launched a random exception: ERROR running force:source:deploy: read ECONNRESET Build step 'Execute shell' marked build as failure Someone has an idea of the problem? ...
2
votes
0answers
771 views

ERROR While running sfdx force:source:deploy command

I am getting an error while running: sfdx force:source:deploy -u Sandbox -x pathToPackage.xml My deployments were just fine but after I did a sfdx force retrieve from a sandbox then I started to get ...
2
votes
1answer
285 views

SFDX CLI export more than 10k records

I'm trying to export records from an object that holds 20k records, and I'm using the sfdx force:data:tree:export command but it returns a max of 10k records. How do I export the remaining records, ...
2
votes
0answers
71 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 ...
2
votes
0answers
518 views

'ENOENT': spawn cmd ENOENT error while authorizing sandbox org in VSCode

Hi I have installed VS Code and salesfoce CLI, extensions also. I have created my first project. When i am tryin to authorize org in it i am getting below error: Starting SFDX: Authorize an Org 14:...
2
votes
0answers
81 views

Do subsequent Unlocked Package version installs deploy FLS?

I've created an Unlocked Package using Salesforce CLI and installed the first version in an org. I've checked the Field Level Security for each Profile and they were all correct. But when I changed ...
2
votes
0answers
99 views

Report metadata cannot be found after pulling renamed report folder with DX

I have a report and folder in my scratch org. The report was renamed from Custom_Reports to Org_Reports. Now I receive the following error when attempting to execute the force:source:pull -f command: ...
2
votes
0answers
335 views

Salesforce DX - Managed packages

I am trying to convert one of our managed packages to DX. I run into trouble when converting the Metadata Package into DX format using the command sfdx force:mdapi:convert -r ./temp/ I get an error ...
1
vote
0answers
25 views

Unable to open Scratch org - force:org:open times out

For the last week I was unable to work with scratch orgs on multiple computers, multiple networks and DevHubs. Simply because I am not able to open the always successfully created scratch orgs. No ...
1
vote
0answers
22 views

Apex Log manager needed, or way how to filter big amount of logs

I'm looking for some tool, or extension for managing/ searching Apex logs. My main problem is I can produce very easily, a lot of logs by myself and ofc I'm not alone. Basically, when I reload one ...
1
vote
0answers
51 views

Unexpected file found in package directory lwc\jsconfig.json

On 12/13/2021, I attempted to run sfdx force:source:push -f to a scratch org. Since then I have been getting this 'Unexpected file found in package directory lwc\jsconfig.json' error every single time ...
1
vote
1answer
23 views

how to programmatically turn on Einstein email tracking settings in scratch org

EDIT: my question is prob a diff way to ask this I get this error in my CLI when pushing source: In field: field - no CustomField named ListEmail.DeliveryRate and I've discovered that the error is ...