I am trying to upgrade from v0.6
to v0.7
of a Managed Package
which uses 2GP
.
I am getting this error message:
This app can't be upgraded.
There are problems that prevent this package from being installed.
Invalid Upgrade.
The currently installed version does not share a common ancestor with this version.
I understand what this error message is trying to tell me.
But when I run command:
sfdx force:package:version:list
I can see all the package versions and their Ancestors
and Ancestor Versions
and they are all the same.
04t4J000002AXX7QXX 0.4.0.1
04t4J000002AXX7QXX 0.4.0.1
04t4J000002AXX7QXX 0.4.0.1
04t4J000002AXX7QXX 0.4.0.1
04t4J000002AXX7QXX 0.4.0.1
04t4J000002AXX7QXX 0.4.0.1
As suggested by the legend Mohith Shrivastava I tried running the command:
sfdx force:package:version:displayancestry -p "My Awesome App"
Output:
─┬ 0.1.0.26
├── 0.2.0.1
├─┬ 0.3.0.1
│ └─┬ 0.4.0.1
│ ├── 0.5.0.1
│ ├── 0.6.0.3
│ ├── 0.7.0.1
│ └── 0.8.0.1
└── 1.2.0.1
── 1.0.0.1
── 1.1.0.2
First off you will notice (and most likely laugh at the fact) that I've messed up the package version ancestry once before.
Currently v0.5.0.1
is used by most people.
Questions
- Why am I getting this error if they do share a common ancestor with this version?
- How can I fix this?