Questions tagged [salesforcedx-cli]

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

127 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
10
votes
0answers
318 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 ...
8
votes
0answers
4k 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
1k 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
176 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
2k 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:...
5
votes
0answers
642 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
145 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 ...
5
votes
0answers
317 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 ...
4
votes
0answers
279 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' ...
4
votes
1answer
457 views

force:source:pull fails with Can't retrieve non-customizable CustomObject named: ApexTestResult

I deployed source to a scratch org, then ran some unit tests locally in the org. Now when I do sfdx force:source:pull I get: ERROR running force:source:pull: Can't retrieve non-customizable ...
3
votes
0answers
61 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
149 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....
3
votes
0answers
207 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 ...
3
votes
1answer
58 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
0answers
81 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
405 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
429 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 ...
3
votes
1answer
210 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
820 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
790 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
22 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
74 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 ...
2
votes
0answers
37 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
33 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
0answers
413 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
88 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
57 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 ...
2
votes
1answer
572 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....
2
votes
2answers
469 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 ...
2
votes
0answers
30 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
383 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
1answer
304 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 ...
2
votes
2answers
2k views

Error on running SFDX CLI command

When I try to run a command -- (for example: sfdx update), I get the following message on the cmd prompt: Attempting to contact update site.. S3 host is not reachable.. Has anyone here come across ...
2
votes
0answers
70 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
108 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 ...
2
votes
1answer
270 views

SALESFORCE DX: Ancestor package version not installed when creating new scratch org

{ "packageDirectories": [ { "path": "force-app", "default": true, "ancestorId" :"05i7F000000CaRgQAK", "id": "0Ho7F000000GmbCSAS", "versionName": "Version 1.0", "versionNumber": "1.0.0....
2
votes
0answers
134 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....
2
votes
0answers
69 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
318 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
18 views

How ignore Entitlement Process in Salesforce DX CLI?

I tried many times to ignore the Entitlement process (with versioning enable) and was unable to do it. All Scratch organizations that I created, after the first push, the first pull return many errors ...
1
vote
0answers
33 views

Problem When Creating Scratch Org

I'm trying to create a Scratch ORG, but everytime I get the same error: Failed to deploy settings to scratch org. When I run Terminal, I got the following message: shape/settings/Bot.settings ...
1
vote
0answers
32 views

SFDX error for external objects

I have added external object in an unlocked package. This object is getting call from apex classes. I have added the datasources also. But getting errors like below: 1. Invalid type: Schema....
1
vote
1answer
30 views

Anybody knows where we can enable/disable “Make Setup My Default Landing Page” of user record programatically?

I've been trying to understand where we can toggle "Make Setup My Default Landing Page" field of user? My intention is to build a scratch org and at the same time I want to disable this after scratch ...
1
vote
3answers
232 views

Does SFDX force:mdapi:deploy respect .forceignore file?

I'm trying to work in a github repository project that is not in Source format and is using Metadata API format structure. The repository has stored all component code into an src folder including ...
1
vote
1answer
289 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 ...
1
vote
0answers
20 views

SFDX unlocked package error for recordtypes

I have case object in my unlocked package. While versioning of case object I am getting errors for reacordtypes. "case.recordtype name" Case.Recordtype name: duplicate value found: is a duplicate of ...
1
vote
0answers
168 views

VS Code SFDX Salesforce CLI Deployment issue

From VS Code when trying to run below command sfdx force:source:deploy --manifest c:\temp_worspace\temp-folder\manifest\package.xml --json --loglevel fatal Getting below error ...
1
vote
0answers
585 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? ...
1
vote
0answers
89 views

SFDX: Get Apex Debug Logs for Site Guest User in VS Code

How do I get Debug Logs for Site Guest User in VS Code? I ran SFDX: Get Apex Debug Logs and I can see debug logs for my user. But what I want is debug logs for Site Guest User which I don't see in the ...
1
vote
0answers
42 views

Testing custom salesforce plugin

I am currently trying to test a custom salesforce plugin which deploys a payload to a specific org. The plugin itself is coded in typescript and the unit tests are using mocha/chai. I am running ...