You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my specific case, we are creating a managed 2GP version with quick actions that have a dependency on record types in an unlocked 2GP. Building the package version with CumulusCI results in an error like:
Error: UNKNOWN_EXCEPTION : Can’t add component <quick action name> because it’s associated with metadata from a managed 2GP package. Managed 1GP packages can’t depend on managed 2GP packages.
I did some digging and it looks like when building with CumulusCI, the package.xml in the metadata sent in the 'Package2CreateVersionRequest' contains the 'fullName' field (with the project name in that field). I think this confuses the SFDC package validation into thinking you're creating a 1GP package, and the build fails with that error
I assume generally when generating a new 2GP version in CumulusCI that has dependencies on another 2GP, the validation fails with that error, but I've only tested/verified with the Record Type/ Quick Action metadata
Reproduction steps
Create an Unlocked 2GP that contains record types (Package A)
Create a new CumulusCI project (Package B)
Add a quick action in Package B that references a record type from Package A
Attempt to create a new package version with CumulusCI task create_package_version
Fixes#3415 for the scenario of when building a locked 2GP
Co-authored-by: David Reed <d.reed@salesforce.com>
Co-authored-by: James Estevez <jestevez@salesforce.com>
Describe the bug
In my specific case, we are creating a managed 2GP version with quick actions that have a dependency on record types in an unlocked 2GP. Building the package version with CumulusCI results in an error like:
Error: UNKNOWN_EXCEPTION : Can’t add component <quick action name> because it’s associated with metadata from a managed 2GP package. Managed 1GP packages can’t depend on managed 2GP packages.
I did some digging and it looks like when building with CumulusCI, the package.xml in the metadata sent in the 'Package2CreateVersionRequest' contains the 'fullName' field (with the project name in that field). I think this confuses the SFDC package validation into thinking you're creating a 1GP package, and the build fails with that error
I assume generally when generating a new 2GP version in CumulusCI that has dependencies on another 2GP, the validation fails with that error, but I've only tested/verified with the Record Type/ Quick Action metadata
Reproduction steps
create_package_version
Your CumulusCI and Python versions
CumulusCI version: 3.67.1
Python version: 3.10.4
Operating System
macOS 12.6
Windows environment
No response
CumulusCI installation method
pipx
Error Gist
No response
Additional information
Changing this:
CumulusCI/cumulusci/tasks/create_package_version.py
Line 212 in f69f394
to
None
resolves the issue, but I'm unsure if there are any side effects to that.The text was updated successfully, but these errors were encountered: