A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

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
21 views

sfdx force:auth:web:login freezes

When I try to authenticate to the org by going to "VSCode" and clicking on "No Default Org Set" then Select the environment and then I type alias name. The spinner comes at the bottom right of the "...
3
votes
1answer
69 views

Retrieving Metadata from Org using VS Code and CLI results:- MaxListenersExceededWarning: Possible EventEmitter memory leak detected

I am seeing a new warning message when retrieving metadata from VS Code. The metadata retrieval is successful but also getting below message. Steps to reproduce:- I have created a Lightning Web ...
0
votes
0answers
12 views

Command Line DataLoader in Salesforce unsupported option -g [duplicate]

I am trying to set up Command line Data loader by following steps here (https://www.jitendrazaa.com/blog/salesforce/tutorial-of-command-line-dataloader-salesforce/) I am getting an error(see screen ...
1
vote
2answers
31 views

Unable to authorize the org in vscode

When i tried to authorize the org via vscode this issue is showing.After killing process id 1717,another issue is showing.Here is the issue { Error: spawn cmd ENOENT at Process.ChildProcess....
1
vote
0answers
18 views

How to install specific version of sfdx plugin? [duplicate]

If I'm currently on salesforcedx 47.15.0 as shown from sfdx plugins --core, is there a way to install/update the salesforcedx plugin to version 47.09.0? I originally installed the sfdx-cli from the ....
1
vote
1answer
28 views

How to install a managed package with permission set licenses into a scratch org?

I'm working on scripting an installation of a managed package with SFDX. I can install the managed package with the following command: sfdx force:package:install -p 04t0V000000xDxuQAE Where, the "...
1
vote
0answers
35 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
votes
2answers
14 views

Record Level Translation in sfdc

I came across a requirement in which users should be able to input the record data in salesforce using thier native language and should be able to view in thier native language. I know this is not ...
0
votes
3answers
66 views

sfdx' is not recognized as an internal or external command, operable program or batch file

Unable to get past this error when Creating the Hello World Lightning Web Component I checked the path variable as described here
2
votes
2answers
37 views

Error parsing file: LWC Metadata Xml Parser: Unexpected element: runtimeNamespace

I am trying to deploy an LWC and get this error : "Error parsing file: LWC Metadata Xml Parser: Unexpected element: runtimeNamespace". Here is the code of my js-meta.xml <?xml version="1.0" ...
0
votes
1answer
49 views

Specify a valid template error while creating project in VS code

I am currently running Salesforce CLI version 6.44.0. When I configure the project in VS code then face an error that mentioned in heading of this question. In order to resolve the error, I updated ...
0
votes
1answer
27 views

.bat file exits immediately after executing first sdfx command

We have a batch script (windows) that creates a Scratch ORG and installs the packaging, licensing and setting we need for development/testing. It is failing in a particular machine (working fine in ...
3
votes
0answers
35 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....
0
votes
1answer
37 views

Automating scratch org with sfdx plugins

I have been looking to automate the process of creating a scratch org, pushing source (metadata), assigning the permission sets, resetting the password, open the org and much more. After doing some R&...
0
votes
0answers
25 views

Selenium WebDriver and Developer Console

So I'm automating some different things with Selenium WebDriver in one of our orgs. One of the more tricky ones has been interacting with the Execute Anonymous window inside of the developer console. ...
3
votes
1answer
87 views

How to do SFDX source deploy to non-scratch org with destructive changes

I have a question around SFDX source deploy to non-scratch org, with destructive changes using CI/CD pipeline: ## Authenticate with your playground or sandbox environment $ sfdx force:auth:jwt:grant -...
1
vote
1answer
86 views

SFDX in VS Code no longer working as expected

I am facing the issue while Authorize the org in Visual Studio Code editor for Salesforce project. Error details are below - Starting *AURA* language server at c:\Users\james Loading support library:...
0
votes
0answers
24 views

force:mdapi:convert command fails when source has a utility js file

I'm trying to follow the SFDX Developer Guide to convert an unlocked package to SFDX source format I'm receiving the following error: $ sfdx force:mdapi:convert --rootdir mdapipkg --outputdir ...
2
votes
1answer
32 views

sfdx force:org:create error “IndustriesActionPlan is not a valid Features value.”

I'm getting an error creating a scratch org with the IndustriesActionPlan feature. This was working about 2-3 weeks ago, but now something is different. I'm using the command on the command line ...
1
vote
0answers
47 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? ...
0
votes
1answer
61 views

SFDX Remove packages dependencies from repository

An sfdx project was gave it to me from a repository, with the request of deploy it in a Development sandbox and start to test it with scratch orgs. The command: force:source:deploy fails with this ...
0
votes
2answers
63 views

Issue while authorizing an org : Kill the process running on port 1717

Currently I am unable to authorize an org due to the below error. Kill the process running on port 1717 or use a custom connected app and update OauthLocalPort in the sfdx-project.json file. I have ...
2
votes
1answer
31 views

SFDX: Package dependency on unpackaged stuff

Is there a way to make a package dependent on unpackaged stuff (not another package)? without having to turn that stuff itself into unlocked package. without including its metadata in package. The ...
0
votes
1answer
27 views

How to create scrach org when using Partner Developer Edition org?

We have a Partner Developer Edition org which has environment hub. This was created a few years ago. We are in the process of upgrading our development practices to use SFDX and scratch orgs. The ...
1
vote
2answers
89 views

Retrieving Custom Object using Visual Studio Code and Salesforce CLI

Using Visual Studio Code and Salesforce CLI I am trying to retrieve a "Custom Object" details. But I was not able to fetch it. I am getting the below error. Error: sfdx force:source:retrieve --...
0
votes
0answers
20 views

SFDX error for case recordtype

Facing two issues during DX package versioning: 1.I am facing error in case object while versioning the package. Error : "Case.Recordtypename: duplicate value found: is a duplicate of the value in ...
0
votes
1answer
23 views

Retrieving Case Object using Visual Studio Code and Salesforce CLI

Using Visual Studio Code and Salesforce CLI I am trying to retrieve "Case Object" details. But I was not able to fetch it. But the Account object is retrieved. Any particular reason? Did anyone face ...
1
vote
0answers
42 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 ...
0
votes
1answer
42 views

Get dynamic file name in CLI dataloader (import)

How to get dynamic file name with name example "NameFileFormatYYYYMMDD.csv"? My code looks like this <bean id="accountInsert" class="com.salesforce.dataloader.process.ProcessRunner" ...
0
votes
0answers
18 views

Quick Start: Salesforce DX trailhead error when running push command

I am trying to go through the trailhead for salesforce dx. https://trailhead.salesforce.com/content/learn/projects/quick-start-salesforce-dx/create-and-test-our-scratch-org Everything works ...
1
vote
2answers
126 views

List of valid keys for sfdx-config.json?

This article (Select the Salesforce Release for a Scratch Org) describes the ability to globally configure the default api version for created scratch orgs via the force:config:set command: sfdx ...
1
vote
1answer
81 views

Error invalid_grant - expired authorization code while running sfdx force:auth:jwt:grant

I run the command from my build job within Teamcity CI: sfdx force:auth:jwt:grant --clientid '%SFDX_HUB_CONSUMER_KEY%' --jwtkeyfile config/server.key --username %SFDX_HUB_USERNAME% --setalias hub1 --...
7
votes
2answers
577 views

ERROR running force:source:pull: Entity of type 'Workflow' named 'Workflow' cannot be found

I am having issues when pulling Workflows using SFDX with VS Code. The error that I get when pulling in the Workflow (sfdx force:source:pull) is: ERROR running force:source:pull: Entity of type '...
0
votes
1answer
203 views

Project Creation While via VS code in Lightning Web Component

I am trying to create the Project from my terminal windows in VS code from running the command as below: sfdx force:project:create -n "LWC Session" Getting error as below : {WARNING: apiVersion ...
1
vote
1answer
105 views

auth login instanceurl with parameter

When I directly go to the url https://test.salesforce.com/?un=test%40example.com.sbname (using @ instead of %40 works as well) from a browser, sandbox login page opens up with prefilled username value ...
4
votes
2answers
205 views

Activate Communities Settings: “Allow using standard external profiles for self-registration and user creation.” in a scratch org config file

Since Winter20, we have some test classes failing because of new Community Setting Allow using standard external profiles for self-registration and user creation. The problem is that we have ...
2
votes
1answer
35 views

How to launch node debugging session when developing custom sfdx plugin

Working with a friend on some pretty cool sfdx plugins. Challenge seems to be if something goes wrong I get a pretty generic error, no stack trace, and it's a real challenging tracing things back to ...
0
votes
2answers
62 views

Convert And deploy an Existing App challenge

I am stuck in completing this last part of Salesforce DX challenge. I have 2 issues. The first one i did not realise when that happened but its there. Its in the image below with JSON. file. I dont ...
3
votes
0answers
59 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 ...
2
votes
1answer
28 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, ...
1
vote
0answers
27 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
26 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 ...
0
votes
1answer
220 views

Cannot connect to Salesforce Org from VS Code/Salesforce CLI: Must pass a username and/or OAuth options when creating an AuthInfo instance

I'm trying to connect to my Trailhead playground org with the Salesforce CLI on VS Code. Here's what I've done: I created the project then clicked on Authorizing a dev hub. I was prompted for a login ...
0
votes
1answer
79 views

Trailhead “Convert Lightning Web Components Open Source to Salesforce” stuck in “Convert Components for the Salesforce Platform” step

I'm stuck in the Trailhead "Convert Lightning Web Components Open Source to Salesforce", at the "Convert Components for the Salesforce Platform" step. When I right-click the force-app folder and ...
2
votes
0answers
31 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 ...
0
votes
1answer
44 views

Error when Authenticate Orgs

I'm having a very frustrated problem where Visual Studio Code show error everytime I want to authenticate an org. I use CMD and it working fine but when I try to work on Visual Studio Code it show the ...
1
vote
1answer
265 views

How to create a scratch org with communities enabled?

Given the project-scratch-def.json: { "orgName": "My Org", "edition": "Developer", "features": [ "LiveAgent", "AuthorApex", "TerritoryManagement", "ServiceCloud", "Knowledge"...
0
votes
0answers
23 views

Session expired or invalid in salesforce scim implementation

Invoking the URL GET https://salesforce_org_url/services/scim/v2/Users Header Authorization:Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxx Expected Response Salesforce user details Actual Response Could not ...
0
votes
1answer
68 views

Download all Apex classes

I would like to set up a daily backup of all the Apex classes and triggers. Is there any way this can be done using the cli (sfdx)? If not, are there any other ways? The idea is to write a script ...
4
votes
2answers
264 views

How can I retrieve email templates from a sandbox using the Salesforce CLI?

I tried to use the force:source:retrieve command with the -m parameter as EmailTemplate but it doesn't retrieve the email templates in my connected sandbox. How can I retrieve the email templates?