I am in the process of converting an existing Managed Package to Salesforce DX and
- Retrieved the Metadata from the packaging org
- Converted it to Source format
- Created a scratch org and
- pushed source to scratch org
The last step fails with hundreds of errors which all come from it not finding a Custom Field on a packaged Custom Object.
No such column 'customField__c' on entity 'NAMESPACE__CustomObject__c'.
The Metadata is there and I checked ALL the errors and nothing else is there.
I am also successful to do a mdapi:deploy
to the same scratch org. It works without andy problems. But the problem persists. When I pull from the org and push it into another scratch I again see the same error.
"namespace": "NAMESPACE"
in your project-scratch-def.json?source:push
? Think you are stuck with e.g. stripping out everything but the data model and then adding pieces back in until you find the problem area which you might or might not be able to workaround. There is also a small chance that there is useful information in the.sfdx/sfdx.log
file.