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

Scratch Org Pool creation script failing "Unable to execute command .. Error: Can't find package id for dependency: 04txxxx" #1113

Closed

Description

@eneag-sf

Describe the bug

NOTE: This issue started 2 days ago. No changes were done to the scripts/DevHub.
env-operations-prepare-ci-pool.yml & env-operations-prepare-dev-pool.yml scripts, which are auto-scheduled started to fail for the first time on 31.08.2022. The error shown is:

ERROR running sfpowerscripts:orchestrator:prepare: Unable to execute command .. Error: Can't find package id for dependency: 04t4S000000HweFQAS

To Reproduce
Steps to reproduce the behavior:

  1. Clone https://github.com/dxatscale/dxatscale-template repo
  2. Follow steps to connect to DevHub
  3. Modify sfdx-project.json to add packages that need to be installed
{
  "packageDirectories": [
    {
      "path": "./force-app",
      "package": "DreamHouseORGD",
      "versionName": "Summer Release '23",
      "versionNumber": "55.0.0.NEXT",
      "default": true,
      "assignPermSetsPostDeployment": ["dreamhouse"]
    },
    {
      "path": "./src-env-specific",
      "package": "src-env-specific",
      "versionNumber": "1.0.0.0"
    },
    {
      "path": "./data",
      "package": "DataHD",
      "type": "data",
      "versionNumber": "1.5.0.0"
    },
    {
      "path": "./packages",
      "package": "Packages",
      "versionNumber": "1.0.0.0",
      "ignoreOnStage": ["prepare", "validate", "quickbuild", "build"],
      "dependencies": [
        {
          "package": "04t4S000000HweFQAS"
        },
        {
          "package": "04t58000000SGw3AAG"
        },
        {
          "package": "04t2w000009BbjoAAC"
        },
        {
          "package": "04t8b000001Eh4YAAS"
        },
        {
          "package": "04t5G000003rUvVQAU"
        },
        {
          "package": "04t5G000003rUvLQAU"
        }
      ]
    }
  ],
  "namespace": "",
  "sfdcLoginUrl": "https://login.salesforce.com",
  "sourceApiVersion": "54.0",
  "packageAliases": {
    "DreamHouseORGD": "0Ho5f000000TNHJCA4",
    "[email protected]": "04t5f000000elXBAAY"
  }
}

Expected behavior

The script should create the scratch orgs with the packages excatly as described in the json file.

If applicable, add screenshots to help explain your problem.

Platform Details (please complete the following information):

  • OS: ubuntu
  • sfpowerscripts version: 19.4.1
  • Salesforce CLI version: 7.160.0
  • CI Platform: GitHub

Activity

  1. added
    analysis
    on Sep 1, 2022
  2. added
    bug
    and removed
    analysis
    on Sep 3, 2022
  3. azlam-abdulsalam commented on Sep 3, 2022

    @azlam-abdulsalam
    Contributor

    Please use packageAliases to mention this id's as a workaround

  4. added
    analysis
    on Nov 7, 2022
  5. removed
    analysis
    on Nov 17, 2022
  6. added 2 commits that reference this issue on Dec 6, 2022
    92cb599
    f901fcf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions