Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs
11 votes

Failed to deploy settings to scratch org

I faced the same issue, I noticed that the orgs were getting created but they haven't got linked with VSCode project. Did the below changes in my project-scratch-def.json file and it worked for me: ...
Rahul Malhotra's user avatar
9 votes
Accepted

Access scratch org from login.salesforce.com or test.salesforce.com

This is not possible. Scratch orgs are always on test.salesforce.com, although you may also use the scratch org's Instance URL (My Domain) to initiate login. current behavior is when I create scratch ...
David Reed's user avatar
  • 93.1k
8 votes
Accepted

Create scratch org with Enhanced Email activated

In you scratch org definition file you need to enable Enhanced Email if it is not automatically enabled and seems like it is not. you need "emailAdministrationSettings": { "...
Mert YALTI's user avatar
7 votes

Create Scratch Org Definition file

Update (25 Oct 2020): With Winter'21 release, enabling org shape has been released to all environments. Although still in beta, it facilitates experimentation with org shape creation and easier ...
arut's user avatar
  • 5,281
7 votes
Accepted

Failed to deploy settings to scratch org

For anyone struggling with the same above mentioned error while creating scratch org, I was able to create scratch org by downgrading my salesforcedx plugin version to : salesforcedx 47.18.0 (47.18.0) ...
Kvin Cloud's user avatar
7 votes

Defer Sharing Calculation - Scratch org issue?

According to Salesforce this is a somewhat cumbersome two way step where using this org feature needs to be accompanied with a second manual step: Enabling the Defer Sharing Rule Calculation ...
Robert Sösemann's user avatar
7 votes
Accepted

Enable the Enhanced Profile User Interface in a new scratch org

There is a setting available: "settings": { "userManagementSettings": { "enableNewProfileUI": true } }
David Reed's user avatar
  • 93.1k
6 votes
Accepted

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

From a purely development standpoint, all of the basic code features are enabled for Developer and Enterprise orgs. The AuthorApex feature is for the Professional Edition with Apex add-on ...
sfdcfox's user avatar
  • 493k
6 votes
Accepted

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

I have confirmed with Salesforce support that this is an issue with how the platform handles the API name of the entitlement process. On the backend, Salesforce seems to use the name entirely as ...
Renato Oliveira's user avatar
6 votes
Accepted

Error creating scratch orgs with "Communities" enabled

The issue you are facing is related to ongoing Known issue. Our Salesforce Team is working to fix it. The workaround would be to switch to previous release by using "release": "Previous&...
Swetha Maddali's user avatar
5 votes
Accepted

Enable email to salesforce in scratch org definition file

Sorry, just found the answer in the documentation: https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_emailadministrationsettings.htm The correct option is: "...
Nicolás Maldonado's user avatar
5 votes

What are the correct steps to create Scratch Orgs with 'Quote' objects

Ok I finally found a solution. This was an annoying problem since the error message that you get back is quite misleading IMO. The problem is not with your custom objects, or atleast not in my case. ...
NoCanDo's user avatar
  • 311
5 votes
Accepted

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

Use the -w parameter so that each command waits for confirmation, and things proceed in order: sfdx force:org:create -w 10 -s -f ./config/project-scratch-def.json -a ScratchOrg sfdx force:package:...
sfdcfox's user avatar
  • 493k
5 votes

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

I just found your question while looking up how to enable Field Audit Trail for my scratch org so that I could create a History Retention Policy. In my search, I did find that you can add the feature ...
Toby Curtis's user avatar
5 votes
Accepted

Generate Scratch org definition settings for MDAPI settings

You can use Org Shape for this purpose. First, Enable Org Shape in the org you want to use as the source, set up the Permissions you need, then Create an Org Shape. Finally, specify the sourceOrg ...
sfdcfox's user avatar
  • 493k
5 votes
Accepted

Possible to add Remote Site Settings to Scratch Org from sfdx cli?

You can include it as part of your source tree (force-app/main/default/remoteSiteSettings/). Create the folder, and place the file called myRemoteSiteName.remoteSite-meta.xml (replace myRemoteSiteName ...
sfdcfox's user avatar
  • 493k
4 votes
Accepted

Enable Account Teams in scratch org definition file

Yes, it's in the Account Settings area. Here's the relevant JSON to start from: { "settings": { "accountSettings": { "enableAccountTeams": true } } } See Scratch ...
sfdcfox's user avatar
  • 493k
4 votes
Accepted

Scratch Org: Source Push Error: reached maximum number of custom objects

You can use the edition as Partner Developer if you are an ISV as documented here Also to get the exact shape of the org as similar to the one you have tried using the winter 21 org shape feature. ...
Mohith Shrivastava's user avatar
4 votes

Add new Address field setting in Scratch Org definition file

Picking up sfdcfox' comment: Now that custom address fields are GA, it works in the scratch org definition file. Just add the settings like this: "settings": { ... "...
J. Schreiber's user avatar
  • 1,559
4 votes
Accepted

Unable to create scratch org with Functions feature?

From the error, it looks like you are NOT connecting to a DevHub org that has the Functions feature enabled. To use functions within your scratch org, you will need to access to a Functions Enabled ...
Mohith Shrivastava's user avatar
4 votes
Accepted

How to enable the FormulaEvalInApex and ApexZipSupport Feature in the Created Scratch Org

You are jumping the gun. Salesforce has not enabled the preview of Spring '24 yet. You need to wait until it is available (during January 2024, take a look here) and then use the preview version ...
Phil W's user avatar
  • 36.6k
3 votes

SFDX scratch org definition

As of v48 (Spring 2020), you can enable PRM functionality by adding a scratch org like below. Documentation: Here and Here { "orgName": "My Company", "edition": "Developer", "features": ["...
Sebastian Kessel's user avatar
3 votes
Accepted

Defer Sharing Calculation - Scratch org issue?

DeferSharingCalc is first step to enable Defer Sharing Calculations feature in scratch orgs. For using this feature, User should have Manage Users AND Manage Sharing Calculation Deferral permissions. ...
Ramashanker Tripathi's user avatar
3 votes

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

As far as I'm aware, it's not possible. There's no such way to even set that setting in a Sandbox org aside from manual configuration in Setup, so I presume that the same is true for Scratch Orgs as ...
sfdcfox's user avatar
  • 493k
3 votes
Accepted

Enable Multiple Languages via knowledgeSettings in Scratch Org Definition File

Managed to figure out the correct JSON structure. language needs to be an array within languages field. { "orgName": "knowledge_dev", "edition": "Enterprise", "country": "US", "language": "...
smukov's user avatar
  • 5,583
3 votes

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

You can script user creation with Salesforce DX. The force:user command tree has what you need: force:user:create creates a user, given a user definition file. It takes optional flags ...
David Reed's user avatar
  • 93.1k
3 votes
Accepted

Scratch org feature "WorkThanksPref" raises error "An unknown server error occurred"

Edit: As the comment on the question points out, this may also be due to flakiness of Salesforce scratch org creation rather than a configuration issue. I received three errors in a row trying to ...
Andy Ray's user avatar
  • 1,468
3 votes
Accepted

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

This metadata is related to Work.com. I was able to resolve this error in a scratch org by adding the following to my scratch org definition: "features": [ "WorkThanksPref" ], "settings": { "...
Andy Ray's user avatar
  • 1,468
3 votes

Scratch Org: Source Push Error: reached maximum number of custom objects

Scratch Orgs only support the minimum number of custom objects (50) by default. You can add more by using "features":["AddCustomObjects:X"], where X is value from 1-30. See the ...
sfdcfox's user avatar
  • 493k
3 votes

Create Scratch Org with specific Territory2Settings

Based on the comment by @sfdxfox I retried the data from an org where I manually set the different values in the GUI. For future reference for anyone having this issue, here are the possible values (...
Bast's user avatar
  • 161

Only top scored, non community-wiki answers of a minimum length are eligible