Skip to main content

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
0 votes
0 answers
18 views

Enable Forecasting on scratch via CLI with Most Likely value

here's the situation... We configured CI/CD with workflow in Github. In the short description it: creates the sandbox, deploys the whole code from the branch to it, and runs all apex tests. Now we ...
pawelw's user avatar
  • 11
1 vote
0 answers
16 views

DeferSharingCalc in scratch-org-def not working

I have an issue. I enabled DeferSharingCalc in scratch org def Then I performed: assigned proper PS to the user, and then ran Deploy permission set Assign permission set Push source to scratch org ...
pawelw's user avatar
  • 11
1 vote
1 answer
114 views

Scratch Orgs with Account Engagement (Pardot) package basic setup, advice needed

I'm looking to setup Scratch Orgs on the project that is using Pardot. But currently struggling with setup. I used Prod org shape as a baseline and then tried to install Account Engagement Managed ...
ytiq's user avatar
  • 4,587
0 votes
0 answers
76 views

Enable the Improved Setup User Interface in scratch org automatically

When attempting to modify Language and TimeZone settings through Personal Settings, I encounter the 'Insufficient Privileges' error, even though I am logged in as a user with the System Administrator ...
vctqs1's user avatar
  • 95
0 votes
0 answers
35 views

LightningConsole Permset License in Scratch Org

Does anybody know how to enable the LightningConsole Permset License in Scratch orgs? I've added LightningSalesConsole and LightningServiceConsole to features in the scratch org def file but it didn't ...
Saulo's user avatar
  • 967
0 votes
0 answers
70 views

Unable to use the ApexZipSupport feature using scratch org

Since we are in the preview window time period, we are able to create and check the FormulaEvalInApex functionality by creating a preview scratch org with only FormulaEvalInApex feature enabled. But ...
S1th's user avatar
  • 143
2 votes
1 answer
284 views

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

We thought of checking the functionality of FormulaEvalInApex and ApexZipSupport which are mentioned in the IdeaExchange Spring 24 Release. These features are noted as Developer Preview. So we created ...
S1th's user avatar
  • 143
0 votes
0 answers
45 views

How to enable DataPipeline by scratch org definition file?

I need to enable Data Pipelines in my Scratch Org automatically during creation. I couldn't find any option in documentation. Is there any option to autoenable it?
Gonderson324's user avatar
0 votes
0 answers
275 views

Unable to Create Second Generation Managed Package with Multi-Currency Enabled

We want to create a Second Generation Managed Package which works only on Multi-Currency Enabled orgs and all the Supported Salesforce Editions, so while running the package creation command, we are ...
S1th's user avatar
  • 143
0 votes
0 answers
46 views

Definition of a project-scratch-def for E&U features (Cloud, Self-Service Portal & Sales Digital)

I'm trying to generate a proper scratch org with the following definition. So far I have not been able to make it work, does somebody already experienced this error ? "orgName": "...
Alexandre S's user avatar
0 votes
1 answer
129 views

How to configure sfdx-project file to create proper build scratch orgs for a managed 2GP with custom object/fields?

I have a managed 2GP package. It has custom objects. The whole project is in SFDX format and stays in a single folder force-app/main/default. when running the tests on the Dev Hub - all works well, ...
Искрен Станиславов's user avatar
2 votes
1 answer
184 views

Custom domains aren't allowed in scratch orgs

I am currently working ISV project which helps Salesforce Customer in the issuance and renewal of CA Signed Certificates, be it with Let's Encrypt or any ACME-compliant CA. Standard flow of issuance ...
Gael Motte's user avatar
1 vote
2 answers
506 views

Multicurrency cannot be enabled in scratch org

Due to summer '23 release, it is now not possible to specify Multicurrency as a feature in the scratch org definition file. Therefore, it has to be enabled under settings: "settings": { &...
mathias9395's user avatar
1 vote
1 answer
136 views

Can default product quantity of 1 be enabled with Opportunity settings via Metadata API?

From the UI, there is a setting that can be enabled: Setup > Opportunity Settings > When users add a product to an opportunity, insert a quantity of 1 I cannot find a way to enable this via ...
Zosoled's user avatar
  • 103
1 vote
2 answers
227 views

Map and Location Settings fails to deploy to scratch org

When attempting to create a scratch org with Map Settings turned on, I get the following error: "The object 'MapAndLocation' of type Settings metadata does not exist." However, the scratch ...
Rob Davis's user avatar
  • 166
1 vote
1 answer
275 views

How to avoid problem with debugging LWC Javascript?

Due to some recent changes, first: Enabling by default Use Lightning Web Security for Lightning web components Enable Stricter Content Security Policy it becomes impossible to debug LWC Javascript ...
Patlatus's user avatar
  • 17.3k
0 votes
1 answer
65 views

Package version creation results in field integrity exception (Case access level below organization default)

I am trying to create a package version. My dev hub has the following for case: Running a query under dev console gives me: When I try to create a package version, I get : Practice_Assignment_Team: ...
Strong Like Bull's user avatar
2 votes
1 answer
174 views

Scratch orgs are created with Russian language for Ukrainian and other Eastern European Dev Hubs even if Dev Hub language is English

Why scratch orgs are created with Russian language for Ukrainian and other Eastern European Dev Hubs even if Dev Hub language is English? This happens for Ukrainian, Lithuanian and other Eastern ...
Patlatus's user avatar
  • 17.3k
1 vote
0 answers
153 views

Generate a Scratch Org Definition File from an Org Shape?

Is is possible to generate a scratch org definition file from an org shape? Org Shape is still buggy. I'm running into this known issue with Experience Cloud sites. It would be nice if I could use a ...
Mark Hansen's user avatar
1 vote
1 answer
623 views

Strategies to successfully create scratch orgs

Have noticed it can be very difficult to successfully create scratch orgs. Wondering if something I am doing is contributing that. Sometimes it works. Sometimes it doesn't. I have tried both of these ...
nstuyvesant's user avatar
4 votes
1 answer
216 views

Create professional edition scratch org

I need to check Managed Package Beta Version on a Professional Edition Org. I am trying to make a Professional Edition Scratch org for it. But every time I get the same error: "The request to ...
Konstantin's user avatar
0 votes
1 answer
88 views

Specify Change Data Capture Entities in Scratch Org Definition

Is it possible to enable and configure change Data Capture for specific entities in a scratch org definition file? I know that you can add "ChangeDataCapture" to the list of features, but I ...
aaron's user avatar
  • 854
1 vote
1 answer
774 views

Second Generation Package version. Can I assign a permission set when creating a 2gp?

Updating my Question Again : I started a new project, got fresh source and created a new package. No problem. Still stuck on creating a new version with eh same Project-scratch-def.json and sfdx-...
CascoSteve's user avatar
0 votes
1 answer
223 views

Enable Opportunity Splits - Scratch Org

Working with scratch orgs, I need to enable OpportunitySplits completely at the point of Scratch Org Creation, and Source Push. Currently, when successfully pushing the below files and settings. The ...
David Picksley's user avatar
2 votes
1 answer
381 views

Unable to create scratch org with Functions feature?

I've installed the latest CLI versions for SFDX and SF, but still when I try to create a scratch org with mentioned commands. I'm getting the below error: ERROR running force:org:create: Functions is ...
Babul Jha's user avatar
1 vote
1 answer
283 views

Didn't understand relationship 'TaskRelations' - Allow Users to Relate Multiple Contacts to Tasks and Events

Does anyone know how to fix that? What am I missing here? I need to access the TaskRelations object on my scratch org. AFAIK, it should be available when the Allow Users to Relate Multiple Contacts to ...
Pablo Fischer's user avatar
2 votes
1 answer
139 views

Enable Learning Paths in Scratch Org

Which feature/setting must be enabled in Scratch Org Definition to enable Learning Paths?
Karol Zaorski's user avatar
0 votes
2 answers
443 views

Scratch Org: How to increase API Usage limit (i.e. allowed number of API requests per 24 hours)

Is there any way to increase API Usage limit in scratch org? I cannot find any setting to do so via json config file (we can increase number of custom objects, apex code size limit etc., but nothing ...
wesaw's user avatar
  • 3,130
1 vote
2 answers
762 views

Add new Address field setting in Scratch Org definition file

I need to automatically check the new User Interface setting : Use custom address fields (Beta) upon creation of a Scratch Org. I am not sure what setting to add in the def.json file. The following ...
S..'s user avatar
  • 1,215
4 votes
1 answer
1k views

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

Is there a way to change the Instance Url or the Login Url for the scratch org? I want to create a scratch org that can be logged in from a standard login.salesforce.com url instead of domain-specific ...
Yogesh D's user avatar
  • 590
0 votes
0 answers
965 views

Variable does not exist: MailingCountryCode

When I try to deploy to a scratch org a class that references the field MailingCountryCode on the object Contact, I receive the following error message : Variable does not exist: MailingCountryCode (...
THEDJA's user avatar
  • 135
5 votes
2 answers
894 views

Can I create scratch org with some languages activated in Translation Workbench?

I'm trying to create scratch org where the languages in Translation Workbench would be marked as 'Active' by default. For example I would like to create scratch org with Japanese activated by default. ...
Rimorion's user avatar
4 votes
1 answer
536 views

SFDX Scratch Org Creation - queueRoutingConfigs - Not Available for Deployment to your organisation

I'm attempting to create scratch orgs via GitLab pipeline which includes LiveAgent, Omni-channel and skills. Looking at the Metadata Coverage report I can see that queueRoutingConfig is supported. And ...
David Picksley's user avatar
1 vote
1 answer
334 views

Is there a command you can use to get a list of all features that are currently active in an org?

Looking to make a near-perfect scratch org definition without using org shapes. I see there may be a way to do it with the tooling api but I'm not exactly sure how. It'd be nice to have an sfdx ...
cente's user avatar
  • 11
2 votes
1 answer
1k views

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

I've been experimenting with a build script to generate a scratch org based on a Devhub that uses external API calls. Ideally this script would Build the scratch org and add Remote Site Settings for ...
seflo's user avatar
  • 23
4 votes
1 answer
542 views

Lightning Knowledge in Scratch Orgs not working

We are using the following scratch org definition file: { "orgName": "test_de", "edition": "Enterprise", "country": "US", "...
smukov's user avatar
  • 5,613
0 votes
0 answers
33 views

Scratch org creation if failing with these 2 symptoms today - why? [duplicate]

The failures are occurring for both our Continuous Integration (CI) builds and out interactive creates. The CI output is: Run sfdx force:org:create -f config/project-scratch-def.json -a scratch-org -...
Keith C's user avatar
  • 136k
3 votes
1 answer
1k views

Error creating scratch orgs with "Communities" enabled

I am following the steps listed here Build scratch org definition file in order to enable communities for a scratch org, but the following error is received: We couldn't find a template with the ID ...
Alex Cortes's user avatar
1 vote
2 answers
739 views

CLI Scratch Org misbehaving behaviour on enableRelateContactToMultipleAccounts

I am using CLI to create Scratch Orgs based from a definition file. The objective is to enable ContactsToMultipleAccounts when pushing our source data. The issue, is the Scratch Org is being created ...
David Picksley's user avatar
1 vote
2 answers
642 views

Create a scratch org with specified unlocked packages installed?

Is it possible to create a scratch org with unlocked packages (available on the dev hub org) to be installed automatically?
kratos's user avatar
  • 541
1 vote
1 answer
295 views

How to add Salesforce Inbox in Scratch Org definition

How do we add Salesforce Inbox in our scratch org definition file? I'm trying to build a 2GP, in which I have a permission set group that is referencing the following permission set - ...
Zhan Levov's user avatar
1 vote
1 answer
806 views

Scratch Org setup Deterministic Encryption

I get the following error when pushing my source to a scratch org. Deterministic encryption not available I have a permission set assign to my scratch org user that gives me ManageEncryptionKeys. I ...
Tyler Zika's user avatar
  • 2,892
1 vote
1 answer
3k views

Your org doesn't have access to component home:newsPanel

I am running a PS script with sfdx force:source:push to a scratch org and getting the following error: Your org doesn't have access to component home:newsPanel. The scratch org is being created a ...
Dmitriy's user avatar
  • 13
1 vote
1 answer
295 views

SFDX Scratch org Reports Deployment

I have two questions 1). I have been trying to create a package in scratch org with all the Objects and the dependent files and the respective Reports too. Configured the Config file based on the ...
SFDC's user avatar
  • 461
3 votes
2 answers
536 views

Enable Opportunity Teams/Opportunity Split in scratch org definition file

Is there a way to enable Opportunity Teams in a scratch org definition file? I tried this in my file but it didn't work. { "settings": { "opportunitySettings": { ...
Madhu's user avatar
  • 31
0 votes
1 answer
903 views

AccountContactRelation won't deploy to Scratch Org even with feature enabled in Scratch Org Definition

I am trying to migrate my team to scratch orgs from individual dev sandboxes. The final barrier seems to be the fact that we're using the AccountContactRelation object. Whenever I do a push to a ...
Jeff Bennett's user avatar
2 votes
1 answer
359 views

Errors I get when I use sfdx to install Field Service Lightning in a scratch org

I've followed the guidance from this answer — using this in my project-scratch-def.json: { "features": ["FieldService:1"], "settings": { "...
bkwdesign's user avatar
  • 609
1 vote
2 answers
234 views

Scratch Org - Generate Keys automatically

I would like to know if anyone has a way of generating platform encryption keys when building a scratch org? Currently, the way I know is to Create a Permission set with: MANAGE ENCRYPTION KEYS ...
Moazzam Khan's user avatar
3 votes
2 answers
541 views

Create Scratch Org with specific Territory2Settings

I am trying to create a scratch org with Territory2 enabled, as we have this in our production org and I want to mimic it as good as possible. The full documentation for this metadata can be found ...
Bast's user avatar
  • 161
1 vote
1 answer
119 views

External App License for Scratch org

Deploying profiles to Scratch Org, got error userLicense - no UserLicense named External Apps found because I don't have External App license on scratch org. Can't find how to create with this license,...
Alexnader's user avatar