+ Start a Discussion
akhil Vakhil V 

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

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,
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 ?

Salesforce Certified Developer | Administrator | Service Cloud Consultant