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 [scratch-org]

A scratch org is an org type that is meant to be temporary, built from source, used for development or testing, then destroyed when done. Scratch orgs are managed using the Salesforce DX command line.

0
votes
1answer
35 views

SFDX - Lightning Web Components trailhead issue - Scratch Orgs being created as Sandboxes

I'm working my way through the "Lightning Web Components Basics" trailhead and I've been directed to the following resource: https://github.com/trailheadapps/ebikes-lwc#installing-e-bikes-using-...
0
votes
1answer
21 views

Not able to deploy SocialCustomerServiceSettings into scratch org

I had retrieved my source code from a sandbox and converted the into source format using the mdapi:convert command. Now, I am trying to push the code into scratch org there is an error showing "The ...
1
vote
0answers
75 views

Salesforce DX - ENOENT error when trying to login

Recently I came upon an error which I cannot resolve. I have searched through google and did not manage to find the answer. I have installed salesforce CLI and when typing the command: in terminal:...
5
votes
2answers
281 views

How to delete Scratch Org user from deleted scratch?

As stated in the title - I created a scratch org and created additional user on it using SFDX. Then after deleting this environment when I try to create user with the same name on another scratch org ...
0
votes
1answer
20 views

Where are the files from an unlocked Package?

I am doing to refactor on my project, to take advantage of the unlocked package (without namespace) from Salesforce. I was able to create a package, etc. The only thing I have troubles understanding ...
0
votes
1answer
30 views

Scratch Org Login and Pushing to Production

I have been having issues setting up a scratch org. So I decided to try out (in Intellij/IlluminatedCloud) creation of a new project under the Sandbox Organization Type. I used my scratch org log in ...
0
votes
2answers
49 views

Salesforce DX Project Structure Clarification

I am having trouble understanding the capabilities of a scratch org. I am in need of someone to take a look and see if it is set up incorrectly or if I am understanding it's capabilities wrong. My ...
0
votes
0answers
19 views

Scratch Org without Data.org enabled

I got the issue that when I create my Scratch org it's created with the Data.com feature on. Thing is, I'm implementing Continuous Integration using Bitbucket Pipline and when I tried to push my ...
0
votes
0answers
52 views

Customer Community license in an Enterprise edition scratch org

Is it possible to have Customer Community license in an Enterprise edition scratch org? My DevHub Org has the licenses but when i create an Enterprise Edition scratch org, the Customer Community ...
3
votes
1answer
35 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 ...
1
vote
1answer
72 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
19 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
26 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....
4
votes
0answers
47 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 ...
7
votes
1answer
80 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 ...
1
vote
2answers
855 views

Lightning web components issue with SFDX push and pull

I Create an sfdx scratch org using Quick Start: Lightning Web Components . I also created a sample hello world lightning web component and pushed it to the scratch org and everything works fine as I ...
5
votes
2answers
190 views

What is the definition of “daily” for “how many scratch orgs you can create daily”?

This Scratch Orgs page talks about "how many scratch orgs you can create daily" and I just ran into this error: LIMIT_EXCEEDED: The signup request failed because this organization has reached its ...
3
votes
1answer
42 views

Is there documentation for the different user license types within each edition of scratch org?

I need to know which user license types are available in developer scratch org vs enterprise scratch org vs group scratch org vs professional scratch org. These are all the types of editions scratch ...
1
vote
1answer
91 views

How to create a Community User in a scratch org for tests?

I'm moving some Communities logic over to SFDX format and aiming to use a scratch org for a Continuous Integration build. The test cases I already have create a new User and verify that the User is ...
0
votes
0answers
17 views

Pushing Account Name (Local) to Scratch Org

If I understand it correctly, Account Name (Local) in enabled by SF Support. But in scratch orgs, it doesn't make sense to ask support for every new scratch org. Is there any way, how to enable the ...
1
vote
0answers
18 views

Enable work.com settings in Scratch Org Definition File with SalesforceDX

I am trying to enable work.com Thanks and Skills Settings in Scratch Org. Do you know is it possible to put the configuration/settings in scratch org's definition file?
0
votes
3answers
212 views

Scratch Org Creation Error with sfdx

I am getting below error when trying to create scratch org. No such column 'Settings' on sobject of type ScratchOrgInfo. Here is my org definition json file - { "orgName": "offer", "...
2
votes
0answers
28 views

SFDX Can't Pull Source from Scratch Org “Metadata API received improper input” AppMenu and AppSwitcher [duplicate]

I'm using SFDX and I made a change to the visibility of my app in my scratch org but when I try to pull the changes down (sfdx force:source:pull) I get: ERROR: Metadata API received improper input....
3
votes
1answer
186 views

Error creating Scratch Org - The Streaming request failed to handshake

I'm trying to create a scratch org using either VS Code or the command line. I'm able authenticate to my dev org using: sfdx force:auth:web:login This works correctly. However when I try to create ...
1
vote
0answers
106 views

SFDX force:mdapi:convert for metadata from Managed Package

I'm trying to migrate to sfdx, but right now just in the exploratory phase. The package.xml I'm working from is essentially a full org metadata pull that was generated via MavensMate, and I configured ...
0
votes
1answer
31 views

Where & how to find out what can be automized on SFDX scratch org creation

How do I find out what can be automized regarding scratch org settings and preferences? And where? I just learned that things that cannot be directly set in project-scratch-def.json might be pushed ...
2
votes
3answers
370 views

SFDX CI: Invalid record ID. Specify valid record ID value

I'm trying to follow Continuous Integration Using Salesforce DX trailhead module, however, I'm using my own repo (I didn't clone the sample repo that is provided). I've used their .travis.yml file ...
1
vote
2answers
85 views

SFDX Jenkins Setup: Scratch Org not accessible from remote machine

I am currently doing a POC for the Continuous Integration in Salesforce DX through Jenkins. My Jenkins Setup is such that the job-run creates an on-demand agent which executes the job and gets scraped ...
1
vote
1answer
75 views

How to automatically enable Recordtypes for Scratch org admin

Whenever I create my scratch org I have to manually assign Record Types to the Standard User and System Administrator profile. Is there any way to automize that?
7
votes
2answers
155 views

Scratch org is created without Alias and reports “Cannot read property 'timeout' of undefined.”

From one day to the other I am unable to create scratch orgs using the command which worked before: sfdx force:org:create -f /Users/path/to/scratch-def.json -a MY_ORG -v DevHub -s -d 30 I receive ...
1
vote
1answer
30 views

Scratch Org Capabilities with regard to EmailServiceFunction

When I create an EmailServiceFunction in the scratch org and pull down to my local project I don't see the EmailServiceFunction I created reflected anywhere in the meta-data. Is this a change that can ...
6
votes
1answer
530 views

Create scratch org with namespace?

How do I create a scratch org that has the same namespace as my Developer Edition org where the managed package is held? I've followed the instructions in the "Link a Namespace to a Dev Hub Org" page ...
1
vote
1answer
138 views

Illuminated cloud create scratch org from file

How I can use scratch-def.json for creating new org without using DX CLI?
0
votes
1answer
154 views

I haven't access to the [ScratchOrgInfo] object

I have a problem with my trailhead "Quick Start: Salesforce DX". I'm trying to do this: sfdx force:org:create -s -f config/project-scratch-def.json -a "default scratch org" But become an Error: You ...
2
votes
1answer
268 views

Retrieve a change set from scratch org using sfdx?

I am trying to bundle up certain metadata in a change set in my scratch org. Is there a way to pull that using sfdx? I am having trouble finding the appropriate command in the documentation.
0
votes
1answer
33 views

Do installing a Managed Package (listed in AppExchange) via Salesforce CLI, create a License & Lead in package developer's LMA org?

Can anyone confirm if this is the case. Though I don't really think this should be allowed, but I'm suspecting random licenses occurring and it's a hunch that they are being generated because it is ...
1
vote
1answer
174 views

Using SFDX scratch org for development that interacts closely with 3rd party packages

I'm starting development of a lightning component that will extend functionality of a third party app used in our Production. The 'app' is composed of a dozen or so interdependent managed packages, ...
0
votes
0answers
91 views

importing Custom Settings to scratch org

I am running into a problem, while trying to import Custom Settings to my scratch org. sfdx-project.json { "packageDirectories": [ { "path": "force-app", "default": true } ], "namespace": "...
5
votes
2answers
174 views

Unlocked packages behaving like managed packages

Sorry if this question has been asked before (please point me to the answer if that's the case). I have created and installed an unlocked package successfully in a scratch org. I want to go ahead and ...
0
votes
1answer
106 views

Deletion of custom field on standard object not detected by force:source:pull

I did the following: In my scratch org I created a custom field (on a Standard Object). Then I executed force:source:pull so I had that custom field in my project folder. I created a new scratch org ...
4
votes
1answer
214 views

SFDX Pull error: Entity of type 'ListView' named XXX cannot be found

While trying to pull changes from a scratch org (sfdx force:source:pull, tried with and without -f), I'm getting this error: Entity of type 'ListView' named 'Note_Relation__c.My_Notes' cannot be ...
6
votes
1answer
110 views

How to debug Lightning components with Platform Cache?

I am researching how to make use of platform cache in a lightning component to reduce the number of API calls that it will need to make. The problem is that when I push code for a Lightning component, ...
1
vote
1answer
265 views

How do you create scratch orgs with permissions that match production?

How does one maintain consistent user profiles between scratch orgs and production? For example, I create a scratch org with the following config: { "orgName": "mycompany", "edition": "...
0
votes
1answer
88 views

trying to retrieve meta data, but getting C:\Program is not recognized as an internal or external command, when referencing a package with spaces

sfdx force:mdapi:retrieve -s -r ./mdapipkg -u myemail@email.com -p 'My Package' 'C:\Program' is not recognized as an internal or external command, operable program or batch file. however sfdx ...
5
votes
2answers
352 views

SFDX force:data:tree:import MALFORMED_ID

I am creating scripts to export and import test data for our sfdx scratch orgs. I've used the sfdx force:data:tree:export command with -p to generate my plan file, plus three object files (one parent (...
1
vote
0answers
62 views

SFDX FieldService setting [duplicate]

I'm trying to work with WorkOrder object on my scratch org, but when I pull changes I'm getting error: sfdx force:source:pull -f -u 13285 --loglevel debug ERROR: Settings type: 'FieldService' is ...
6
votes
1answer
224 views

force:source:push fails with opportunity with field history enabled

Trying to push the source code to a scratch org I get the following error: The entity: Opportunity does not have history tracking enabled (998:13) But there is no option to specify on the scratch ...
0
votes
2answers
69 views

Scratch ORG versioning with GitHub

Our company wants to use the benefits of SDFX's scrath orgs for versioning and deploying to our GIT repository. Once we install the CLI I can see I need to login using the command sfdx force:auth:web:...
0
votes
1answer
30 views

All org info lost every time after computer reboot

so I can connect to the DevHub, spin up scratch orgs without any issue. And when I ran sfdx force:org:list, everything is listed as it should but every time after I reboot my (work) computer, sfdx ...
1
vote
0answers
21 views

how to automate the process to install the managed packages in scratch orgs [duplicate]

I Would like to automate the process to install the managed packages in scratch orgs so that I dont need to install the packages every time I create the scratch org for development. Any script or ...