Scratch Org Error Codes
If scratch org creation fails, the system generates an error code that can help you identify the cause.
Not a valid scratch org. Contact Salesforce Customer Support for assistance.
Generic fatal error. Contact Salesforce Customer Support for assistance.
Namespace isn’t registered. To use a namespace with a scratch org, you must link the Developer Edition org where the namespace is registered to a Dev Hub org. See Salesforce Help: Link a Namespace to a Dev Hub Org.
Can't create scratch org from org shape. Contact the source org admin to add your Dev Hub org ID. From Setup, in the Quick Find box, enter Org Shape, and then select Org Shape.
Can't create scratch org. No org shape exists for the specified sourceOrg. Create an org shape and try again.
Can't create scratch org from org shape. The org shape version is outdated. Recreate the org shape and try again.
Can’t validate org shape due to fatal error. Contact Salesforce Customer Support for assistance.