You need to sign in to do that
Don't have an account?
Corey Cummings
sfdx push results in huge list of errors
I have followed the instructions for creating a sfdx project locally and converted all of my metadata to the sfdx format. Now I want to push my local meta data to my scratch org but I receive a huge list of errors. Most of them are that the objects are different and items don't exist, which I know because it's the first time I want to push my local version to the scratch org so my scratch org matches my production/sandbox metadata.Has anyone had this problem and have any advice to how to deploy my local set of metadata to a scratch org? I tried to use the --forceoverwrite parameter on sfdx push, but I still receive a LOT of errors such as invalid type, field does not exist, etc. I would think this command would overwrite what is on the scratch org with what I am pushing to it. Thanks for any advice
Error examples (too many to post all)
1. Field TMCSPL__r does not exist. Check spelling.
2. In field: relatedList - no CustomField named Policy__c.Review__c found
3. Invalid type: MultiLevelRelationship__c
4. Variable does not exist: CloneMultiLevelRelationshipList
5. Invalid type: Policy__c
It seems to me like there are conflicts, similar to when you merge changes in source control. My question is how to I create a scratch org that has the same schema and objects I have in production so I can follow a normal SDLC process using source control and testing my changes against my real metadata? I don't want a new scratch org with the default items in it, that is useless since I can't deploy and test my new changes to see how my latest changes work with my existing schema before committing them and pushing them to the sandbox.
I have exactly the same issues.
- Internal errors
- Standard picklist values not converted
- and a lot of odd errors...
it seems it is not reliable so far. There is no easy process to convert existing org to scratch org and new package management is still tagged Beta and it is really a Beta.SFDX is ok with brand new projects.
SO, the question really is this - What is the actual way to get the current configuration in a production org into a scratch org using sfdx force:source:push? I have grabbed the metadata from Prod using the force:source:retrieve command (and setting up the package.xml file to do this is a terrible thing to do anyway) and converted, and then TRIED to push and received a ton of errors.
Is there a step-by-step set of instructions or best practice to move this stuff into a scratch org to get started?
Thanks in advance,
Scott
Greetings!
You can simply use push operation for a small amount of data.
But if you want to push a huge list, You have to specify the format of the data as well.
please add --json in your push command, you will be able to push a huge list.
If you find your Solution then mark this as the best answer.
Thank you!
Regards,
Suraj Tripathi