8000 MULTIPLE_API_ERRORS · Issue #3260 · forcedotcom/cli · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
MULTIPLE_API_ERRORS #3260
Closed
Closed
@JiriKarpisek

Description

@JiriKarpisek

Summary

I have created successfully a org shape, but then receiving an error when creating the scratch org using the shape

Steps To Reproduce

  • Create a shape from dev hub successfully
  • my definition file json is
{
  "orgName": "CustomerName",
  "sourceOrg": "3SRKB000000KynT",
  "features": [],
  "settings": {}
}
  • Then I run sf org create scratch --definition-file config/project-scratch-def.json --alias ScratchOrg --wait 30 --duration-days 1 --set-default --json --target-dev-hub pss-production

Expected result

I got some description of errors, why scratch org cannot be created from the shape

Actual result

{
  "name": "MULTIPLE_API_ERRORS",
  "message": "Multiple errors returned.\n  Check `error.data` for the error details",
  "exitCode": 1,
  "context": "OrgCreateScratch",
  "stack": "MULTIPLE_API_ERRORS: Multiple errors returned.\n  Check `error.data` for the error details\n    at SfCommandError.from (file:///Users/jiri.karpisek/.local/share/sf/client/2.82.6-151255f/node_modules/@salesforce/sf-plugins-core/lib/SfCommandError.js:39:16)\n    at OrgCreateScratch.catch (file:///Users/jiri.karpisek/.local/share/sf/client/2.82.6-151255f/node_modules/@salesforce/sf-plugins-core/lib/sfCommand.js:323:47)\n    at OrgCreateScratch._run (/Users/jiri.karpisek/.local/share/sf/client/2.82.6-151255f/node_modules/@oclif/core/lib/command.js:185:29)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async Config.runCommand (/Users/jiri.karpisek/.local/share/sf/client/2.82.6-151255f/node_modules/@oclif/core/lib/config/config.js:456:25)\n    at async run (/Users/jiri.karpisek/.local/share/sf/client/2.82.6-151255f/node_modules/@oclif/core/lib/main.js:96:16)\n    at async file:///Users/jiri.karpisek/.local/share/sf/client/2.82.6-151255f/bin/run.js:15:1",
  "cause": "MULTIPLE_API_ERRORS: Multiple errors returned.\n  Check `error.data` for the error details\n    at HttpApi.getError (/Users/jiri.karpisek/.local/share/sf/client/2.82.6-151255f/node_modules/@jsforce/jsforce-node/lib/http-api.js:273:24)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async /Users/jiri.karpisek/.local/share/sf/client/2.82.6-151255f/node_modules/@jsforce/jsforce-node/lib/http-api.js:127:33\n    at async Connection.create (/Users/jiri.karpisek/.local/share/sf/client/2.82.6-151255f/node_modules/@jsforce/jsforce-node/lib/connection.js:733:15)\n    at async requestScratchOrgCreation (/Users/jiri.karpisek/.local/share/sf/client/2.82.6-151255f/node_modules/@salesforce/core/lib/org/scratchOrgInfoApi.js:283:16)\n    at async Promise.all (index 0)\n    at async scratchOrgCreate (/Users/jiri.karpisek/.local/share/sf/client/2.82.6-151255f/node_modules/@salesforce/core/lib/org/scratchOrgCreate.js:148:65)\n    at async OrgCreateScratch.run (file:///Users/jiri.karpisek/.local/share/sf/client/2.82.6-151255f/node_modules/@salesforce/plugin-org/lib/commands/org/create/scratch.js:205:72)\n    at async OrgCreateScratch._run (/Users/jiri.karpisek/.local/share/sf/client/2.82.6-151255f/node_modules/@oclif/core/lib/command.js:181:22)\n    at async Config.runCommand (/Users/jiri.karpisek/.local/share/sf/client/2.82.6-151255f/node_modules/@oclif/core/lib/config/config.js:456:25) {\n  data: [\n    {\n      message: \"Can't create scratch org. The specified sourceOrg ID 3SRKB000000KynT isn't valid. Verify the org ID and try again.\",\n      errorCode: 'INVALID_INPUT',\n      fields: [Array]\n    },\n    {\n      message: 'Worker SourceOrgEditionResolver threw an unhandled exception. common.exception.SqlNoDataFoundException: ORA-01403: no data found\\n' +\n        'ORA-06512: at \"DOPEY.CORGANIZATION\", line 5256\\n' +\n        'ORA-06512: at line 1\\n' +\n        '\\n' +\n        '\\n' +\n        'SQLException while executing plsql statement: {?=call cOrganization.get_all_org_type_nc(?)}(3SRKB000000KynT); [conn=STANDARD:6:6:1508:46601]',\n      errorCode: 'FIELD_INTEGRITY_EXCEPTION',\n      fields: []\n    }\n  ],\n  errorCode: 'MULTIPLE_API_ERRORS'\n}",
  "warnings": [],
  "code": "MULTIPLE_API_ERRORS",
  "status": 1,
  "commandName": "OrgCreateScratch"
}

Additional information

Image

System Information

using zsh version 5.9

{
  "architecture": "darwin-arm64",
  "cliVersion": "@salesforce/cli/2.82.6",
  "nodeVersion": "node-v22.14.0",
  "osVersion": "Darwin 24.3.0",
  "rootPath": "/Users/jiri.karpisek/.local/share/sf/client/2.82.6-151255f",
  "shell": "zsh",
  "pluginVersions": [
    "@oclif/plugin-autocomplete 3.2.26 (core)",
    "@oclif/plugin-commands 4.1.22 (core)",
    "@oclif/plugin-help 6.2.27 (core)",
    "@oclif/plugin-not-found 3.2.48 (core)",
    "@oclif/plugin-plugins 5.4.36 (core)",
    "@oclif/plugin-search 1.2.23 (core)",
    "@oclif/plugin-update 4.6.35 (core)",
    "@oclif/plugin-version 2.2.27 (core)",
    "@oclif/plugin-warn-if-update-available 3.1.38 (core)",
    "@oclif/plugin-which 3.2.34 (core)",
    "@salesforce/cli 2.82.6 (core)",
    "apex 3.6.11 (core)",
    "api 1.3.3 (core)",
    "auth 3.6.107 (core)",
    "data 4.0.23 (core)",
    "deploy-retrieve 3.21.1 (core)",
    "info 3.4.50 (core)",
    "lightning-dev 2.10.3 (user)",
    "limits 3.3.51 (core)",
    "marketplace 1.3.7 (core)",
    "org 5.5.5 (core)",
    "packaging 1.27.0 (user)",
    "schema 3.3.57 (core)",
    "settings 2.4.21 (core)",
    "signups 2.6.19 (user)",
    "sobject 1.4.53 (core)",
    "telemetry 3.6.36 (core)",
    "templates 56.3.43 (core)",
    "trust 3.7.75 (core)",
    "user 3.6.15 (core)",
    "sfdmu 4.38.0 (user)"
  ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue or pull request that identifies or fixes a buginvestigatingWe're actively investigating this issuevalidatedVersion information for this issue has been validated

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0