Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [salesforcedx]

Salesforce DX is a broad reaching project touching a number of different features including: Salesforce CLI, Force.com IDE 2.0, support of standard developer toolsets, and Packaging 2.0. Since fixing unsupported Metadata API types is also a part, some MDAPI posts could be tagged, too.

0
votes
0answers
4 views

Visualforce: How to get the look of pagination buttons from a standard object like accounts to my custom visualforce page?

I have this code for the pagination buttons: <apex:pageblockButtons location="bottom" html-align="left"> <apex:commandButton id="firstpage" value="◄◄" reRender="details" action="{...
1
vote
1answer
47 views

Git unable to update URL base

Trying to start learning DX. I have the project set up and downloaded a simple package from a demo org. But I get an error when I try to commit to Github. /Desktop/GloboHealth/globohealthDX$ git ...
0
votes
2answers
16 views

Inner Class Cover in Test Class

Please help me why my code coverage is showing 0% . See my class code and test class code where I have written wrong? Class public class InnerClass { public class Wrap { public string ...
0
votes
0answers
23 views

Setting Up New Scratch Org

I am setting up a SFDX Scratch org for the first time and am having trouble understanding how everything connects and am missing a few steps: Tools I am using: BitBucket CLI or SourceTree intellij ...
0
votes
1answer
17 views

SFDX error on apiVersion [duplicate]

Yesterday I started learning Lightning Web Components on Trailhead, installing the new CLI and updating the VS Code extensions as instructed. I got a pre-release Spring 19 dev org and enabled it as a ...
3
votes
0answers
17 views

How to set up a scratch org such that System.requestVersion works

We're an ISV transitioning from a classic single org dev setup to DX. We're developing a first generation managed package. One of the problems we're running into is the use of System.requestVersion in ...
0
votes
1answer
18 views

SFDX commands responds slow

Could someone please explain why sfdx commands,for example ( sfdx force:org:list ) takes a long time to respond. In my case it was ~50 seconds. Could you please explain what is happening in the ...
2
votes
0answers
17 views

SFDX FLS Change on Profile deletes other permissions

We are facing some strange behaviour with changes done on profiles, here is the scenario: We pushed entire metadata to the scratch org and ensured there are no changes detected when we ran sfdx force:...
0
votes
0answers
8 views

Mismatching versions-error when trying to install unlocked package

I created a new version of my unlocked package and tried to install it into a scratch org. Unfortunately I get the error Mismatching versions.. From what I know this error comes up, when one tries to ...
0
votes
0answers
17 views

How to connect Visual studio Code to Salesforce

I have connecting command prompt to salesforce using below commands. D: cd salesforce CLI cd bin sfdx force:auth:web:login -d -a DevHub But i cant able to connect Visual studio code to salesforce. i ...
1
vote
1answer
21 views

VS Code: How can I keep my Apex class problems from disappearing upon edits?

When deploying apex code with errors in it through SFDX, VS Code displays a handy list with convenient click-to-view functionality. But, as soon as I start to edit my file for the first problem, all ...
4
votes
1answer
34 views

Apex Replay Debugger: Cannot read property 'name' of null

When I select Launch Apex Replay Debugger in VS Code it asks me to select a log file and then gives me this error message: Cannot read property 'name' of null I've managed to get the Apex Replay ...
1
vote
1answer
40 views

“fatal signup error” when creating scratch org

I have a Dev Hub that is set up in my Developer Edition org. I have been using it for DX development for several weeks, but when I tried to create a scratch org today with the same configuration file (...
0
votes
0answers
16 views

Not being able to access previous Developer Edition Account after creating and logging in to the new pre-release edition [duplicate]

I was setting up SalesforceDX and creating a SFDX project in VS code and I had run into an issue with folowing error while trying to create default scratch org: ERROR: The configured apiVersion 45....
0
votes
0answers
21 views

command 'sfdx.force.project.with.manifest.create' not found

I've installed the latest versions of VScode, the Salesforce CLI, and the VS code Salesforce CLI Extension but when I go to run SFDX: Create Project with Manifest or any SFDX command, I receive an ...
0
votes
1answer
35 views

Unit Test for flows in Salesforce

I have to create a test class for a flow and I wanted to check the flow test coverage for it. https://releasenotes.docs.salesforce.com/en-us/winter19/release-notes/rn_forcecom_flow_test_coverage.htm ...
3
votes
0answers
33 views

Authorize into developer Sandbox using JWT

I am attempting to authorize a developer Sandbox using JWT in an attempt to implement a CI process. I found this related question on the subject: Can I connect to a sandbox using JWT Flow and Prod ...
0
votes
0answers
23 views

How to stop Knowledge being enabled in a Scratch Org?

The following is the Scratch Org definition I'm using: { "orgName": "Test Company", "edition": "Enterprise", "features": ["API", "AuthorApex", "ContactsToMultipleAccounts", "DebugApex"], ...
5
votes
0answers
30 views

SFDX - Can certificates in Unlocked Packages be installed?

I checked the Metadata Coverage Report for Certificates which indicates that they can be a part of Unlocked Packages. I was able to create the package and a version of the package successfully with ...
1
vote
0answers
17 views

Using settings in scratch org definition file get knowledge cannot be disabled error

As Spring 19 is approaching, OrgPreferences is going to be expired soon for scratch org definition files. So I am working on updating it to metadata settings style. Others work okay, but I fail to ...
1
vote
1answer
31 views

Any work around on compiling file on save in vscode for sandbox?

I want to use Visual Studio Code for development in my sandbox and I was able to setup as per this article. Everything is working fine but whenever I make any change to ApexClass, I need to right ...
0
votes
0answers
15 views

Not Listing Scratch Orgs in SDFX CLI

When I create a scratch org I get an error but the org gets created anyway. The error I receive is "ENOENT: no such file or directory" which I don't think is related to DX. There is no way for me to ...
1
vote
1answer
16 views

Unable to authenticate through REST API when using scratch org

I'm having some trouble getting the REST API to work on a scratch org. When I call the login endpoint I get the error "invalid grant". (This happens when I try test.salesforce.com as well as login....
1
vote
0answers
28 views

DX CLI and VS Code Extensions

I've got VS Code 1.30.1 (user setup) installed along with: Node: 8.9.3 VS Code Extensions: All the ones availble as part of the Salesforce Extensions Pack https://marketplace.visualstudio.com/items?...
0
votes
1answer
23 views

unlocked package vs mdapi deploy

Would I be correct in saying that unlocked packages should be used to deploy to partial and full orgs while mdapi:deploy should be used to deploy to developer orgs?
0
votes
0answers
16 views

Cannot open Activity related to a custom object

I have a custom object "Service File". I have many calendar event where "Service File" is parent. System admin can see all the activities (calendar) in the related list of "service File", but cannot ...
0
votes
1answer
27 views

Salesforce DX Trail - scratch org is not found locally

I've been following this trail here: https://trailhead.salesforce.com/en/content/learn/projects/quick-start-salesforce-dx/create-and-test-our-scratch-org?trail_id=sfdx_get_started and have run all the ...
0
votes
0answers
18 views

pushing code from one org to another using visual studio code [duplicate]

I know we can push code using ANT, I wanted to know if there is any other way to push code from one sandbox to another in Visual Studio code
4
votes
0answers
21 views

`sfdx force:data:tree:import` FAILS when field API name has numbers in it

I'm posting this issue again as it is not resolved yet. I don't understand why it's not part of the known issues of Salesforce DX. This has been reported here 5 months ago, with a temporary fix. The ...
0
votes
0answers
31 views

Can't Create Scratch Orgs

My vscode version is 1.30.1 and my sfdx version is sfdx-cli/6.44.0-dead729fb5 (darwin-x64) node-v8.9.4. I created 3-4 dev hug orgs and tried to create a scratch org from it but it is not working. I am ...
2
votes
0answers
17 views

Activating IoT in a scratch org

I'm trying to push source code that contains an IoT orchestration (and context etc.) to a (new, empty) scratch org. My scratch org is created with the following project-scratch-def.json (I've also ...
3
votes
0answers
51 views

SFDX auth login is throwing an error “Windows cannot find error opening a https://login.salesforce… Make sure you typed the name correctly”

When I try to login to Dev Hub using this command in the terminal: sfdx force:auth:web:login --setdefaultdevhubusername --setalias NewDevHub I encountered an error as shown in the picture above. I'...
0
votes
0answers
23 views

Create a Private Key and Self-Signed Digital Certificate

i am trying to generate Private key and Self-Signed Digital Certificate but now i am unable to generate here what i did, first i installed openSsl in my windows system after that i created one folder ...
0
votes
0answers
51 views

SFDX: Authorize a Dev Hub command

I get "sfdx force:auth:web:login --setdefaultdevhubusername ended with exit code 1"
5
votes
1answer
195 views

How to push code to production with Visual Studio Code & DX

I am using Visual Studio Code to develop new functionality. However, after completing the testing in the sandbox, I want to push the code to production. When I choose "SFDX: Deploy Code to org", it ...
0
votes
0answers
45 views

Cannot create scratch orgs in visual studio

I am trying to create a scratch orgs from visual studio, I authorise the dev hub successfully but when I try to create a scratch org it throw this error : ERROR: Error authenticating with the ...
4
votes
1answer
92 views

SFDX + CI: Scratch org user only sometimes has Marketing User permission

I'm working on a project in Python, using simple_salesforce to talk to the Bulk and REST APIs. I'm testing this project via Salesforce DX, running in GitLab Pipelines. I've encountered an odd ...
0
votes
0answers
34 views

Salesforce DX setup Problems

I am using the developer edition of the salesforce as of now to learn development in Salesforce. I am tired of using the developer console as it becomes incredibly slow at times. I have been trying ...
1
vote
0answers
43 views

Authentication into Dev Hub does not work in CLI

I type in Salesforce CLI the following command: $ sfdx force:auth:web:login -d -a DevHub My browser opens up a login form. I pick the org which has Dev Hub enabled. Then in browser I am getting ...
4
votes
0answers
28 views

SalesforceDX: Scratch Org's support for Files and Libraries flawed

I am developing a package based on salesforce DX which requires files (images) to be installed. I want to put them into a special library so they do not get mixed up with other content. When I log ...
4
votes
1answer
49 views

'Script Too Large' when cloning

I have a DX project that heavily relies on the MetadataService class. The files reside in a GitHub repository. I'm trying to figure out why the project fails to get pushed to the scratch org when ...
3
votes
1answer
120 views

LWC VisualCode DevHub command

Can someone please help me, I want to complete the lightening web components Trail in trailhead but i keep getting this error. I installed CLI and updated it to pre realese version I installed Visual ...
6
votes
1answer
66 views

Slow scratch orgs causing Apex CPU time limit to be hit about 20% of the time - any workarounds?

We have an SFDX build set up that runs our 2,800 tests against 6 different scratch org configurations in parallel. But every build fails on what seems like a random one of the scratch orgs (i.e. it ...
2
votes
1answer
33 views

Unable to delete custom field using force:source:delete CLI command

I realize the command is still in beta, but I am unable to delete a custom field using the force:source:delete command. I have tried force:source:delete -m CustomField:myObject__c.myField__c, which ...
1
vote
0answers
20 views

InvalidJsonCasing Error while running the command sfdx:package:publish

I have created the package with the command sfdx:package:create -n Consumer -t Unlocked -r force-app and it updated the sfdx-project.json file. Here is my sfdx-project.json file - { "namespace": "...
1
vote
1answer
31 views

Getting sfdx error: running AuthLogin: The service and account specified in key.json do not match the version of the toolbelt

I am getting this error when running my sfdx plugin in jenkins not sure what it is asking me to do, I have the latest sfdx cli installed? ERROR running AuthLogin: The service and account specified ...
0
votes
1answer
47 views

'SFDX' is not recognized as an internal or external command in VS code

trying to practice https://trailhead.salesforce.com/content/learn/modules/sfdx_app_dev/sfdx_app_dev_setup_dx?trail_id=sfdx_get_started but getting SFDX error, mind you sfdx successfully installed ...
2
votes
0answers
22 views

Missing Partner Community Licenses in Scratch Org

Is there a way to enable Partner Community User Licenses in scratch org? While trying to deploy Partner Community profiles, we get the following errors. In field: userLicense - no UserLicense named ...
3
votes
0answers
53 views

SFDX: Deploying workflows with email alerts using org wide email addresses

I have an issue where I am not able to deploy workflows to my scratch org because the workflow contains email alerts that specify an Org-wide email address as the sender. The error I get is: You must ...
0
votes
1answer
30 views

Salesforce DX connected app

I am trying to build a connected app- connected to our prod environment so that our developers could spin up scratch orgs and work there, however I dont want them to be able to use org:login and ...