You need to sign in to do that
Don't have an account?
Aziz Karakhanyan
How to increase number of allowed formula references fields in a scratch org
When I attempt to push metadata to my scratch org, I get this error.
There are salesforce help documents (https://help.salesforce.com/articleView?id=000315562&type=1&mode=1) that explain how to increase this limit (up to 20) for a sandbox/production org, but I can't find any documentation on how to increase this for a scratch org.
Having to contact support to increase the limit on a scratch org is not a suitable answer as scratch orgs are meant to be quick and easy to spin up development environments, that would run completely counter to that.
Is there a scratch org configuration value that I can't find that would increase the number of formula references I can have? I've tried including
The formula references fields across 16 relationships while only 15 are allowed. Please contact support at salesforce.com for more assistance.
There are salesforce help documents (https://help.salesforce.com/articleView?id=000315562&type=1&mode=1) that explain how to increase this limit (up to 20) for a sandbox/production org, but I can't find any documentation on how to increase this for a scratch org.
Having to contact support to increase the limit on a scratch org is not a suitable answer as scratch orgs are meant to be quick and easy to spin up development environments, that would run completely counter to that.
Is there a scratch org configuration value that I can't find that would increase the number of formula references I can have? I've tried including
AddCustomRelationships:<value>in my scratch org definition file (used 10 for the value), but that didn't work. I don't think that scratch org feature is related to spanning relationships.
For that, you have to reach salesforce support.
You can raise a ticket without premier support too.
If it helps mark it as the best answer.
Thanks.
Please contact support for official confirmation.
Please contact salesforce support.
I regret to inform you that increasing this in a Scratch org is not possible at this point of time due to the product limitation.
I hope you understand that limitation and kindly go through the below article where it doesn't mention the limit to increase this spanning relationship.
Scratch Org Features
https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_scratch_orgs_def_file_config_values.htm
Please let me know if you have any further concerns and I will be happy to assist you further.
Funny how all the talk about "customer success" seems to just silence the minute you have an actual problem with Salesforce's products...
Hey Frans and others who reach this post,
Besides just spanning relationships, there are other features/limits that you may have in your production or full copy sandbox orgs that you can't replicate in your scratch orgs. Some of those things are:
1. Spanning relationships
2. Workflow limits
3. Processes on an object
There are many more. The highest edition of a scratch org you can make right now is enterprise, whose limits are less than unlimited or what your specific production org has.
It's something I've been struggling a lot with since attempting to create our first salesforce package using SFDX.
Something recently that has helped a ton actually, has been using the Org Shape beta feature. In essence, it uses your production org as the scratch org template. Additionally, this feature has access to APIs and limits that we can't define ourselves. By using org shape, I was able to have an unlimited edition scratch org, which increased my limit for workflows, processes on custom object. I was also able to deploy fields now with spanning relationships > 15.
My suggestion to those struggling with the limits imposed by scratch orgs is to try to use the Org Shape beta feature. It allows you to make scratch orgs with limits you can't do yourself.