Skip to content
This repository was archived by the owner on Feb 18, 2024. It is now read-only.

Latest commit

 

History

History
13 lines (10 loc) · 1.72 KB

scratch-org-error-codes.md

File metadata and controls

13 lines (10 loc) · 1.72 KB
description
If scratch org creation fails, the system generates an error code that can help you identify the cause.

Scratch Org Error Codes

Error CodeDescription
C-9998Not a valid scratch org. Contact Salesforce Customer Support for assistance.
C-9999Generic fatal error. Contact Salesforce Customer Support for assistance.
S-1017Namespace 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.
S-2006Invalid country.
SH-0001Can'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.
SH-0002Can't create scratch org. No org shape exists for the specified sourceOrg. Create an org shape and try again.
SH-0003Can't create scratch org from org shape. The org shape version is outdated. Recreate the org shape and try again.
SH-9999Can’t validate org shape due to fatal error. Contact Salesforce Customer Support for assistance.

{% hint style="info" %} Source: Salesforce DX Developer Guide - Scratch Org Error Codes {% endhint %}