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
1
vote
0answers
13 views

SFDX enable Asset Sharing Scratch org

How can we enable Asset Sharing as we create a scratch org? The only way I know to enable it is by switching to classic and navigating to it on the Setup menu. I would like to script this or define it ...
2
votes
1answer
22 views

Is there any way to make a shell script to automate creation and preparation of a scratch org wait between steps?

I have the following shell script: sfdx force:org:create -f ./config/project-scratch-def.json -a ScratchOrg sfdx force:package:install --package 04t0M000001mF9bQAE -u ScratchOrg sfdx force:package:...
2
votes
1answer
45 views

Scratch org feature “WorkThanksPref” raises error “An unknown server error occurred”

Adding the "WorkThanksPref" to a scratch org definition file is preventing a scratch org from coming up. The error is: An unknown server error occurred. Please try again. If you still see this ...
0
votes
1answer
24 views

Error deploying process to scratch org: “A condition has a reference to… which doesn't exist.”

We have a process which has this criteria: The XML metadata for this workflow has: </conditions> ... <leftValueReference>myVariable_current....
2
votes
1answer
99 views

Error deploying to scratch org: “no QuickAction named FeedItem.RypplePost found”

We're encountering an error deploying to a new scratch org: no QuickAction named FeedItem.RypplePost found This is defined in a standard layout, force-app/main/default/layouts/EmailMessage-Email ...
0
votes
1answer
20 views

SFDX force:source:push fails only in CI environment

I am trying to shift a hybrid codebase to SFDX. I'm using Gitlab CI running in the default gitlab-runners and for some reason I haven't been able to discover I keep having my code deploys failing. I ...
1
vote
0answers
23 views

Set organization wide email in scratch org? [duplicate]

When trying to deploy an auto responder rule to a new scratch org, we're getting: [email] is an invalid From email address.: Email Address Is there a scratch org config to set an organization wide ...
0
votes
1answer
26 views

Scratch Org is created without an alias and presented: ERROR running force:org:create: Cannot read property 'details' of undefined

I'm not sure where to look to help me troubleshoot this issue. I've tried reinstalling the CLI - logging out and logged back into the orgs. When I use the same sfdx:force:create command as a ...
1
vote
0answers
33 views

Problem When Creating Scratch Org

I'm trying to create a Scratch ORG, but everytime I get the same error: Failed to deploy settings to scratch org. When I run Terminal, I got the following message: shape/settings/Bot.settings ...
0
votes
1answer
47 views

Create scratch org with Enhanced Email activated

I am trying to automate the creation of scratch orgs, when trying to install a needed managed packaged after scratch org creation I get this error: ERROR running force:package:install:report: ...
2
votes
1answer
27 views

Enable email to salesforce in scratch org definition file

I need to enable this function as part of the CI, soemthing like this: "emailSettings": { "enableEmailToSalesforce": true } But this isn't the right option, i'm having an error to create ...
1
vote
1answer
168 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
84 views

Enable Account Teams in scratch org definition file

Is there a way to enable Account Teams in a scratch org definition file? I know I can manually enable it in a scratch org via Setup, but in order to create an unlocked package version that contains ...
2
votes
1answer
59 views

Is it possible to build a scratch org with deliverability set to Email All? If so, how?

Just wondering if there is a feature or setting in the project definition that I can enable to have a scratch org with a Deliverability of 'Email All' or if that is not possible.
2
votes
0answers
96 views

sfdx force:org:create fails in v48.0 when I try to have EnhancedEmail enabled

I have an issue creating scratch orgs with Enhanced Emails enabled. Config file settings part looks like this: "settings": { "emailAdministrationSettings": { "...
0
votes
1answer
78 views

ERROR running force:org:create: MultiLevelMasterDetail is not a valid Features value

Thought i'd post this here given we are no longer in the preview window, whenever I request the MultiLevelMasterDetail feature in my scratch org definition file. Im greeted with "ERROR running force:...
3
votes
1answer
120 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 ...
5
votes
0answers
75 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
118 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
33 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
28 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
105 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
111 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
15 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 ...
1
vote
0answers
181 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
248 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
69 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
169 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
400 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
289 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
401 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
85 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 ...
2
votes
2answers
236 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 ...
9
votes
2answers
628 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
465 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 ...
8
votes
1answer
407 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": { "...