-
Notifications
You must be signed in to change notification settings - Fork 78
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. #2268
Comments
Hello @kyleschiess 👋 It looks like you didn't include the full Salesforce CLI version information in your issue. A few more things to check:
Thank you! |
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. |
We have determined that the issue you reported exists in code owned by another team that uses only the official support channels. To ensure that your issue is addressed, open an official Salesforce customer support ticket with a link to this issue. We encourage anyone experiencing this issue to do the same to increase the priority. We will keep this issue open for the community to collaborate on. |
I reloaded VS Code, which cleared this warning:
|
Hi @kyleschiess I tried to reprduce this locally and it worked ok... ➜ sf package1 version list -o na40
MetadataPackageVersionId MetadataPackageId Name Version ReleaseState BuildNumber
──────────────────────── ────────────────── ───────────── ─────── ──────────── ───────────
04t4p0000006b2EAAQ 0334p0000004gWWAAY ver 0.1 0.1.0 Beta 2
➜ sf package install --package 04t4p0000006b2EAAQ --wait 30
? This package might send or receive data from these third-party websites:
[nominatim.openstreetmap.org]
Grant access (y/n)? Yes
Waiting 30 minutes for package install to complete.... done
Successfully installed package [04t4p0000006b2EAAQ] which installed it into my default scratch org... could you add some instructions or steps to follow in your repro repo? |
To replicate this, you'd run all the steps in this documentation: |
if you're trying to install a 2GP package, you should use |
I get the same ID:
|
I made a new project directory and ran through those docs again using I'm not sure what went wrong the first time around. I was going back and forth between |
I got this error when supplying an installation key when creating the package, but not when installing it. The error message is quite misleading. So is the |
I got the error message when not using an installation key. After using the installation key, the package was installed successfully. |
Sorry commenting in this closed issue, but I think I found out the exact problem. In this documentation of Salesforce, the command to install the package with the installation key actually has a new line character. So if you copy and paste without paying attention to that your command will not be in the same line, then you will run into this problem! |
Summary
I'm following these docs to test the installation of a package.
If I run this command:
sf package1 version list -o my_dev_hub_org_username
I can see these results:
MetadataPackageVersionId MetadataPackageId Name Version ReleaseState BuildNumber
──────────────────────── ──────────────────
04tHo000000EeL6IAK 033Ho000000DmcnIAC ver 0.1 0.1.0 Beta 1
However, if I run this command:
sf package install --package 04tHo000000EeL6IAK -o my_scratch_org_username
I get this error:
Error (1): The subscriber package version 04tHo000000EeL6IAK is invalid, no subscriber package version record found.
If I add the
--dev-debug
flag, I also see this bit that might be adding to the problem:sf:subscriberPackageVersion DEBUG This directory does not contain a valid Salesforce DX project. +0ms
I saw this stack question that looks like the same issue, but I wanted open an issue in case it's something else.
Steps To Reproduce
Link to public repo
Expected result
Based on step 10 of the documentation linked above, I should be able to see the installed package in the
my_scratch_org_username
org.Actual result
There are no installed packages in
my_scratch_org_username
and I am shown this error from the CLI:Error (1): The subscriber package version 04tHo000000EeL6IAK is invalid, no subscriber package version record found.
System Information
Using Visual Studio Code 1.79.2. Terminal is zsh.
Salesforce CLI:
Additional information
Some output from
--dev-debug
that might be relevant:The text was updated successfully, but these errors were encountered: