You need to sign in to do that
Don't have an account?
Jeremiah Sherrill
Migrating metadata from one org to a sandbox, sfdx force gives me an error when using sfdx force:org:create
The error I am getting is ERROR: No such column 'PackageDirectories' on sobject of type ScratchOrgInfo.
sfdx force:org:create -f sfdx-project.json -a myorgthing
json file
{ "packageDirectories": [ { "path": "force-app", "default": true } ], "namespace": "", "sfdcLoginUrl": "https://login.salesforce.com", "sourceApiVersion": "42.0" }
folder structure is
--force-app -- main -- default -- applications -- classes -- et.all.
The issue is that the PackageDirectories field on the ScratchOrgInfo Sobject is missing and probably the code components you intend to deploy to the target are referencing the PackageDirectories field. This results in the issue.
Solution here would be to include the ScratchOrgInfo sobject containing the PackageDirectories field within your deployment and I believe that means including the objects folder within your folder structure from the second snapshot.
All Answers
The issue is that the PackageDirectories field on the ScratchOrgInfo Sobject is missing and probably the code components you intend to deploy to the target are referencing the PackageDirectories field. This results in the issue.
Solution here would be to include the ScratchOrgInfo sobject containing the PackageDirectories field within your deployment and I believe that means including the objects folder within your folder structure from the second snapshot.