I am trying to create a scratch org based on existing DEV sandbox. The problem is that I get a bunch of errors when trying to push the code into the scratch org:
Invalid type: Quote (13:9) Invalid type: QuoteDocument (99:13) DML requires SObject or SObject list type: QuoteDocument (101:17)
Theres also errors about custom objects and Apex classes.
So basically the scratch org doesn't have any information about any of the objects that I am working with.
The steps that I did to create my DX project from DEV sandbox environment:
1.Created a SFDX project
2.Created a package.xml of my existing DEV sandbox
3.Retrieved the data with package.xml
4.Initialized a git and committed all the files
5.Created a scratch org
6.Tried to push the code into the scratch org
In some cases I see that people need to do some conversion from metadataformat into source format. Is that what I am missing here?
I tried to do that but it only creates a similar kind of a project that I already did with SFDX: Create project command from Command palette in Visual studio code.
I just cannot find a simple example anywhere where somebody would show how to make a scratch org based on an existing Sandbox org with custom objects and fields.
Some guides say that I should use a scratch-org-definition file to create the scratch orgs shape but I cannot find any example how to include custom object info there..
What am I missing?