function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Arjun9Arjun9 

data import

Hi guys,



I have 127 records of account object,in that 80 records are without parent id so i can esaily insert those records,
but remaining 47 records are having parent id,so while i insert them it throws error,can u guys explain how can i overcome these..

please explain in some easy steps,because im new to migration
Ishwar ShindeIshwar Shinde
Your data count is very low. So you can try to insert the all 47 records with batch size 1. If anything fails, re-exeute the failed onces only. You will get these falied records from error file generated by data loader.

Hope it will help!!
JeffreyStevensJeffreyStevens
On the 47 records with a parent ID - how did you get the parent ID?  Are they the IDs from the org where your're doing the insert?  If not - then this is how you should do it.

Insert all of the Parent records.  Take the success file, which now has new Salesforce IDs in it.  Those IDs, need to be placed in the 47 records that have a parent - under the column ParentId.