Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
All Answers
Please mark as best answer if this answer your question
Always try to insert the parent record first then child. So in your case order should be like below
1) Account
2) Contact
3) Opportunity
4) Opportunity Item
Please check below post for more information
1) Steps to migrate data from one organization to another (https://help.salesforce.com/articleView?id=What-steps-are-needed-to-migrate-my-data-from-one-organization-to-another-1327109132359&language=en_US&type=1)
2) https://admin.salesforce.com/data-migration
3) Force.com Migration Tool Guide (https://resources.docs.salesforce.com/sfdc/pdf/salesforce_migration_guide.pdf)
Let us know if this will help you