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

List of components which can be deployed as a part of unlocked package

In sandbox 1 created one object and fields. Then changed the FLS(field level security) for one field. Added this object in a unlocked package then after versioning installed it in sandbox 2. FLS did ...
0
votes
1answer
9 views

Including WebLinks Metatype in Package.xml Includes Fields on deploy

I am setting up a deployment package and this includes some weblinks I created using the CLI (Deployed using source path). I am trying to target specifically the weblinks and not the fields or ...
0
votes
0answers
12 views

sfdx force:org:create throwing an error after creating a Sandbox

I'm running sfdx force:org:create command to create a Developer Sandbox. The sandbox creation is done successfully but it's throwing an error during the activation. The error message reads as "ERROR ...
1
vote
1answer
33 views

I am getting this error: ERROR running force:source:deploy: The Flow named ListingID_Update was not found in the workspace

I am receiving this error while trying to deploy to a sandbox using sfdx source deploy commands. This the error: ERROR running force:source:deploy: The Flow named ListingID_Update was not ...
2
votes
2answers
73 views

Getting this error in the LWC Component? How can we resolve it?

<template for:each={fields} for:item="fields"> <tr class="slds-hint-parent" key={fields.id}> <td role="gridcell"> <div class="slds-truncate">{fields.value1}​</div> ...
0
votes
1answer
44 views

Topics enabled for objects not getting deployed to packaging org

While trying to deploy TopicsForObjects in the packaging org I receive the following Error: Error metadata/package.xml package.xml You cannot install or upgrade a package that has a ...
0
votes
1answer
59 views

Failed to deploy settings to scratch org

I am getting this error while creating the scratch org: [![enter image description here][1]][1] { "status": 1, "name": "ProblemDeployingSettings", "message": "Failed to deploy settings to ...
1
vote
1answer
32 views

Unlocked package name changed or package delete option

I have below questions: Can we change the name of a created unlocked package? Also can we delete any unlock package which is already created? Please provide solution if available.
1
vote
1answer
39 views

Best tool for seeing highlighted covered Apex Code while writing test class

Currently I do most of my development in VScode using sfdx. For writing test classes, I need to see which lines are covered in Apex classes I write. In DX, running commands (see below) to get ...
1
vote
1answer
28 views

Salesforce CLI Creating a Record With Quotes In String

We are running into an issue with the CLI where we can't seem to create a record where one of its fields needs to have quotes in it. For example sfdx force:data:record:create -s SomeObject -v '...
0
votes
1answer
57 views

Error While creating a Project on VSCode

I have installed Salesforce CLI and then tried to create a Project in VSCode using SFDX: Create Project. But facing the following error. Do I need to install any additional package? ERROR:Cannot ...
0
votes
1answer
33 views

VSCode Salesforce Cli integration stopped working after update

I am having trouble working with CLI on VSCode. I think there was an Visual Code update which i did and after which VScode and apex integration stopped working. Looking at the VSCode console gives ...
1
vote
1answer
29 views

Cannot retrieve WorkflowAlert, WorkflowFieldUpdate, WorkflowRule from package.xml through sfdx cmd

I want to retrieve all my WorkflowAlert, WorkflowFieldUpdate, WorkflowRule from my sandbox and deploy them to another one. Here is my package.xml file : <?xml version="1.0" encoding="UTF-8" ...
0
votes
1answer
18 views

ERROR force:data:tree:import CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY entity type cannot be inserted

My issue is whenever I am trying to sfdx import user records to another org I get this error: ERROR running force:data:tree:import: {"hasErrors":true,"results":[{"referenceId":"ProfileRef1","errors":...
0
votes
1answer
66 views

While I am trying to deploy LWC component I am getting error as “Value too long for field” in VS code.Does anyone have solution for this

force-app\main\default\lwc\sampleLWC\sampleLWC.js-meta.xml Failed to save Lightning Component Resource [lwc/sample/sample.js] of Lightning Component Bundle [sampleLWC]. Error: Value too long for ...
1
vote
1answer
32 views

source:convert command fails with error “The ”path“ argument must be of type string. Received type object”

sfdx force:source:convert --sourcepath force-app -d deployment ERROR running force:source:convert: The "path" argument must be of type string. Received type object What am I doing wrong here? ...
0
votes
0answers
18 views

Unexpected Argument with Salesforce DX JWT Auth [duplicate]

I am trying to use JWT to authorize an org so I can use an automated build tool. The command I am running to authorize JWT is: sfdx force:auth:jwt:grant --clientid $CONSUMERKEY --jwtkeyfile assets/...
2
votes
0answers
23 views

SFDX Snapshot - Unsupported snapshot signup request fields: Namespace

How to create a scratch org from a snapshot with namespace? Any workaround or solution? Error { "status": 1, "name": "INVALID_INPUT", "message": "Unsupported snapshot signup request fields: ...
1
vote
1answer
41 views

invalid fullname must end in a custom suffix(for ex. _c)

Added AccountContactRelation object inside my DX unlocked package but while versioning getting error invalid fullname must end in a custom suffix(for ex. _c)” What is the issue for this?please advice....
3
votes
1answer
81 views

Empty <ObjectApiName>.object-meta.xml after sfdx cli pull command

I have a custom object. In the new scratch org I changed a custom button URL of the object using Salesforce UI. Then I run sfdx force:source:pull and retrieved 2 changed files: the changed weblink and ...
1
vote
1answer
32 views

SFDX Snapshot - Worker SnapshotTemplateResolver exception

Does anyone know how to fix the issue below? { "status": 1, "name": "FIELD_INTEGRITY_EXCEPTION", "message": "Worker SnapshotTemplateResolver threw an unhandled exception. null", "exitCode": 1,...
1
vote
0answers
16 views

SFDX unlocked package error for recordtypes

I have case object in my unlocked package. While versioning of case object I am getting errors for reacordtypes. "case.recordtype name" Case.Recordtype name: duplicate value found: is a duplicate of ...
2
votes
0answers
25 views

SFDX versioning error for leadsource field

I have account,contact, opportunity,case and lead in my unlocked package. For case entitlements,multicurrency fields (ex. currencyisocode, slastartdate, entitlementid etc.) I have added ""features": [...
0
votes
1answer
23 views

Is it possible to deploy source from the Bitbucket to the Scratch org?

We are working on implementation of ci/cd for 2nd generation package. Using CLI we want to: Create scratch org and push the source from the branch to the scratch org. Create package version from the ...
1
vote
1answer
22 views

SFDX error after adding manage package dependency

After adding manage package subscriber id in the sfdx-project.json file I am getting below error ERROR at Row:1:Column:125 sObject type 'Package2VersionCreateRequest' is not supported. If you are ...
1
vote
1answer
28 views

How to set my own template when creating an Apex Class using Salesforce CLI?

For apex:class:create there is an optional parameter --template: -t | --template TEMPLATE Optional The template to use to create the file. Supplied parameter values or default values ...
1
vote
1answer
24 views

Unlocked packages and hosting

One thing stopping us adopting unlocked packages is the poor security around the hosting of the package version. Performing a package create and version on the cli publishes the unlocked package to ...
0
votes
1answer
27 views

'CustomMetadataTypeAccesses' not valid in version 42

I'm trying to enable custom metada types to my permission sets in my metadata.xml file and deploy it to an org and I get this errir. I've tried updating API versions in my package.xml but still no ...
0
votes
1answer
27 views

Not able to authenticate my dev org from VS code

I am getting below error while I am trying to authenticate my dev org from VS code: { Error: spawn cmd ENOENT at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19) at ...
0
votes
0answers
40 views

MDAPI to DX Question

What I want to do is convert all the files in a particular folder in my project that are currently in mdapi format, convert them to source format, add the converted results to a corresponding folder ...
0
votes
0answers
33 views

Unable to deploy unlocked packages created with SFDX/CLI

I am unable to deploy unlocked packages created with SFDX/CLI . I am receiving the "The package version is not fully available. If this is a recently created package version, try again in a few ...
0
votes
0answers
17 views

Retrive leadsource picklist values for contact object

I have contact object in my unlock package. while versioning I am getting error for leadsource field available inside contact recordtype. Error: Contact.RecordtypeName: Picklist value: Broker in ...
3
votes
0answers
55 views

Sandbox not authenticating after creation

I'm trying to create a regular developer sandbox and waiting for it to self authenticate (as described in the salesforce documentation If the sandbox is created within the wait time, the CLI ...
0
votes
1answer
73 views

LWC: Can't access field values from @wire + uiRecordApi/getRecord from Quick Action

I'm new to LWC. I was trying to get the field values without calling the apex class. I am using Lightning Data Service i.e. getRecord. I'm not understanding why the @wire is not executing when the @...
5
votes
2answers
464 views

Unlocked packages vs Unmanaged packages

What's the main differences between unlocked & unmanaged packages?
1
vote
1answer
19 views

Getting LastModifiedDate of a Component File?

There is a post from 2019 here that details obtaining a couple of fields about a Lightning Web Component. Is there a way to get that information programmatically? Could not tell if trying various ...
1
vote
1answer
57 views

SFDX unlocked package version component list

I have created one unlocked package for deployment purpose.Now I am adding new components to the package and doing versioning. How can I check the which version contains what metadata. EX. suppose my ...
2
votes
2answers
39 views

Creating sandbox through Salesforce CLI

I am trying to create a sandbox through Salesforce CLI. I am trying to create a Sandbox of developer edition but I am getting an error which I could not find anything about on Internet. We are based ...
0
votes
0answers
86 views

ERROR_HTTP_414 - <h1>Bad Message 414</h1><pre>reason: URI Too Long</pre> on VS Code

I am trying to push the code to my scratch org through VS Code using following command - sfdx force:source:push --json --loglevel fatal But getting following error on VS Code. ERROR_HTTP_414" - "...
3
votes
1answer
86 views

Scratch Org Limit Exceeded, Not Visible In Dev Hub

Today, while trying to deploy a fresh scratch org, I received a familiar error. The signup request failed because this organization has reached its active scratch org limit Typically the way to ...
1
vote
2answers
157 views

sfdx Retrieve Custom object from one org to another org

I do have a Custom Object Animal from an org called ORG1 and I want to retrieve from this ORG1 to another ORG2, so Is that possible to retrieve it with commands without using the package? I am doing ...
0
votes
0answers
60 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 "...
6
votes
1answer
646 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
13 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
77 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
26 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
48 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
57 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
20 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
126 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

1
2 3 4 5
9