1

Received an error when trying to create a scratch org that we have exceeded the limit of 25 rollup summary fields for Case. We have 31 such fields but Salesforce bumped us up to 35 some time ago. This has not been an issue when creating sandboxes. Also, while Contact Limits and other object limits have a line item for Rollup Summary Limit in a scratch org (with 25 available), there is no line item at all under Case.

I can't find a scratch org configuration setting that might address this.

Scratch limits

Sandbox Case Limits

Sandbox limits

Scratch Case Limits

4
  • 1
    Have you tried Org shape feature?
    – Swetha
    Mar 9 at 10:59
  • Not yet. Will look into that. I think you can set limits there, right? Mar 9 at 14:02
  • 1
    I don't think you can change limits but the Devhub org limits would be copied as it is
    – Swetha
    Mar 9 at 14:16
  • 1
    @Swetha I needed to create a shape, yes! Then, instead of specifying the edition in the scratch definition file, I specified sourceOrg. Please do provide this as the answer, and I'll select it as best. Mar 9 at 20:35

1 Answer 1

1

As suggested in the comments, you can make use of the Org shape feature. Org shape can mimic your DebHub org's settings, licenses, and features.

Steps as per doc

  • As an admin, log in to the source org.

  • From Setup, enter Org Shape in the Quick Find box, then select Org Shape.

  • Click Enable Org Shape for Scratch Orgs (Beta).

  • If your source org is different from your Dev Hub org, enter the Dev Hub org ID to the list of allowed Dev Hub orgs.

  • Create a scratch org shape for the source org.

  • Create a scratch org definition file that contains the 15-character source org ID, the only required option.

    { "orgName": "Salesforce", "sourceOrg": "00DB1230400Ifx5" }

  • Create a scratch org.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .