Hi All,
I have a question regarding the package version creation. I am trying to distribute our Happy soup ORG into different unlocked packages. But facing some issues.
1. we have a Docusign managed package installed in the happy soup ORG
2. One of the Object in that Docusign managed package has a reference to a custom object.
3. First I created an unmanaged package with that Custom object to get all the related dependencies.
4. Once I converted from the mdapi to src format, I could see the managed package object with a single reference field in src format like dsfs__DocuSign_Status__c.object-meta.xml
5. When I tried to push it to scratch ORG, then I got issues. saying
'Must specify a non-empty label for the CustomObject'
6. Then I copied all the metadata of that dsfs__DocuSign_Status__c object in src format and pushed the whole object metadata to scratch ORG. Then it worked fine without no issues.
7. Once everything done with no compilation issues, I tried to create a package version. Then I am getting the issues with this object saying
You're trying to include CustomObject dsfs__DocuSign_Status__c in Package ver 0.1. This component already exists in Package null, which Package ver 0.1 depends on. You can't include the same component in both packages.
What should I do now? I am completely stuck here. Please help me.
Thanks in advance
Thank you @John Daniel/ @Marc Behr , that worked like a charm.
I should pass -f config/project-scratch-def.json also while creating package since I have enabled some features/settings for Scratch ORG creation.
Thanks a lot.