Questions tagged [salesforcedx-cli]
Questions relating to the `sfdx` binary that is supplied as part of the tools suite for Salesforce DX.
725
questions
2
votes
1
answer
34
views
Wave Dashboard can't be retrieved - CLI error is not understandable
We are trying to retrieve WaveDashboard components with the sfdx cli.
The response from the CLI when using sfdx force:source:retrieve -m WaveDashboard is the following:
{
"status":0,
&...
0
votes
0
answers
40
views
Found same SubscriberId in text response template after reply
We are sending SMS from sales cloud using API integration and trying to store replies in the sales cloud from the marketing cloud. so for that purpose, we have created Text response template with ...
0
votes
0
answers
41
views
Every SOQL query I run through sfdx is getting an error, including 'field doesn't exist' on fields that clearly exist
I'm just getting setup on my Mac, to work with my organization. I wanted to be able to open the Terminal and use sfdx to run SOQL queries but I think perhaps I missed some crucial step?
I was ...
0
votes
2
answers
54
views
Unable to install lwc-dev-server / run sfdx force:lightning:lwc:start
I am trying to run LWC in local. I was able to install with errors
C:\WINDOWS\system32>sfdx plugins:install @salesforce/lwc-dev-server
Polling for new version(s) to become available on npm... done
...
0
votes
1
answer
26
views
Where can I find the correct config for my organization for use with sfdx?
I am new at my organization. I'd like to download all the Apex classes. I am on a Mac and I am working directly in the Terminal. (I might setup VSCode later, but for now I'm just working in the ...
0
votes
0
answers
29
views
SFDX: Authorize an Org Failed to run
I have a problem authorizing my org via VS Code. It gives me this error when I try to run SFDX: Authorize an Org. Can someone help me with this?
1
vote
1
answer
43
views
Why is chevron showing on child Data? Tree grid lwc salesforce
JS file
import { LightningElement, wire , track} from "lwc";
import { NavigationMixin } from 'lightning/navigation';
import { refreshApex } from '@salesforce/apex';
// Import the schema
...
0
votes
0
answers
17
views
Territory2 settings fail to deploy from scratch definition file
When creating a scratch org from a definition file, I'm trying to enable Territories for Leads using the supportedObjects property which is documented here: Territory2Settings | Metadata API Developer ...
0
votes
1
answer
28
views
How can I logout from all the unused sandboxes I have in my machine?
Or rather how to remove the orgs I don't use anymore. Is there an easy way to "remove all orgs unused for 90+ days"?
0
votes
0
answers
38
views
Running Salesforce Code Analyzer for method version 3
I'm trying to run the SalesForce Code Analyzer on the new version 3 to a unique method called deleteQuery and the deleteQuery has a parameter Id here what I'm using: "sfdx scanner:run:dfa --...
0
votes
1
answer
37
views
SFDX CLI: Error authenticating with the refresh token due to: inactive user
After running the command:
sfdx force:auth:web:login --setalias vscodeOrg --setdefaultdevhubusername
And getting a successful result:
Successfully authorized robs@example.com with org ID ...
-1
votes
0
answers
18
views
The default position for notifications in VS code can be seen in the right-down corner; however, I need to use the top-right corner
The default position for notifications in VS code can be seen in the right-down corner; however, I need to use the top-right corner
0
votes
0
answers
42
views
Authorise a Dev Hub: Error: We can’t query your org
BACKGROUND
I want to Authorise a Dev Hub, such that I can create a scratch org.
I am system admin on our org.
I run the command:
SFDX: Authorize a Dev Hub
From the command palette.
I then ...
0
votes
1
answer
57
views
Authorizing an org in VS code runs successfully but does not open any browser
I have installed my VS code, Salesforce CLI and Extension Park. When I try to authorise an org it gives me the below message but does not redirect to a browser. It says the authorisation ran ...
1
vote
0
answers
76
views
Is it possible to deploy new pages to an enhanced lwr site with sfdx?
In my development org, I created a new page in my site using builder. I then retrieved the entire site with
sfdx force:source:retrieve -m DigitalExperienceConfig:SITE_NAME_HERE
which gave me the new ...
-1
votes
1
answer
53
views
How to resolve sfdx installation problem in ubuntu 22.04
Can anyone help me with this npm ERROR.
npm install sfdx-cli --global
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: 'sfdx-cli@7.187.1',
npm WARN EBADENGINE required: { node:...
3
votes
1
answer
382
views
What does the error code "VR-0002" mean when creating a scratch org?
Been getting this error when creating a scratch org:
The request to create a scratch org failed with error code: VR-0002.
The definition file is quite simple, so I don't know what might be causing ...
-2
votes
1
answer
300
views
'The org cannot be found' error in VS Code
Anyone experienced "The org cannot be found" issue in VS Code. I'm facing this issue from past 2 weeks. Tried with multiple orgs. Un-installed and re-installed VS Code. Tried with different ...
0
votes
2
answers
42
views
Is there a way to capture the Package ID using Salesforce CLI (sfdx) command?
I am trying to get the ID of a specific package name using the command below:
PACKAGE_ID_CORE=$(sfdx force:package:list --targetdevhubusername HubOrg --json |
grep -A1 '"Name": "...
0
votes
0
answers
28
views
ISV Debugger Setup Not Working
I have followed exact steps provided in this link https://developer.salesforce.com/tools/vscode/en/apex/isv-debugger
Still, I am getting the below error, let me know how can we retrieve ISV manage ...
0
votes
0
answers
25
views
Evaluate package/package.xml for any components
I'm looking for guidance regarding a method to check the package/package.xml before deploying.
My sgd command is as follows:
sh """
$NODE_BIN_PATH/sfdx sgd:source:delta \
--to $...
0
votes
0
answers
23
views
How to pass org name dynamic in cumulus standard command task
I am using cumulus standard command task to delete my org (cci org scratch_delete )
But I am not getting how to pass the dynamic org name there?
delete_scratch_org:
description: delete the ...
7
votes
1
answer
8k
views
Component conversion failed: This directory does not contain a valid Salesforce DX project
in VS code, while trying to deploy source to org, getting a weird error below:
Component conversion failed: This directory does not contain a valid Salesforce DX project.
But I do have sfdx-project....
0
votes
1
answer
167
views
Unexpected end of JSON input when trying to authorize my sandbox from vscode
I am trying to authorize my sandbox org from vs code > After logging in with my credentials, I keep on seeing this output from the browser which I Quoted below
"Unexpected end of JSON input
...
2
votes
1
answer
42
views
test-result-codecoverage.json with more than 10k coverage items
We have high number of test methods. After running all test cases using
sfdx force:apex:test:run
test-result-codecoverage.json doesn't include all classes, it includes only 25% of classes. Is there a ...
0
votes
1
answer
45
views
Error during running the pipeline in git
I have configured my gitlab-ci.yml file . And this was authenticating the envs in the past. However very recently when i tried running it again . I am getting the below error.
ERROR running auth:...
0
votes
1
answer
956
views
Error creating a scratch org: This command requires a dev hub org username set either with a flag or by default in the config
When creating a scratch org, I have this issue that works fine running on my local machine but not when I include in our scripts to run in the CI/CD.
ERROR running force:org:create: This command ...
0
votes
0
answers
250
views
SFDX: Deploy Source to Org failed to run with no error message
I cannot deploy the source in my VSCode to Org. The system shows SFDX: Deploy Source to Org failed to run with no error. I could retrieve and diff code from org normally. Can anyone solve this?
Here ...
1
vote
0
answers
164
views
Bulk query from SFDX CLI - How to get all results
I'm querying a large (1+ million) number of records from the SFDX CLI:
sfdx force:data:soql:query \
--targetusername 'me@example.com' \
--soqlqueryfile "my_query.soql" \
--...
0
votes
1
answer
8k
views
Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0'
I hope you have a nice day, for about a month now, every time I connect to an instance through Visual Studio, I get this message:
Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable ...
0
votes
1
answer
204
views
LWC Component how to use only custom fields
how to fetch only custom fields in this code
I have created a LW component for getting object information when I enter the object name in the search I get all fields in that object but I need only ...
0
votes
0
answers
53
views
Error when using SDFX: Create Function in VSCode
I am getting the error below when using SFDX: Create Function from VSCode.
My VSCode and Salesforce CLI are up-to-date. Also, I am successfully able to generate a function using the CLI command sf ...
1
vote
1
answer
68
views
Salesforce Org Shape Error authentication
I'm passsing for this error, when i run the command sfdx force:org:shape:list
ERROR running force:org:shape:list: Error authenticating with the refresh token due to: expired access/refresh token
I ...
1
vote
1
answer
486
views
ERROR running force:org:list: Parse error in file unknown on line 1
when I am trying to get org list using command sfdx force:org:list
It is showing me an error: ERROR running force:org:list: Parse error in file unknown on line 1
earlier it was working fine I am ...
14
votes
7
answers
15k
views
Deploy source to org fails with "No authorization information found"
I'm just getting started with developing in VS Code and have been following the steps here.
I was able to authorise my org with the default alias according to the steps here:
The authorised org also ...
0
votes
0
answers
145
views
How can we update custom field using SFDX CLI
I have a custom field under custom settings. The settings type is "Hierarchy" and custom field type being "Text".
I two jenkins pipeline which I am using for Integration and ...
0
votes
0
answers
61
views
ERROR running force:org:open: ENOENT: no such file or directory, open '/xx/xx'
Recently I created a scratch org in Jenkins after certain amount of time I wanted to open org while successfully authorizing with my devhub org and when I tried to open org with
sfdx force:org:open -u ...
1
vote
0
answers
220
views
sfdx force:cmdt:record:insert is creating record with undefined value for blank values
I have csv file with few columns as blank value. When I create custom metadata using sfdx force:cmdt:record:insert command, it is creating those record with undefined value.
Find sample created custom ...
0
votes
0
answers
24
views
Unable to extract bulk data using data loader CLI
I am unable to extract values/data using data loader CLI.
I was able to extract data from sandbox but unable to extract from production.
I have generated encrypted password but it is still throwing ...
0
votes
0
answers
56
views
I can't see the complete sfdx commands on vscode, Authorize an org fails and Apex extension unresponsive
I'm working on the Quick start: Lightning web component trail and when it comes to setting up vscode with salesforce I've been trying for the past 24 hours to no avail. Things have and have tried so ...
2
votes
1
answer
1k
views
Unexpected child metadata for parent type [CustomObjectTranslation]
I am receiving the below errro while validating the components in staging
Validate deployment on sandbox ERROR running force:source:deploy:
Unexpected child metadata
[/home/circleci/ci_app/force-app/...
0
votes
1
answer
196
views
Data Loader won't open (Windows 11 pro)
I have installed Zulu v18.0.2.1, even have set the JAVA HOME.
and also installed Data Loader v55
I open Data Loader using the shortcut created during installation.
After few seconds command prompt ...
0
votes
2
answers
513
views
Create a Lightning web component for creating records for master detail type
I have two custom objects Building and flat, in this building is the master of the flat object and I have to Create an LWC component for creating new flats. in flats object since building is the ...
0
votes
0
answers
387
views
Unable to retreive org to VSCode
I am having problem with retrieving org to my VS Code. I usually work with IntelliJ, but I need to do some quick testing on my other laptop, so I tried using VS Code.
Here are steps that I did so far:
...
0
votes
1
answer
123
views
Test class does not run when I use --runtests
Test class does not run when I use --runtests
What's up community, I'm trying to deploy a deploy with its respective test class. But the problem is that it does not run the test class and I specify it ...
0
votes
2
answers
295
views
Strange error force:org:shape:list: Cannot read properties of undefined (reading 'length')
Strange error force:org:shape:list: Cannot read properties of undefined (reading 'length')
When I executed a command force:org:shape:list, I am obtaining a very strange misterious error: Cannot read ...
1
vote
1
answer
123
views
VS Code: "Set a default org" succeeds but shows error
I recently started getting an error when I switch from one authenticated Salesforce environment to another in VS Code:
The Salesforce CLI output shows a conflicting message:
Starting SFDX: Set a ...
1
vote
1
answer
1k
views
Facing "Error: unable to get local issuer certificate Code: UNABLE_TO_GET_ISSUER_CERT_LOCALLY" when trying to update CLI. How to overcome this one
To set up SFDX , first I did install CLI and when I tried updating the same, I'm facing this issue. Can anyone please help me out.
1
vote
0
answers
45
views
Unable to create a package version for second generation managed package
I'm trying to create a 2G managed package. The following were the steps I used
sfdx force:package:create --name newManagedPackage --packagetype
Managed --path force-app
I was able to create a ...
2
votes
1
answer
120
views
SfdxError: No supported Android API package found
Im trying to setup a local android environment. Followed instructions here https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.mobile_extensions_setup_android_studio, and ...