Questions tagged [scratch-org-definition-file]

A scratch org definition file is a JSON file that specifies a shape from which the scratch org is created. That is: it contains which edition of Salesforce the org will run, which features it has enabled, and its language.

Filter by
Sorted by
Tagged with
3
votes
1answer
42 views

Enable Multiple Languages via knowledgeSettings in Scratch Org Definition File

I'm creating a scratch org definition file (project-scratch-def.json) in order to create an Unlocked Package that will interact with Salesforce Knowledge. I'm currently stuck when I try to add a ...
0
votes
0answers
26 views

Scratch Org creation Error - read ECONNRESET [closed]

I have authorized dev hub org successfully. While creating scratch org using visual studio code received below error sfdx force:org:create -f config\project-scratch-def.json --setalias testing1 --...
4
votes
0answers
29 views

Generate project-scratch-def automatically (in absence of Org Shape)

We are implementing CI/CD for our projects and would like to automatically generate the project-scratch-def.json file for each project. Given the fact that the Org Shape feature is still in pilot, ...
3
votes
1answer
83 views

New error codes during scratch org creation

I have read the SignUpRequest page (https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_signuprequest.htm#stq=VR-0003&stp=1) but I did not find the following error ...
1
vote
1answer
29 views

How can we auto generate additional testing users with custom password for new DX Scratch Orgs?

I'm looking to setup a custom config for DX Scratch orgs. And would like to generate at least 2 additional test users in the new scratch org being created. Can anyone suggest a way to do that?
1
vote
0answers
11 views

Enable Einstein Activity Metrics in scratch org

I'm trying to set up our version control repo with the ability to push the entire repository to a new scratch org, however, I'm running into an issue pushing listViews to the org because we have ...
1
vote
1answer
50 views

Is there a way to disable the 'Register Your Mobile Phone Number" popup from showing when logging into newly created scratch orgs?

We are using scratch orgs for automated testing. The challenge here is with every newly created scratch org, on first login you are presented with the "Register Your Mobile Phone" modal, that you ...
1
vote
1answer
51 views

Activate WorkOrder object with project-scratch-def.json file

I'm trying to define my project-scratch-def.json file to enable the standard WorkOrder object, it appears the object is enabled under the Field Service section of the setup menu. I added the ...
0
votes
0answers
12 views

getting Error-ERROR running force:org:create: The request to create a scratch org returned an unexpected status

getting below error while creating scratch org- ERROR running force:org:create: The request to create a scratch org returned an unexpected status I am using this command- sfdx force:org:create -f ...
0
votes
0answers
87 views

Salesforce DX - Scratch org definition file - Failed to deploy settings with territory2 activated

I'm trying to create a scratch org using the scratch org definition file below: { "orgName": "Demo Company", "edition": "Enterprise", "features": [ "Communities", "ServiceCloud", "...
3
votes
1answer
142 views

Salesforce DX - Scratch org definition file - Incorrect documentation

I'm desperately trying to configure the creation of scratch org using the scratch org definition file. I rely on the following documentation: https://developer.salesforce.com/docs/atlas.en-us....
2
votes
0answers
49 views

Cannot get territory2Settings in a Winter '20 Scratch Org

I couldn't get this to work for the current '19 org either, fwiw According to the Metadata coverage report, I'm supposed to be able to use territory 2 features with this bit of sample scratch ...
0
votes
1answer
83 views

Not able to get objects,classes and visual fore pages into scratch org

I have a developer edition (with devhub enabled) of salesforce and I treid to create the SFDX project using visual code. So far I am able to do following successfully Create a new project with ...
0
votes
1answer
120 views

What are the correct steps to create Scratch Orgs with custom objects

I am trying to create a scratch org based on existing DEV sandbox. The problem is that I get a bunch of errors when trying to push the code into the scratch org: Invalid type: Quote (13:9) Invalid ...
1
vote
0answers
122 views

How can I activate Field Service Lightning automatically on scratch org creation?

Salesforce's documentation states that you can install FSL (and activate related objects, such as Work Order) using the scratch org definition file: { ... "features": ["FieldService"], ......
4
votes
1answer
275 views

Scratch Org project-scratch-def.json features: do they matter for Enterprise and Developer Editions?

Does the features property matter in the project scratch org I have messed around adding features from documentation on Scratch Org Definition File, but it doesn't seem to impact the scratch org ...
2
votes
0answers
36 views

How to enable End User Languages, when creating a scratch org

I work on a multi language application. While I can find documentation on how to enable the translation workbench in a scrtach org definition file, how do I 'Enable End User Languages' and setup the ...
1
vote
1answer
113 views

SFDX scratch org definition

Account.ChannelProgramLevelName: Could not resolve standard field's name.,Account.ChannelProgramName: Could not resolve standard field's name.,Account.IsPartner: Could not resolve standard field's ...
0
votes
0answers
30 views

Is the Metadata Coverage Report broken? Sample scratch definitions for each type show almost nothing

Aren't we supposed to be able to see a "sample scratch definition" from the MetaData Coverage report? I found this screenshot featured on this developer.salesforce.com page explaining how to switch ...
9
votes
2answers
398 views

Defer Sharing Calculation - Scratch org issue?

I know there is possibility to turn on this feature using Scratch Org config file. { "orgName": "Scratch1", "language": "en_US", "edition": "Enterprise", "features": ["Entitlements","MultiCurrency", "...
8
votes
1answer
298 views

Scratch-org Definition: exceeded the allowed number of fields to track on a given entity

I'm having issues defining a scratch org that matches our production org. In our production and sandbox instances, we have implemented Salesforce's Field Audit Trail product. This allows us to have ...
7
votes
1answer
289 views

Scratch org was created with entitlements enabled, but pulling the source results in entity not found?

I created a scratch org with the following definition file: { "orgName": "Company, Inc", "edition": "Enterprise", "features": ["PersonAccounts", "ServiceCloud"], "settings": { "...