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

Package subscriber ID exists in Dev Hub org, but no subscriber package version record found in scratch org #2921

Closed
epavlic-revenue opened this issue Jun 13, 2024 · 9 comments
Labels
bug Issue or pull request that identifies or fixes a bug investigating We're actively investigating this issue validated Version information for this issue has been validated

Comments

@epavlic-revenue
Copy link

epavlic-revenue commented Jun 13, 2024

Summary

sf package install --package <version-id> --wait 30 outputs The subscriber package version <version-id> is invalid, no subscriber package version record found.

sf package1 version list --target-org dev-hub lists the <version-id>.

Trying to install manually gives a different error:

The AppExchange Application or component you have selected is not yet available on your instance of salesforce.com. Please check back in a few days to retry the installation.

The version in question was packaged 1 day ago.

Expected result

If a package version exists in the sf package1 version list --target-org dev-hub it should be propagated to Salesforce instances in under a day.

Actual result

Package version appears not to have been propagated, and the error message is confusing.

System Information

{
  "architecture": "darwin-arm64",
  "cliVersion": "@salesforce/cli/2.42.6",
  "nodeVersion": "node-v20.5.1",
  "osVersion": "Darwin 23.5.0",
  "rootPath": "/opt/homebrew/lib/node_modules/@salesforce/cli",
  "shell": "zsh",
  "pluginVersions": [
    "@oclif/plugin-autocomplete 3.0.18 (core)",
    "@oclif/plugin-commands 3.3.4 (core)",
    "@oclif/plugin-help 6.0.22 (core)",
    "@oclif/plugin-not-found 3.1.9 (core)",
    "@oclif/plugin-plugins 5.0.21 (core)",
    "@oclif/plugin-search 1.0.24 (core)",
    "@oclif/plugin-update 4.2.12 (core)",
    "@oclif/plugin-version 2.1.2 (core)",
    "@oclif/plugin-warn-if-update-available 3.0.19 (core)",
    "@oclif/plugin-which 3.1.10 (core)",
    "@salesforce/cli 2.42.6 (core)",
    "apex 3.1.11 (core)",
    "auth 3.6.11 (core)",
    "data 3.3.5 (core)",
    "deploy-retrieve 3.6.14 (core)",
    "devops-center 1.2.10 (user) published 34 days ago (Thu May 09 2024) (latest is 1.2.14)",
    "info 3.2.8 (core)",
    "limits 3.3.7 (core)",
    "marketplace 1.2.5 (core)",
    "org 4.1.10 (core)",
    "packaging 2.4.4 (core)",
    "schema 3.3.6 (core)",
    "settings 2.2.6 (core)",
    "sobject 1.4.2 (core)",
    "source 3.3.12 (core)",
    "telemetry 3.3.7 (core)",
    "templates 56.2.7 (core)",
    "trust 3.6.11 (core)",
    "user 3.5.8 (core)"
  ]
}
@epavlic-revenue epavlic-revenue added the investigating We're actively investigating this issue label Jun 13, 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 @epavlic-revenue 👋 None of the versions of sf you shared match the latest release.

Shared: 2.42.6
Latest: 2.45.6

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 and removed investigating We're actively investigating this issue labels Jun 13, 2024
@epavlic-revenue
Copy link
Author

{
  "architecture": "darwin-arm64",
  "cliVersion": "@salesforce/cli/2.45.6",
  "nodeVersion": "node-v20.5.1",
  "osVersion": "Darwin 23.5.0",
  "rootPath": "/opt/homebrew/lib/node_modules/@salesforce/cli",
  "shell": "zsh",
  "pluginVersions": [
    "@oclif/plugin-autocomplete 3.1.2 (core)",
    "@oclif/plugin-commands 4.0.2 (core)",
    "@oclif/plugin-help 6.1.0 (core)",
    "@oclif/plugin-not-found 3.2.2 (core)",
    "@oclif/plugin-plugins 5.2.2 (core)",
    "@oclif/plugin-search 1.1.1 (core)",
    "@oclif/plugin-update 4.3.3 (core)",
    "@oclif/plugin-version 2.2.2 (core)",
    "@oclif/plugin-warn-if-update-available 3.1.4 (core)",
    "@oclif/plugin-which 3.2.1 (core)",
    "@salesforce/cli 2.45.6 (core)",
    "apex 3.1.14 (core)",
    "auth 3.6.17 (core)",
    "data 3.4.3 (core)",
    "deploy-retrieve 3.8.4 (core)",
    "devops-center 1.2.10 (user) published 34 days ago (Thu May 09 2024) (latest is 1.2.14)",
    "info 3.3.4 (core)",
    "limits 3.3.10 (core)",
    "marketplace 1.2.10 (core)",
    "org 4.1.19 (core)",
    "packaging 2.4.5 (core)",
    "schema 3.3.10 (core)",
    "settings 2.3.0 (core)",
    "sobject 1.4.8 (core)",
    "source 3.3.21 (core)",
    "telemetry 3.3.12 (core)",
    "templates 56.2.9 (core)",
    "trust 3.7.4 (core)",
    "user 3.5.11 (core)"
  ]
}

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

shetzel commented Jun 13, 2024

Is it a 1GP or 2GP package? Looks like you're mixing the commands. package1 are commands for 1GP. package are commands for 2GP.

@epavlic-revenue
Copy link
Author

epavlic-revenue commented Jun 13, 2024

@shetzel It's a 1GP package, and package install should be for either 1GP or 2GP. It used to work for 1GP, and it still does for older versions (for example, on my instance two versions or more behind last work, while the last one and the one before last do not). package1 has only version create, display, list.

@shetzel
Copy link
Contributor

shetzel commented Jun 13, 2024

Is this issue about the error message that you'd like improved or about propagation? The CLI team can enhance the error message but propagation is controlled by the server. Customer support could look into the propagation delays.

@epavlic-revenue
Copy link
Author

@shetzel If that's the distribution of responsibilities, I'm happy for the error message to be made clearer — The subscriber package version <version-id> is invalid is not true, as the version has been valid for a day.

@shetzel shetzel added the bug Issue or pull request that identifies or fixes a bug label Jun 14, 2024
Copy link

git2gus bot commented Jun 14, 2024

This issue has been linked to a new work item: W-16009913

@dschibster
Copy link

Chiming in to say that this is also happening for me in Scratch Org Pooling. Over the weekend a new version of vlocity_cmt was released, which failed to install on scratch orgs with the exact same error message. As far as I'm able to see, the previous package version can get installed just fine, the CI pipeline I use didn't fail at the time the other one did, but keeps on running.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue or pull request that identifies or fixes a bug 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

4 participants