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
Pasan   EeriyagamaPasan Eeriyagama 

How do I keep Product namespace in DX Org after migrating from DE?


0down votefavorite
In our managed package we have 'XYZ' namespace in most of our product sourcecode.
When we try to get this to DX, as per Salesforce guide here we must create an unmanaged package.
Salesforce doesn't allow creating an unmanaged package with sourcecode which has references to a namespace and throws below Error.

Unmanaged packages cannot explicitly reference this organization's namespace.

I think this is fair because we cannot ship an unmanaged package with a namespace.

But we noticed custom objects can be packaged as unmanaged with namespace, and even after we moved to DX, they still shows up in DX orgs with namespace.
Is there a way that we can transport our sourcecode with managed package references to DX? Appreciate any help, Thanks.