-
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
Unable to create 2GP managed package #2494
Comments
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. |
Hello @aozomaro 👋 None of the versions of Shared: Update to the latest version of Salesforce CLI (docs) and confirm that you're still seeing your issue. After updating, share the full output of |
Thanks. I updated the CLI and received the same error. Here is the output. { "cliVersion": "@salesforce/cli/2.10.2", "architecture": "linux-x64", "nodeVersion": "node-v18.14.0", "osVersion": "Linux 5.15.0-1028-aws", "shell": "bash", "rootPath": "/opt/circleci/.nvm/versions/node/v18.14.0/lib/node_modules/@salesforce/cli", "pluginVersions": [ "@oclif/plugin-autocomplete 2.3.8 (core)", "@oclif/plugin-commands 2.2.25 (core)", "@oclif/plugin-help 5.2.19 (core)", "@oclif/plugin-not-found 2.4.1 (core)", "@oclif/plugin-plugins 3.7.1 (core)", "@oclif/plugin-search 0.0.22 (core)", "@oclif/plugin-update 3.2.3 (core)", "@oclif/plugin-version 1.3.10 (core)", "@oclif/plugin-warn-if-update-available 2.1.0 (core)", "@oclif/plugin-which 2.2.32 (core)", "@salesforce/cli 2.10.2 (core)", "apex 2.3.15 (core)", "auth 2.8.17 (core)", "data 2.5.9 (core)", "deploy-retrieve 1.18.0 (core)", "info 2.6.43 (core)", "limits 2.3.34 (core)", "login 1.2.31 (core)", "marketplace 0.2.2 (core)", "org 2.10.8 (core)", "schema 2.3.26 (core)", "settings 1.4.29 (core)", "sobject 0.2.7 (core)", "source 2.10.34 (core)", "telemetry 2.3.3 (core)", "templates 55.5.12 (core)", "trust 2.6.13 (core)", "user 2.3.32 (core)" ] } |
Has your devhub been updated to API version 59.0? What does your sfdx-project.json look like (redacting anything you prefer to be private), specifically with any API versions or sourceApiVersion? |
Thanks for getting back to me.
{
"packageDirectories": [
{
"path": "force-app",
"default": true,
"package": "My Package",
"ancestorVersion": "2.82.0",
"versionNumber": "2.83.0.NEXT",
"postInstallScript": "PostInstall",
"branch": "master",
"unpackagedMetadata": {
"path": "unpackaged"
},
"apexTestAccess": {
"permissionSets": [
"PermSet1"
]
}
},
{
"path": "unpackaged",
"default": false
}
],
"name": "someAppName",
"namespace": "SomeNamespace",
"sourceApiVersion": "58.0",
"packageAliases": {
"My Package": "somePackageId",
"My [email protected]": "someVersionId"
}
}
|
I also can't create a 2GP managed package. Not sure if it's related..
I get:
|
My issue has been resolved. Th following blurb from SFDC support i what fixed the issue.
|
Summary
When we try to create a managed package we get an error which indicates that the package.xml API version is invalid. More specifically we receive this error message:
Multiple errors occurred: \n(1) package.xml: Invalid version specified:59.0
Steps To Reproduce
sfdx package:version:create -p "Our Package" -v dev-hub -c -w 60 --verbose --json
Expected result
Build should create package successfully
Actual result
Multiple errors occurred: \n(1) package.xml: Invalid version specified:59.0
System Information
The text was updated successfully, but these errors were encountered: