NPSP icon indicating copy to clipboard operation
NPSP copied to clipboard

package_version_create issue with unlocked packages

Open krishnakolluneocol opened this issue 1 year ago • 0 comments

Hello,

I am executing the task "create_package_version" with "package_type" = "Unlocked"

There's a problem though the query that's generated to check if the package already exists or not.

The query -- which I debugged - is as follows:

SELECT Id, ContainerOptions FROM Package2 WHERE IsDeprecated = FALSE AND ContainerOptions='PackageTypeEnum.unlocked' AND IsOrgDependent=False AND Name='' AND NamespacePrefix=null

As you can see, it is passing in the "PackageTypeEnum.unlocked" value into ContainerOptions rather than just "unlocked". This is causing it to think there is no existing package, and try to create the package, which is failing because there is already a package with this name

CumulusCI version: 3.71.0

Krishna

krishnakolluneocol avatar Feb 16 '23 15:02 krishnakolluneocol