When creating a DX Unlocked Package version from a DevHub org and user with Second Generation Packages Enabled (1h ago)
sfdx force:package:version:create -p "myapp" -x -json
I get the following errors:
ERROR running force:package:version:create: No such column 'Instance' on sobject of type Package2VersionCreateRequest
Try this: Your org does not have permission to specify a build instance for your package version. Verify that you are authenticated to the desired org and try again. Otherwise, contact Salesforce Customer Support for more information.
When I call the command without the -json
param it takes a minute and then comes back with other metadata errors that all seem to miss a custom object which is part of the package.
ERROR running force:package:version:create: TestQuoteCtrl: Invalid type: MyQuote__c,TestMyQuoteCtrl: Invalid type: MyLineItem__c,QuoteManager: Invalid type