function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
FilikinFilikin 

Ancestor package version hasn't been promoted

Hi,
I am trying to create a new version of a second generation package.
I am getting the error message:
ERROR running force:package:version:create:  The ancestor package version [0.6.0.2] specified in the sfdx-project.json file hasn’t been promoted and released. Release the ancestor package version before specifying it as the ancestor in a new package or patch version.

But when I run sfdx force:package:version:report it says that this verison has been released:
Version                        0.6.0.2
Released                       true

This in my sdx-project.json:
"packageDirectories": [
        {
            "path": ".\\force-app",
            "package": "TaxClaim",
            "versionName": "ver 0.7",
            "versionNumber": "0.7.0.NEXT",
            "ancestorVersion": "0.6.0.2",
            "default": true
        }
    ],
Any ideas?
Best Answer chosen by Filikin
FilikinFilikin
Using ancestorId instead of ancestorVersion sovled the problem!