Stack Exchange Network

Stack Exchange network consists of 175 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
1answer
14 views

Push upgrade for unlocked packages

In packaging 2.0 model when we release unlocked package, is there any way to deliver it to a bunch of clients at once, i.e. something similar to push upgrade used in classic packaging model? Or should ...
0
votes
0answers
13 views

deployment metadata error after retrieve without doing changes

I have retrieved using the mdapi all the layouts that I have inside Salesforce, without doing any modification I tried to deploy in the same org and surprisingly for me the deployment fails in three ...
0
votes
0answers
10 views

Checkbox field is not working in SF1 for ios and Android

I have open loged in in SF1 ios device. I am able to see the checkbox custom field lable, but not able to see the box icox next to the lable. Does anyone know what is the issue?
0
votes
0answers
17 views

scratch org with knowledge enabled won't accept custom fields when importing json

Given the following scratch org definition file: { "orgName": "ScratchMe", "edition": "Developer", "features": ["Knowledge"], "hasSampleData": "false", "settings": { "...
4
votes
1answer
24 views

Does daily package version limit count failed attempts?

Do failed attempts to create unlocked packages count against an org's daily package version creation limit?
0
votes
0answers
13 views

sfdx.force.test.view.refresh not found

Summary When trying to use the integrated test side bar, no tests are being displayed. When clicking on "refresh" an error message is displayed saying "command 'sfdx.force.test.view.refresh' not ...
1
vote
1answer
26 views

Jenkins, Docker and SFDX: Share SFDX “cache” between docker containers

Our jenkins jobs using SFDX are dockerized, and we would like to be able to reuse scratch orgs from one job to another. As a scratch org is linked to one SFDX CLI installation sfdx force:org:list ...
3
votes
1answer
33 views

Error when doing force:source:pull after creating an Email Template in a scratch org

I created a scratch org with the default scratch org definition file from sfdx force:project:create, and then I created an email template from the Email templates tab, and a Custom Object. When I did ...
2
votes
1answer
19 views

Step-by-step guide to migrate existing managed package to DX

I have a managed package in Bitbucket and want to work on it using DX. There are tons of articles on how to migrate to DX but I am still looking for a one page checklist that I can use for every ...
6
votes
0answers
41 views

Why is there a big difference in profiles returned by “sfdx force:source:pull” and “sfdx force:mdapi:retrieve”?

I have a project with a scratch org created using some profiles that date from the MDAPI days. The profiles look good in the org. Having added some record types, I expected: sfdx force:source:pull ...
1
vote
1answer
13 views

scratch org definition file - middle name enable and external sharing

I am trying to create a new scratch org definition file that will turn on external sharing and enable middle name. However i get error messages and the documentation isn't great once you get down into ...
0
votes
1answer
24 views

Lightning Web component is not getting deployed from Source to Org

Lightning Web component is not getting deployed successfully from Source to Org. Screenshot of the error:
2
votes
0answers
19 views

Can push notifications be sent from scratch orgs?

We have connected app that's part of our managed package, and has always been defined in the Packaging Org itself. Recently I've been looking at adding push notifications to our application, so I ...
1
vote
1answer
22 views

SFDX package list

My sfdx-project looks like this : { "packageDirectories": [ { "path": "force-app", "default": true, "package": "dreamhouse", "...
0
votes
1answer
26 views

How to solve this deployment errors (Variable does not exist: isReadOnly)?

Trying to deploy package (big one) to a new org but all the tests failed with very weird errors: 1)line -1, column -1: Dependent class is invalid and needs recompilation: Class ClassName : Variable ...
0
votes
2answers
18 views

CI/CD w/ SFDX: Where to store the jwtkeyfile in my repo?

I was following some notes online and managed to setup a CI/CD pipeline in bitbucket using Docker and SFDX. I used the following command in the .yaml file: sfdx force:auth:jwt:grant --clientid $...
1
vote
0answers
28 views

Apex class 'SiteLoginController' does not exist (scratch org)

I've created over 40 scratch orgs with the following config, without issues. { "orgName": "MyScratchOrg", "edition": "Developer", "features": ["Communities","PersonAccounts","SiteDotCom","...
0
votes
2answers
27 views

Main markup cannot be empty. If you are trying to delete the Lightning definition bundle, directly delete the bundle instead

When I run this command: sfdx force:source:deploy -x manifest/package.xml I get this response: PROJECT PATH ERROR ──────────────────────────────────────────────────────── N/A ...
0
votes
0answers
15 views

How to use force:data:tree:export to export data with junction objects or with more than one level of master-detail? [duplicate]

I don't understand how to use sfdx force:data:tree:export with use cases slightly more complicated than the ones in the Salesforce DX Developer Guide. With simple data with at most one level of master-...
0
votes
1answer
7 views

Failed to query NamespaceRegistry for isNamespaceRegistered. (all worked just 50 days ago)

I am able to log into my partnerorg then I attempt to create a scratchorg sfdx force:org:create -f \config\\project-scratch-def.json -a mydemodemo --durationdays 30; this worked just 50 days ago ...
2
votes
0answers
16 views

How to get Twilio for Salesforce Apex API intellisense in VSCode

I have this Twilio package installed (in both environments): Twilio for Salesforce: Production / Sandbox I am using VSCode to build against the Apex Query Library: Example Apex TwilioSF....
0
votes
0answers
45 views

Deploy Source in Manifest to Org - ended with exit code 1 and no response in problem tab

I have a local Salesforce DX project with a package.xml manifest file. The project has been authorised against a fresh developer org. I want to deploy all my local code in one go, so I am using the ...
0
votes
0answers
9 views

Deploy standard sObject label change with managed package

Through Setup -> User Interface -> Rename Tabs and Labels we can change the labels of standard objects (e.g. we can rename Account to say Shop). Also, can i include this in the managed package? ...
0
votes
0answers
19 views

Scratch org push errors: xmldom error

Since Winter'19 release my team is getting following errors when pushing our code to the scratch orgs: [xmldom error] element parse error: Error: invalid tagName: @#[line:5,col:38] [xmldom error] ...
1
vote
2answers
26 views

How do I insert lightning web component child templates and their JS files using SFDX?

Context I have a parent component in vscode. parent.html <template> <my-child-component></my-child-component> </template> parent.js import { LightningElement, api } ...
1
vote
0answers
27 views

At what time in the day does a scratch org expire?

At what point in the day does a scratch org expire? I am working on a scratch org that expires today (3/11) and am still able to log and run commands against it. Should I anticipate being able to ...
2
votes
1answer
50 views

Help Text On Fields of Custom Lightning Component

I have a lightning component in which i want to display help text for the fields. I can use for sure. But is there any way to get the help text from backend. I mean when we create the field in the ...
1
vote
1answer
11 views

plug icon is missing with default org name in vscode

As per the documentation "Change or Open Your Default Org", In vscode, I should see plug icon with the default org name but it disappeared from last few days. Here is the screenshot(stolen from this ...
2
votes
1answer
33 views

DX CLI force:data:tree:export Query returned no results

Records are returned when I execute this sfdx force:data:soql:query -u Dev --json --query "SELECT Id, Name, (SELECT Id, Name, AccountId FROM Contacts) FROM Account WHERE Id IN ('0010z00001T1uXSAAZ','...
0
votes
0answers
11 views

Chatter Access to Partner Portal Users

I have set up a community for my partner portal users. I want them to have access to Chatter to interact with the internal salesforce users. But I am unable to provide them the chatter access. Also ...
2
votes
0answers
18 views

Can not access flows and processes via UI installed with 2GP / SFDX on target org

I have some second generation packages (2GP) that contain processes and flows. I am working with the API Version 44.0. When pushing/pulling the flows on/from scratch orgs, they work easily. But after ...
0
votes
0answers
12 views

ERROR: Cannot read property 'attributes' of null

I am getting this error when trying to push my code to a scratch org. Everything was working fine then my computer crashed. And now i get this error. This is no other information provided with this ...
6
votes
0answers
43 views

Scratch Org Site Domain

We've got a public Site.com in our org. When converting and migrating from MDAPI to DX, I noticed even though all the components related to the site were converted and deployed, we still have to go ...
0
votes
0answers
23 views

standardValueSets not being used in production org

After creating a standardValueSet for standard object field Product2.Family picklist in a scratch org and successfully installing the package using sfdx force:package:install..., the picklist still ...
2
votes
1answer
47 views

Has anyone used the Salesforce DX CLI “shape” command?

In the Salesforce Winter '19 release, the Salesforce CLI recently was updated with a command with a CLI call: sfdx force:org:shape. force:org:shape:create create a snapshot of org edition, ...
1
vote
0answers
15 views

SFDX create definition from a dev org

I am wondering if there is a way to create the sfdx scratch org definition straight from a dev org. i am aware of shape and snapshot however these are in pilot and what i am hoping for is something ...
0
votes
0answers
27 views

ProcessBuilder Not working on update

Hi I have Scenario in which process builder is not working on update : I have Created a check box in which and whenever checkbox is true all the address related information need to be copied to the ...
0
votes
1answer
20 views

Is it true that Branch Packaging Orgs have been discontinued?

Is it true that branch packaging orgs have been discontinued in favor of sfdx? I sought official Salesforce confirmation of this but cannot find anything proving or disproving this. Does anyone have ...
0
votes
2answers
65 views

Deploy CPQ related changes to production with SFDX

trying to add SBQQ_Quote__c to Opportunity's related lists in my scratch org, no problem there using UI. i pull the code and confirm that the changes are in Opportunity-Opportunity Layout.layout-meta....
0
votes
1answer
33 views

Data Storage on Scratch Org

Is 200 MB data storage limit for scratch orgs? Is it possible to increase it? I need 2 GB to fully test our app. I cannot find anything about this on Stack, SF Dev Forum.
1
vote
1answer
26 views

Creating package version of package depending on some other packages

So i created package on two other packages. One is managed package from AppExchange named propel and the other is unmanaged package made on my production holding some of metadata that are there. So ...
0
votes
0answers
9 views

Add Individual Object in unlocked package

Does anyone know if Individual Object is supported in Unlocked Packages? I tried to look in the list of available features, similar to what is necessary for Person Accounts, but I did not find ...
1
vote
1answer
31 views

Get appExchange package ID

I work with SFDX and to install or include dependence with other package i need it's id. I know that one can get it when is on screen where one pick for whom the package should be installed, it is in ...
1
vote
1answer
29 views

Unlocked package deployment fails to a sandbox org

I have an unlocked package which deploy succesfully to scratch org or empty dev edition org. The command is sfdx force:package:install --wait 10 --publishwait 10 --package ${packageName} -k ${...
2
votes
4answers
355 views

Should the .gitignore include an entry for .vscode when using Git and VSCode

wadewegner has an example .gitignore file with the below content .DS_Store .sfdx .project .salesforce .settings node_modules .idea As part of his sfdx-simple app on GitHub. Should this file include ...
0
votes
0answers
13 views

CPQ Evergreen product increase/decrease quantity in Amend Quote Line

I am having an issue with one requirement which is client want to increase/ decrease product quantity when amend quote which Product is Evergreen !! While updating with existing quantity it is getting ...
0
votes
1answer
28 views

How to select scratch org in SFDX

I am new to Salesforce DX and start using VS code and I have created three scratch org while working and now I want to switch between my scratch org, How can I do that? example I want to switch to ...
4
votes
1answer
70 views

Moving from change set model to package development model

I am new to Salesforce and have few questions on the ways of developement and adoption of package model I have started working for a fairly large organization that uses Salesforce extensively and ...
1
vote
1answer
28 views

Moveing old changes from Production to package in SalesforceDX

So my problem is that I just moved to the company and they want to implement CI in way of work with salesforce. So what we did is promote to Enterprise ( it includes scratch orgs package in it ) and ...
4
votes
1answer
46 views

Picklist value: <value> in picklist: Type not found

When doing sfdx force:source:push with Account RecordTypes, I'm getting a series of errors like this: productCatalog\main\default\objects\Account\recordTypes\AdvisorRep.recordType-meta.xml ...