+ Start a Discussion
akhil Vakhil V 

Insertion Failed row 0;UNABLE_ TO_ LOCK_ ROW Expected:00NA33E3300E ;Actually=Null

Hi,
Am getting this Error in a Test  Class .its about 100 lines of code as part of that am not pasting the code,can any one say why this error comes?
Thanks in Advance,
Akhil
Himanshu ParasharHimanshu Parashar
Hi Akhil.

This Error comes when you test class use same record which is used somewhere in the same transection when you are running your test class.

Are you using SeeAllData=True ?

Thanks,
Himanshu
Salesforce Certified Developer | Administrator | Service Cloud Consultant