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

sfdx texei:package:dependencies:install command retrieving wrong package version Id #53

Open
Bgallahue opened this issue Feb 16, 2021 · 6 comments
Labels
bug Something isn't working

Comments

@Bgallahue
Copy link

I have received this error a couple times using the sfdx texei:package:dependencies:install command

AppExchange Package is Deprecated, Details: The AppExchange package has been deprecated and can no longer be installed. Please try installing a newer version, or contact the package owner directly to resolve.

This occured not on a Appexchange package but rather just on one of my normal Unlocked package. I am not positive where it is pulling the package version Id from as in the latest instance in which I received the error, no package version in the history of that specific unlocked package had the same PackageVersionId as what the command tried to use (ie. it didnt use an old one)

I was able to manually install the error generating package using sfdx force:package:install. It was about the 5th package down in the dependency tree. Let me know if you need any additional info or anything was unclear

@FabienTaillon
Copy link
Member

Yes please, if you have a reproducible example this would help.
The command is just reading what's in your sfdx-project.json so this means you may have a deprecated package id in there.
The Texeï command is calling the sfdx force:package:install command behind the scene, so it should work the same way.

@Bgallahue
Copy link
Author

my unlocked package is called (this is what is in the sfdx-project.JSON under the dependencies key

{
          "package": "ListingStructure",
          "versionNumber": "0.1.16.LATEST"
 },

Info retrieved when running sfdx force:package:version:list -p PACKAGEID (showing that is it the latest package and is released)

Package Name     Version Name      Version Subscriber Package Version Id       Released
───────────────────────────────────────────────────────    
ListingStructure     0.1.16.4                04t4P000002GHd6QAG                                 true

After running sfdx texei:package:dependencies:install -r

Package dependencies found for package directory force-app
    04t4P000002GHdBQAW : ListingStructure 0.1.16.LATEST
Resolving dependencies... Done.

So it pulls down a different Package Version ID, which is weird, then received this error

Installing package 04t4P000002GHdBQAW : ListingStructure 0.1.16.LATEST
Waiting for the package install request to complete. Status = IN_PROGRESS
ERROR:  Encountered errors installing the package!,Installation errors: 
1) Package(0334P000000lnvt) AppExchange Package is Deprecated, Details: The AppExchange package has been deprecated and can no longer be installed.          Please try installing a newer version, or contact the package owner directly to resolve.
ERROR running force:package:install:  Installation errors: 
1) Package(0334P000000lnvt) AppExchange Package is Deprecated, Details: The AppExchange package has been deprecated and can no longer be installed.          Please try installing a newer version, or contact the package owner directly to resolve.
ERROR running texei:package:dependencies:install:  `sfdx force:package:install --targetusername [email protected] --package 04t4P000002GHdBQAW --wait 10 --publishwait 10 --noprompt` failed with code 1

@FabienTaillon FabienTaillon added the bug Something isn't working label Feb 16, 2021
@FabienTaillon
Copy link
Member

Ok thanks, we'll have a look.

@Bgallahue
Copy link
Author

Much appreciated Fabien

@FabienTaillon
Copy link
Member

@Bgallahue can you tell me what is the version number of the Package Version Id retrieved by the Texeï plugin ?
It retrieves 04t4P000002GHdBQAW, is it before or after the 0.1.16.4/04t4P000002GHd6QAG Package Version that the Salesforce command is giving you ?

@FabienTaillon
Copy link
Member

Also, can you list what's under your packageAliases in sfdx-project.json ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants