0

I created 3 package versions - 0.1.0.1, 0.1.0.2, 0.1.0.3 of 2nd generation managed package. I promoted 0.1.0.3 to release I created versions 0.1.0.4 - 0.1.0.6 with --skipancestorcheck

I made following update in sfdx-project file: I specified ancestorId in sfdx-project file as id (04t......) of released version 0.1.0.3 I set "versionName" to "ver 0.2" from "ver 0.1" I set "versionNumber" to "0.2.0.NEXT" from "0.1.0.NEXT"

I ran command sfdx force:package:beta:version:create --package "Test App" --installationkey "XXX" --definitionfile config/project-scratch-def.json --wait 10 -c"

I got error "ERROR running force:package:version:create: An unexpected error occurred. Please include this ErrorId if you contact support: 636537585-177978 (-693775129)"

Salesforce Support found that ErrorId is related to "java.lang.RuntimeException: Failed to retrieve Second Generation Package Version info of ancestor 05i3z000000fyk0AAA."

05i3z000000fyk0AAA is Id of Package2Version record of version 0.1.0.3 in my DevHub org

My expectation is that new beta version of package will be created but I got error. Did you have something similar?

I am now stuck, because I can not delete released version of 2nd generation package and I can not create new one. Do you have any idea how to get out of this?

I tried ancestorVersion : HIGHEST and all possible values for ancestorId, ancestorVersion but nothing helped.

My latest sfdx-project file is

{
    "packageDirectories": [
        {
            "path": "force-app",
            "default": true,
            "package": "Test App Core",
            "versionName": "ver 0.2",
            "versionNumber": "0.2.0.NEXT",
        "ancestorId":"04t..........YAAQ"
        }
    ],
    "name": "test-salesforce-core",
    "namespace": "zenoo_app",
    "sfdcLoginUrl": "https://login.salesforce.com",
    "sourceApiVersion": "55.0",
    "packageAliases": {
        "Test App Core": "0Ho3........CAA",
        "Test App Core@0.1.0-1": "04t..............OAAQ",
        "Test App Core@0.1.0-2": "04t..............TAAQ",
        "Test App Core@0.1.0-3": "04t..............YAAQ"
    }
}

I am using sfdx-cli version 7.176

rstrader
  • 1
  • 2

0 Answers0