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
1
vote
0answers
31 views

Unable to build Lightning Component source for markup://c:HelloWorldLightningWebComponent: Invalid suffix: json

I have created a project named "HelloWorldLightningWebComponent", and created a LWC component to it. While deploying the source to org from VSC, getting the error message. I have checked the ...
0
votes
1answer
25 views

The formula expression is invalid: Syntax error. Missing ')' formula error in process builder

i AM CREATING A PROCESS BUILDER WITH CONDITIONS AS FOLLOWS Residential / Commercial: Sales //THESE ARE ME RECORD TYPES Contact Type: Investor, End User or Buyer //MULTIPICKLIST Stage: Past Client //...
1
vote
1answer
30 views

metadata retrieve operation failed: INVALID_CROSS_REFERENCE_KEY

On executing: sfdx force:mdapi:retrieve -r ./mdapipkg -p ./ProjectComponents.xml I got the error message: metadata retrieve operation failed: INVALID_CROSS_REFERENCE_KEY: No package named The file ...
0
votes
1answer
17 views

Error when making an unlocked package containing reports

I have been trying to make a package with multiple metadata in it including some reports. After I run the creation command I get an error while verifiying metadata as: Report_Accounts/...
0
votes
1answer
19 views

What is the difference between uninstalling an SFDX package and installing another version over an installed unlocked package?

I am to create a new version of a package whereby certain folders and code is to be removed. Should I uninstall the previous version of the package and then install? Or install over the existing ...
0
votes
0answers
23 views

Unexpected file found in package directory:

I am trying to deploy some components from github branch to dev sandbox with VS Code I am on the branch, where I have a code, and connected to the sandbox. I tried: sfdx force:source:deploy -c -p ...
1
vote
0answers
33 views

Can't retrieve source in manifest from Org due to “Error authenticating with the refresh token due to: expired access/refresh token”

I created a Project with Manifest some time ago and worked on it but today I need to modify some classes but when I try to Retrieve Source in Manifest from Org I hit the following error: Error ...
0
votes
1answer
20 views

Unable Login Scratch Org event after changed password

I try use Salesforce DX create a Scratch Org and use "sfdx force:org:open" command to open it. Then I reset password for this user. And success reset it. But I can't use test.salesforce.com ...
4
votes
0answers
97 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 ...
0
votes
0answers
138 views

Salesforce CLI Extension error: predicates_no_sfdx_project_found_text

In VSCode, I've installed 'Salesforce Extension pack'. As we know, it contains extenstion with name 'Salesforce CLI Integration'. This package is giving me below error : Missing Label!!! ...
0
votes
0answers
11 views

Duplicate Case Report

I have over 100k cases on queue, how can I create a report to identify and get duplicate cases using for example the email address as identifier?
0
votes
1answer
35 views

Connect Twilio with Salesforce Connect

I'm trying to find a way to use Twilio data inside of Salesforce Objects. I've already embeded Twilio Flex using the Open CTI and is working fine, but now I need to transcribe the calls and put that ...
0
votes
0answers
30 views

The three dot spinner doesn't stop when navigating back in my community page from Samsung or Mi Browsers

When I navigate within my community pages in an android device from Samsung or Mi Browser the default spinner keeps running and it doesn't even prevent from clicking the buttons it just keep showing! ...
6
votes
0answers
45 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", &...
0
votes
1answer
18 views

upsert operation using IdLookup

I want to perform insert and upadate operation on Account on same record by using following query but It inserts two accounts with different descriptions Account acct = new Account(Name = 'practice ...
1
vote
0answers
23 views

How to upload zip of CMS Content from command line

I have a zip file that I created of CMS Content according to the specifications in the CMS Import / Export documentation. I need to be able to upload it from the command line so that I can include it ...
1
vote
2answers
98 views

Salesforce Git Repository using VS Code

I am trying to set up the Git Repo for our Salesforce instance, we are trying to use VS Code. This is my first time setting up and never used the ANT migration tool. We do manual Change set deployment ...
0
votes
1answer
34 views

“Create a Salesforce DX Project” - getting message WARNING: The following metadata isn’t in your org

In the "Develop an App with Salesforce CLI and Source Control" Trailhead I think I'm following the instructions to the letter, but at the "Create a Salesforce DX Project" when I ...
1
vote
1answer
38 views

Visual Studio Code Not Retrieving Full LWC Package

tl;dr - how to make sure Retrieve Source from Org includes XML file Description Normally when I retrieve source data for an LWC from an org in vs code the resulting file looks like this: For some ...
1
vote
1answer
24 views

How to combine/manage all aliases for the same org

I have a trailhead playground org (not a scratch org) for which I've created multiple aliases and now I'd like to know how I can keep one and delete all the others using the Salesforce CLI? Also, is ...
0
votes
0answers
77 views

Error: INVALID_SESSION_ID: Session expired or invalid

I have an error when I try to uploud the code from VSCode in Salesforce organization. The error is this : Error: INVALID_SESSION_ID: Session expired or invalid I have a lightning web component and I ...
1
vote
0answers
34 views

SFDX force:source:retrieve won't pulldown Workflow, WorkflowFieldUpdate, WorkflowRule, WorkflowAlert

I have tried the following: sfdx force:source:retrieve -m "Workflow, WorkflowAlert, WorkflowFieldUpdate,  WorkflowRule, ApprovalProcess, CustomObject:FF__Process__c" Trying to get a specific ...
0
votes
0answers
18 views

sfdx won't pull down full profile information [duplicate]

I'm using sfdx force:source:retrieve -m Profile what returns is a list of profiles but only the userPermissions, none of the object permissions or other things.
2
votes
0answers
21 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 ...
1
vote
1answer
18 views

Problem setting SFDX Dev Hub

I am having trouble setting the dev hub. I can do sfdx force:auth:web:login -d and it reports that is has authorised successfully. But when I do sfdx force:org:list I get this: === Orgs ALIAS ...
1
vote
2answers
51 views

Error: Reached maximum number of custom fields - When versioning DX package

We have included [AddCustomRelationships:10] to the scratch org definition file, however, the package versioning still fails with the following error: "reached maximum number of custom fields: ...
0
votes
1answer
45 views

Why are my recordtypes not being updated, they are going into the wrong folder

I have a CLI situation whereby the recordtypes I make changes too are not being updated on a retrieve. I cannot find flaws in my process, I change the connected org correctly my XML has the fields, ...
0
votes
1answer
31 views

cli connect to org dev hub not working

I'm running sfdx auth:web:login --setalias <alias> --instanceurl <instance url> from a command prompt. It opens a browser login page and I enter the credentials and hit enter. The browser ...
1
vote
1answer
43 views

Unexpected file found in package directory: /Users/Chintan/force-app/main/default/messageChannels/messageDemo.messageChannels-meta.xml

I am trying to create a message channel via VS Code in my salesforceDX project. I have followed the document provided by the salesforce. When I am trying to deploy that message channel file I am ...
1
vote
2answers
91 views

I can't connect my IDE to org using SFDX:Authorize command

When I use SFDX:Authorize org command, it redirects me to Salesforce login screen. Then I enter my credentials. However I see only white screen and there is no response. From my home machine ...
0
votes
0answers
19 views

Cant able to redirect dev hub( salesforce login) through vs code

When i try to open dev hub through Vs code in terminal. It redirects to login salesforce. After loggin saying that "the service and account specified in key.json do not match the version of the ...
1
vote
0answers
21 views

VS code application- Unable to authorize an org or run any commands on the terminal [duplicate]

I am facing issue with my vs code application. Not able to run any commands in the terminal except sfdx. Unable to authorize org(Getting error- ended with exit code 127). I googled and tried most ...
3
votes
0answers
44 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. ...
1
vote
1answer
64 views

ERROR: Removing metadata components from a second-generation managed package is a pilot feature that requires acceptance into a pilot program

I am trying to create a new package version using 2GP. When I run this command sfdx force:package:version:create ... I am getting this error: ERROR running force:package:version:create: Can’t ...
1
vote
0answers
15 views

Cannot authorise a salesforce org in fedora 31. Local host fails to respond

This started happening just today. In the past, I had no issues connecting to hosts. But now no matter what org I try to connect to local host simply never responds. After a very long timeout the ...
0
votes
0answers
57 views

Is there a way to stop LWC Local Development Server to auto refreshing when component file change?

LWC Local Development Server auto refreshes page whenever any LWC component files change. Sometimes I change JS code but I'm not finished with it, I need to go back to console to refer the console ...
1
vote
1answer
19 views

How do I download & setup Git Bash, for Windows & VSCode?

I don't know where to get GIT Bash from and how to set it up. I am asking because the answers were not found or not obvious, install was a bit of an unknown, hence this might help someone else, so I ...
0
votes
1answer
37 views

Jenkins Job with SFDX command doesn't deploy the code and doesn't give an error

SFDX Version: sfdx-cli/7.84.2-a2868a68d5 win32-x64 node-v12.18.3 Jenkins Job has 3 steps. Step1: Pull the project from Git Step2: Authentication D:\project\jobname>sfdx force:auth:jwt:grant --...
0
votes
1answer
25 views

Truncated logs in VSC, not showing all classes and uncovered lines

I don't know what has changed in the sfdx CLI but for some reason it now prints truncated logs in VSC + it shows a false message that the test ran successfully but they failed. To reproduce it, I open ...
6
votes
1answer
140 views

VS Code extension no longer including line number in Apex test failure output

When I run Apex tests from VS Code (leveraging Salesforce CLI), I'm accustomed to the output telling me what line my tests failed on in the event of failure. I've noticed a recent change (just in the ...
1
vote
1answer
97 views

How do I retrieve all files in VS Code?

I'm working on the Apex Specialist super badge on the Salesforce Trailhead. I'm also trying to get more comfortable with Visual Studio Code with the Salesforce extensions. I've successfully create a ...
0
votes
1answer
39 views

Keep getting multiple “Required field is missing: valueTranslation” errors while trying to generate a package version with translations

When using the package:version:create command, I'm getting the following errors: ERROR running force:package:version:create: 8-pt_BR: Required field is missing: valueTranslation,1-pt_BR: Required ...
0
votes
1answer
82 views

Exception while getting the LWC bundle for reference @Salesforce/schema/Account.Name

I am creating a lightning-record-form component to display records from Account Object: This is the js file: import { LightningElement } from 'lwc'; import Account_Name from '@Salesforce/schema/...
1
vote
0answers
128 views

Not able to Authorize an Org with VS CODE

Steps to reproduce: Run the following command in terminal: sfdx force:auth:web:login --setalias org1 --instanceurl https://login.salesforce.com --setdefaultusername Then I am redirected to my ...
1
vote
1answer
92 views

SFDX Salesforce CLI : Update a field to NULL

I have the following CSV of 12 Account records. As can be seen, I am deliberately setting the name to NULL for an Account record (highlighted). I am using the following SFDX/Salesforce CLI command to ...
1
vote
1answer
308 views

Visual Studio Setup with Salesforce CLI for M1 Mac

Getting a below error message while using the command "Authorise and Org" Starting SFDX: Authorize an Org 18:34:11.754 sfdx force:auth:web:login --setalias vscodeOrg --instanceurl https://...
1
vote
1answer
84 views

SFDX : SOQL Query/Output

I am currently learning Salesforce DX/CLI to pull in data from my org. I use the following syntax to extract Accounts data. sfdx force:data:soql:query -u vpy.lightninglearn@gmail.com --query "...
5
votes
2answers
446 views

SFDX Permission set assign command failing in latest version 7.84

In earlier versions < 7.84.2 sfdx force:user:permset:assign command was working fine, but in latest version it is throwing error Permission set "U" not found in target org. Do you need to ...
4
votes
1answer
143 views

Update.forceignore for Spring 21 Compliance

SFDX is giving me this error message: Fix the following lines in your .forceignore and add '# .forceignore v2' to your .forceignore file to switch to the new behavior. (node:12432) Warning: **...
2
votes
4answers
232 views

Salesforce CLI is stuck in the authorization flow, and the device flow does not work

I'm trying to authorize an org locally, and with the sfdx force:auth:web:login command my web browser pops up and I successfully log in with my credentials. But then, when calling the node localhost ...

1
2 3 4 5
12