Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing when attempting to create scratch org - sfdx_dev/sfdx_dev_scratch_orgs_error_codes.htm for information on error code C-9999 #2795

Closed
jdschleicher opened this issue Mar 29, 2024 · 3 comments
Labels
investigating We're actively investigating this issue validated Version information for this issue has been validated

Comments

@jdschleicher
Copy link

jdschleicher commented Mar 29, 2024

Note
Before you submit your issue, make sure that:

  • You're using the latest version of Salesforce CLI.
  • You've searched both open and closed issues for related posts.
  • You've used the doctor command to diagnose common issues.
  • You understand that GitHub Issues don't adhere to any agreement or SLA.
    • If you require immediate assistance, use official channels such as Salesforce Customer Support.

Summary

Major issues with creating scratch orgs.

Reproduced across several cli versions, several definition files and more. Possibly specific to our instance.

Using "hasSampleData:true" in scratch definition file worked for a VERY brief moment as a potential workaround then quickly went away.

Steps To Reproduce

Try to create a scratch org:

sf org create scratch --target-dev-hub devhub --definition-file config/project-scratch-def.json --json

Expected result

Scratch org created

Actual result

Error:

"actions": [
"See https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_scratch_orgs_error_codes.htm for information on error code C-9999."
],
"context": "Create",
"commandName": "Create",
"data": {
"username": "jonathon.schleicher@b3groupinc.comvapm",
"orgId": "00Dt0000000LAyREAW",
"scratchOrgInfoId": "2SROE0000000F0L4AU"
},
"message": "A fatal signup error occurred. Please try again. If you still see this error, contact Salesforce Support for assistance",
"name": "RemoteOrgSignupFailed",
"status": 1,
"stack": "RemoteOrgSignupFailed: A fatal signup error occurred. Please try again. If you still see this error, contact Salesforce Support for assistance\n at checkScratchOrgInfoForErrors

System Information

shells -> powershell on windows, powershell on unix

unix:

{   "code": 1,   "actions": [     "See https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_scratch_orgs_error_codes.htm for information on error code C-9999."   ],   "context": "EnvCreateScratch",   "commandName": "EnvCreateScratch",   "data": {     "username": "***",     "orgId": "00Dt0000000LAyREAW",     "scratchOrgInfoId": "2SROE0000000FBE4A2"   },   "message": "A fatal signup error occurred. Please try again. If you still see this error, contact Salesforce Support for assistance",   "name": "RemoteOrgSignupFailed",   "status": 1,   "stack": "RemoteOrgSignupFailed: A fatal signup error occurred. Please try again. If you still see this error, contact Salesforce Support for assistance\n    at checkScratchOrgInfoForErrors (/usr/local/lib/node_modules/@salesforce/cli/node_modules/@salesforce/core/lib/org/scratchOrgErrorCodes.js:63:19)\n    at async pollForScratchOrgInfo (/usr/local/lib/node_modules/@salesforce/cli/node_modules/@salesforce/core/lib/org/scratchOrgInfoApi.js:308:16)\n    at async scratchOrgCreate (/usr/local/lib/node_modules/@salesforce/cli/node_modules/@salesforce/core/lib/org/scratchOrgCreate.js:168:17)\n    at async EnvCreateScratch.run (file:///usr/local/lib/node_modules/@salesforce/cli/node_modules/@salesforce/plugin-org/lib/commands/org/create/scratch.js:164:72)\n    at async EnvCreateScratch._run (/usr/local/lib/node_modules/@salesforce/cli/node_modules/@oclif/core/lib/command.js:304:22)\n    at async Config.runCommand (/usr/local/lib/node_modules/@salesforce/cli/node_modules/@oclif/core/lib/config/config.js:426:25)\n    at async run (/usr/local/lib/node_modules/@salesforce/cli/node_modules/@oclif/core/lib/main.js:85:16)",   "exitCode": 1,   "warnings": [     "Record types defined in the scratch org definition file will stop being capitalized by default in a future release.\nSet the `org-capitalize-record-types` config var to `true` to enforce capitalization."   ] }

windows error

{
  "code": 1,
  "actions": [
    "See https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_scratch_orgs_error_codes.htm for information on error code C-9999."
  ],
  "context": "Create",
  "commandName": "Create",
  "data": {
    "username": "jonathon.schleicher@b3groupinc.comvapm",
    "orgId": "00Dt0000000LAyREAW",
    "scratchOrgInfoId": "2SROE0000000FBJ4A2"
  },
  "message": "A fatal signup error occurred. Please try again. If you still see this error, contact Salesforce Support for assistance",
  "name": "RemoteOrgSignupFailed",
  "status": 1,
  "stack": "RemoteOrgSignupFailed: A fatal signup error occurred. Please try again. If you still see this error, contact Salesforce Support for assistance\n    at checkScratchOrgInfoForErrors (C:\\Users\\JonathanSchleicher\\AppData\\Roaming\\npm\\node_modules\\@salesforce\\cli\\node_modules\\@salesforce\\core\\lib\\org\\scratchOrgErrorCodes.js:62:19)\n    at async pollForScratchOrgInfo (C:\\Users\\JonathanSchleicher\\AppData\\Roaming\\npm\\node_modules\\@salesforce\\cli\\node_modules\\@salesforce\\core\\lib\\org\\scratchOrgInfoApi.js:303:16)\n    at async scratchOrgCreate (C:\\Users\\JonathanSchleicher\\AppData\\Roaming\\npm\\node_modules\\@salesforce\\cli\\node_modules\\@salesforce\\core\\lib\\org\\scratchOrgCreate.js:160:17)\n    at async Create.createScratchOrg (C:\\Users\\JonathanSchleicher\\AppData\\Roaming\\npm\\node_modules\\@salesforce\\cli\\node_modules\\@salesforce\\plugin-org\\lib\\commands\\force\\org\\create.js:153:68)\n    at async Create._run (C:\\Users\\JonathanSchleicher\\AppData\\Roaming\\npm\\node_modules\\@salesforce\\cli\\node_modules\\@salesforce\\plugin-org\\node_modules\\@oclif\\core\\lib\\command.js:117:22)\n    at async Config.runCommand (C:\\Users\\JonathanSchleicher\\AppData\\Roaming\\npm\\node_modules\\@salesforce\\cli\\node_modules\\@oclif\\core\\lib\\config\\config.js:400:25)\n    at async run (C:\\Users\\JonathanSchleicher\\AppData\\Roaming\\npm\\node_modules\\@salesforce\\cli\\node_modules\\@oclif\\core\\lib\\main.js:85:16)",
  "exitCode": 1,
  "warnings": [
    "The force:org:create command is deprecated. Try \"org create scratch\" or \"org create sandbox\" instead.",
    "The \"--targetdevhubusername\" flag has been deprecated. Use \"--target-dev-hub | -v\" instead.",
    "The loglevel flag is no longer in use on this command. You may use it without error, but it will be ignored.\nSet the log level using the `SFDX_LOG_LEVEL` environment variable."
  ]
}
{
  "architecture": "win32-x64",
  "cliVersion": "@salesforce/cli/2.34.7",
  "nodeVersion": "node-v20.10.0",
  "osVersion": "Windows_NT 10.0.19045",
  "rootPath": "C:\\Users\\JonathanSchleicher\\AppData\\Roaming\\npm\\node_modules\\@salesforce\\cli",
  "shell": "C:\\Program Files\\Git\\usr\\bin\\bash.exe",
  "pluginVersions": [
    "@dx-cli-toolbox/sfdx-toolbox-package-utils 0.8.4 (user)",
    "@oclif/plugin-autocomplete 3.0.13 (core)",
    "@oclif/plugin-commands 3.2.0 (core)",
    "@oclif/plugin-help 6.0.18 (core)",
    "@oclif/plugin-not-found 3.0.14 (core)",
    "@oclif/plugin-plugins 4.3.8 (core)",
    "@oclif/plugin-search 1.0.20 (core)",
    "@oclif/plugin-update 4.2.0 (core)",
    "@oclif/plugin-version 2.0.14 (core)",
    "@oclif/plugin-warn-if-update-available 3.0.14 (core)",
    "@oclif/plugin-which 3.1.5 (core)",
    "@salesforce/cli 2.34.7 (core)",
    "apex 3.0.31 (core)",
    "auth 3.3.27 (core)",
    "data 3.1.11 (core)",
    "deploy-retrieve 3.2.35 (core)",
    "info 3.0.33 (core)",
    "limits 3.1.14 (core)",
    "marketplace 1.0.29 (core)",
    "org 3.5.0 (core)",
    "packaging 1.27.1 (user)",
    "schema 3.1.9 (core)",
    "settings 2.0.31 (core)",
    "signups 1.5.6 (user)",
    "sobject 1.1.20 (core)",
    "source 3.1.22 (core)",
    "telemetry 3.1.17 (core)",
    "templates 56.0.23 (core)",
    "trust 3.3.17 (core)",
    "user 3.3.4 (core)",
    "texei-sfdx-plugin 2.2.0 (user)"
  ]
}
[2

Additional information

Instance

NA291
Version
Spring '24 Patch 13.2

@jdschleicher jdschleicher added the investigating We're actively investigating this issue label Mar 29, 2024
Copy link

Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support.

Copy link

Hello @jdschleicher 👋 None of the versions of sf you shared match the latest release.

Shared: 2.28.6
Latest: 2.34.7

Update to the latest version of Salesforce CLI (docs) and confirm that you're still seeing your issue.
You can also try the rc and nightly releases! (docs)

After updating, share the full output of sf version --verbose --json

@github-actions github-actions bot added more information required Issue requires more information or a response from the customer validated Version information for this issue has been validated investigating We're actively investigating this issue and removed investigating We're actively investigating this issue more information required Issue requires more information or a response from the customer labels Mar 29, 2024
@cristiand391
Copy link
Member

cristiand391 commented Mar 29, 2024

there's been a few reports in both internal and public envs where the generic C-9999 is returned. If you can, file an investigation (I see one open but it's for a different env).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
investigating We're actively investigating this issue validated Version information for this issue has been validated
Projects
None yet
Development

No branches or pull requests

2 participants