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

Scratch ORG is not opening in browser

my scratch org is not opening in browser, vs code just display the url of the org in Terminal I am using chrome and its my default browser as well.
0
votes
1answer
86 views

Is Deployment of Queues not supported from sfdx CLI

While deploying queues from vs code using sfdx cli, I'm getting below error: ERROR running force:source:deploy: The specified metadata type is unsupported: [queues] It seems it's not supported.
1
vote
1answer
33 views

SFDX error for LiveChatTranscript object

I have added LiveChatTranscript object in my unlocked package but while versioning getting error LiveChatTranscript: Invalid fullName, must end in a custom suffix ( for ex. __c ) Can anyone help me ...
2
votes
1answer
253 views

Issue with Prod deployment from VS Code sfdx CLI

I'm trying to deploy my objects from VS Code to Prod. All my object is in Source format. But when I try to deploy, I get below error : sf:INVALID_OPERATION: INVALID_OPERATION: testLevel of NoTestRun ...
0
votes
1answer
27 views

How to upload to gitlab repo? [closed]

Ok, so i have been trying to get this working and its driving me nuts. All want to do is take my project in vscode and upload it to a branch in gitlab. Here is a list of things i have done : Set ...
2
votes
2answers
217 views

Setting Environment Variables in Salesforce DX?

I am looking to update SFDX_IMPROVED_CODE_COVERAGE Environment variable to true. Loosely documented here and here. I am using the syntax documented here that seems to show that I can update that ...
0
votes
1answer
122 views

Can we reset security token using SFDX CLI?

I'm trying to find a way to reset default scratch org user's Security Token via CLI. Is that even possible?
1
vote
1answer
27 views

SFDX CLI - How to Pull SObject Definitions from Salesforce Scratch Org

I am interested in knowing how someone can pull SObject definitions, custom and standard, from a scratch org using the CLI, or otherwise, into a local directory e.g. .sfdx. Something similar to what ...
2
votes
1answer
49 views

Metadata list for unlocked packages which one is deprecated and which one is deleted?

I have 2 dev orgs. In org1 I have created one class, aura components and its controller class & custom meatadata. Then created an unlocked package and version it. Post that I have installed the ...
1
vote
1answer
487 views

Status 500, Internal server error when calling Apex from LWC

I'm getting a status 500, internal error when calling an Apex function from my LWC. I'm able to provoke the error whenever the function, which I'm calling, is passes a parameter. The following code ...
1
vote
1answer
30 views

Anybody knows where we can enable/disable “Make Setup My Default Landing Page” of user record programatically?

I've been trying to understand where we can toggle "Make Setup My Default Landing Page" field of user? My intention is to build a scratch org and at the same time I want to disable this after scratch ...
1
vote
3answers
202 views

Does SFDX force:mdapi:deploy respect .forceignore file?

I'm trying to work in a github repository project that is not in Source format and is using Metadata API format structure. The repository has stored all component code into an src folder including ...
1
vote
1answer
93 views

Sfdx Auth Url is getting expired after certain time

For CI pipeline for authentication I am using "sfdx force:Org:Display --targetusername ProductionHub --verbose" command to get Sfdx Auth Url. Then by using "sfdx force:auth:Sfdxurl:Store -f ...
0
votes
1answer
39 views

Error in SFDX CLI

getting below error, force:project:create -n projectname The filename, directory name, or volume label syntax is incorrect. when running command - force:project:create -n projectname in CLI
0
votes
1answer
12 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
16 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
46 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
194 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
168 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> ...
2
votes
1answer
58 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 ...
1
vote
1answer
165 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
37 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
159 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
44 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 '...
1
vote
1answer
287 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
2answers
96 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
223 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
50 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":...
1
vote
1answer
280 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
74 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
24 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
36 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
337 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
117 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
87 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
20 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
32 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
38 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
30 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
53 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
26 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
46 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
31 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
84 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
54 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
25 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
61 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
210 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 @...
7
votes
2answers
1k views

Unlocked packages vs Unmanaged packages

What's the main differences between unlocked & unmanaged packages?
1
vote
1answer
29 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
2
3 4 5
10