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

Unable to execute sfdx force:lightning:test:run -a jasmineTests.app in my scratch org from CLI on windows system

I am unable to execute this command sfdx force:lightning:test:install in my scratch org from CLI. It gives a warning. sfdx force:lightning:test:install Result: Warning: force:lightning:test:install is ...
0
votes
0answers
27 views

cannot push code to scratch org because of error related to managed object [duplicate]

all From last week, we run into some issue that our DX build cannot push code to a scratch org for below errors. Error force-app/main/default/objects/AAMeta__mdt/fields/VVVV__c.field-meta.xml ...
0
votes
0answers
23 views

Issue while creating scratch org

I am facing an issue while creating a scratch org, Steps i followed is: Initially i have installed vscode, salesforce cli & extensions in vscode, configured their bin path in environment variables....
0
votes
1answer
15 views

Use current version of manage package in org when deploying via Salesforce CLI

I have this folder/file in my dx project: foundation/main/default/installedPackages/HealthCloudGA.installedPackage-meta.xml The file HealthCloudGA.installedPackage-meta.xml contains the following: &...
0
votes
1answer
32 views

Value of sfdcLoginUrl in sfdx-project.json doesn't seem to matter

I'm working on a Salesforce Lightning App project in Visual Studio Code (w/ Salesforce extension), and when I right click on a file and choose "SFDX: Deploy This Source to Org", it deploys ...
1
vote
1answer
49 views

Avoid strange error 'The “path” argument must be of type string. Received null', when fthe path is not null

When I execute the command sfdx force:source:deploy -u o14 -p CPQFields I receive an error The "path" argument must be of type string. Received null, despite the path CPQFields is not null ...
0
votes
1answer
22 views

How to ensure that static resources created by me in my sandbox are pulled to my local IDE (IntelliJ)

I tried to pull the static resources using Illuminated cloud as well as through sfdx commands, but can not see the static resources created by me in the static resources folder (in the local IDE)
4
votes
1answer
48 views

Is there a way to deactivate a Flexipage from the command line?

If you try to delete an active flexipage from the cli, you'll get the following error: You can't delete an active Lightning page. Open the page in Lightning App Builder and click Activation to ...
0
votes
0answers
29 views

Recently developed Lightning component not getting pulled in to my local source

I have initialized a new scratch org and then created a lightning component in the scratch org using developer console. This is a simple component just to test the pull request. I can see that my ...
1
vote
1answer
28 views

Is there a way to use the Metadata API “purgeOnDelete” option within Salesforce DX / CLI?

I'm trying to erase a lot of custom fields. I've managed to delete them, but they still exist in deleted fields. The metadata API has a "purgeOnDelete" option to address this, but I don't ...
0
votes
0answers
46 views

SFDX commands not working from API version 52.0 in CLI

Today, when I tried to use the regular command to fetch list of orgs of Salesforce in CLI terminal, it throws me an error/warning as below: And I'm unable to login to my salesforce orgs too. Like no ...
0
votes
1answer
11 views

Linux version of SFDX fails to provide results for “sfdx force:user:list” command

When I tried to build a dynamic script in GitHub Actions using SFDX, I have been puzzled by the weird behaviour of sfdx force:user:list --json command in linux version of SFDX. In MacOS version of ...
0
votes
0answers
26 views

Unable to update a picklist field value with a new vlaue using SF CLI

I am trying to update a picklist field value from my automation framework and I am just unable to. Does anyone know why? C:/QA/sfdx/bin/sfdx.cmd force:data:record:update -s Cycle__c -i ...
0
votes
1answer
42 views

Salesforce CI CD deployment

CI/CD sfdx deployments using Saleforce CLI by default deploys all the metadata into the Orgs. Is this recommended ? Or should we limit the deployments to changed components alone (using package.xml)? ...
1
vote
1answer
44 views

Salesforce CI CD deployment commands

Currently we are following ChangeSet deployment model and want to switch to Org deployment model to support CI/CD process by taking advantage of Salesforce CLI commands. But, for deployment to Orgs ...
0
votes
2answers
54 views

Unable to update or uninstall sfdx cli

I'm unable to update my sfdx cli. Installed via the installer here: https://developer.salesforce.com/tools/sfdxcli I've tried uninstalling via the instructions provided, but sfdx remains installed. I'...
1
vote
1answer
28 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
27 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
20 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
66 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
7 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
9 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
19 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
23 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
31 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, ...
0
votes
1answer
28 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
149 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
80 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
46 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
36 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
31 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
44 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
47 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
16 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
69 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
12 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
29 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
71 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
28 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 ...
4
votes
1answer
94 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
522 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
25 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
23 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
29 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
31 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
6answers
997 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
34 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
51 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
20 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 ...

1
2 3 4 5
12