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
1answer
31 views

Is it possible to turn on the Apex Replay Debugger permanently or for the entire day from VSCode

Every time I use the VSCode command to turn on the Apex Replay Debugger, it expires in less than an hour, and then I have to re-run the command to turn it back on again. Is there a way to turn it on ...
1
vote
1answer
60 views

Getting core_3.sfdc.isInternalUrl is not a function when I try to create scratch org in Salesforce from VS code

Below is the error Starting SFDX: Create a Default Scratch Org... 04:42:18.799 sfdx force:org:create -f config\project-scratch-def.json --setalias trailhead --durationdays 7 --setdefaultusername --...
0
votes
1answer
38 views

SFDX export related records for data upload to a scratch org

I have a relationship between Account and MyCustomObject__c where Account.CustomField__c is a lookup to MyCustomObject__c. When I try to export the field on the Account and related records using sfdx, ...
2
votes
1answer
243 views

Authorized an org in VS Code but not getting "Deploy this source to org" option

I authorized an org through VS Code, but at the bottom left it still says "No Default Org Set" rather than the org alias. I did this by running: sfdx force:auth:web:login --setalias ...
0
votes
0answers
21 views

SFDX. Import PricebookEntry2 to standard Pricebook2

I want to import price book entries and relate them to standard price book on scratch org. I'm using sfdx force:data:tree:import. But I can't relate my new price book entries with the already existing ...
0
votes
0answers
11 views

VS Code Authorize an Org while using remote SSH

I have a remote linux machine to which I am connecting via remote SSH in my VS Code. I use "Remote - SSH" VS code extension for the same. I could browse remote directory in my VS Code and do ...
0
votes
0answers
21 views

Stylize <th> (table header) of the table, if the condition is met in Lightning DataTable

I have a custom datatable, to which I pass "data" - array of objects (future table rows): <c-pbk_datatable if:true={areSearchResults} key-field="id" data={...
0
votes
1answer
46 views

LWC is not loading after chaning the previous labels in static resource

i have the static resource in the salesforce it has few files related to the d3.jsi changed the label names in the d3v4,js file after that i saved the modified d3v4.js file in the static resource,I ...
0
votes
0answers
48 views

reference to account not found in query result sfdx

I am running the following sfdx command to export Accounts, Contacts, and Opportunities. However, I am running into the following error messages below. Question: How can I export the Accounts, ...
1
vote
1answer
89 views

validate multiple directories in one deployment with the Salesforce CLI

I use this command sfdx force:source:deploy -p ./foundation/,./sales,./marketing -c because I have my metadata organized in 3 different folders. When I run this command, the Salesforce Cli does 3 ...
0
votes
2answers
1k views

Executing the SFDX Update command to update the CLI to latest version is not working

I'm trying to run the sfdx update command in Windows 10 and every time it gives me the following log: PS C:\Windows\system32> sfdx update sfdx-cli: Updating CLI... already on latest version: 7.94....
0
votes
0answers
123 views

LWC not showing on App Page automatically

I have created 1 HelloWorld component and add it to a App Page, Now when I deploy it to another org as per below xml <Package xmlns="http://soap.sforce.com/2006/04/metadata"> <...
0
votes
1answer
88 views

How to Customize the Compound field view on UI in lead object?

How can I customize the layout compound field name on lead object. I want to display my salutation, firstname, lastname, middlename, suffix below Name field label like in below picture How can I ...
3
votes
1answer
49 views

SFDX Script to copy all installed packages from one org to another one?

I have a specific error which depends on the packages installed in environment, to reproduce this error on the developer org, I need all the installed packages to install into development org. Can I ...
1
vote
0answers
32 views

How to write a meta data for an object (Standard Object and Custom Object )?

I want to create meta data file so that I can enable field history tracking and there is no need for manual enabling in sandbox. I want this metadata file to work with Jenkins pipeline. I have to do ...
5
votes
1answer
51 views

Compiled size of formula field error when using unlocked packages

So I was working on a task to package some metadata using the unlocked packages that I retrieved from an org. Some of the metadata are objects and they have different field types, of them are formula ...
1
vote
1answer
85 views

YML scripts for deploying changes into DEV instance

I have the below bash script to deploy the changes are checked in to Azure Devops to the Salesforce instance. Script runs as soon as checkin made to DEV branch it is all working good sfdx force:...
1
vote
0answers
19 views

Salesforce DX - Getting compilation error for field already specified on "Parent" package

My team and I have been facing an issue when trying to version an unlocked DX package that we have just created. This package, includes only classes, lightning components, and apex pages. Let's call ...
0
votes
2answers
88 views

Deploying an incomplete profile: how does Salesforce fill in the gaps?

If I create a blank profile in DX (minimal info, no object/field level security) and deploy it, the resulting deployed profile still has some object and field level security. How does Salesforce ...
0
votes
1answer
14 views

The visualforce page's tag in visual Studio doesn’t have automatic color style

The tag in visual-force page should be in different color, I can not find similar situation on google, thanks.
0
votes
1answer
42 views

How to see all the unlocked package version creation attempts and details in the UI

I'd like to visually see the equivalent of the result of this CLI command in salesforce UI. When I go to Setup -> Package Manager, I only see a list of packages that I've created from within the UI....
2
votes
2answers
144 views

Salesforce DX - How to avoid "Field is not writeable" error when versioning a package

I'm trying to version a package that has a class that creates a Task record setting it's createdById. The assignment looks like this: newTask.CreatedById = Utils.userID; However, when trying to ...
0
votes
1answer
38 views

Error when trying to create unlocked package version in full sandbox for testing

When I run the CLI command force:package:version:create I get this error: Packaging is not enabled on this org. Verify that you are authenticated to the desired org and try again. The org I'm trying ...
5
votes
1answer
161 views

The Salesforce CLI Binary URL installs older version of Salesforce CLI. How to update Salesforce CLI to the latest version?

I have been installing the Salesforce CLI in my Circle CI scripts using the below mkdir sfdx wget -qO- https://developer.salesforce.com/media/salesforce-cli/sfdx-linux-amd64.tar.xz | tar xJ -C sfdx --...
1
vote
2answers
1k views

SFDX: Retrieve Source from Org failed to run

I am getting this when I retrieve code from my Org. I was able to authorize an org successfully, but when I go to the Org Browser and try to pull in data of a custom object that is when I get this ...
0
votes
0answers
49 views

show list of account record on clicking in checkbox and delete the selected account and refresh list

I want to show account record on checking a checkbox and delete the selected record and refresh list but I am getting errors. duplicate value found: duplicates value on record with id: Cannot find ...
0
votes
0answers
26 views

ERROR running force:package:version:create: typesArr.filter is not a function

Not sure why this has started happening. I was creating a new unlocked package for a client and started see this error ERROR running force:package:version:create: typesArr.filter is not a function ...
0
votes
0answers
38 views

Several Salesforce Sandboxes/Projects Code & Metadata in ONE Workspace without causing ERROR: Error deploying or retrieving source

I'd like to have code/metadata from different Salesforce Orgs (Sandboxes and Prod) in VSC/SFDX and be able to quickly access it. For that, I have tried to use VSC's Workspaces and have added 3 folders ...
0
votes
1answer
90 views

Invalid field:CONTACT.FULL_NAME in related list using

I've ran into this problem recently in related list on a few of my account page layouts. I'm using sfdx to create my scratch org and to push my source to the org. I realize its happening when I added ...
1
vote
7answers
2k 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
48 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
143 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
24 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
23 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
67 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 ...
2
votes
1answer
2k 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
87 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
281 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
1answer
555 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
12 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
69 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
70 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
67 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
22 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
41 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
175 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
52 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
198 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
609 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
86 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
2
3 4 5
13