You need to sign in to do that
Don't have an account?
Question on deployment to Production - unable_to_lock_row
Hi,
I have been facing 'unable_to_lock_row' exception when I run all classes (parallel or synchronous) in sandbox but when I run them individually (unit test or asynchronous), they pass. This is happening at lines where I am inserting new records (ContentVersion & User records) in test methods. But I don't have any trigger on User object hence no scope for recursion. I have a trigger on ContentVersion but not doing any DML operations in it and hence no scope for recursion here as well, but I still keep getting this error. Now, all I am worried about is when we deploy metadata from sandbox to production, do test classes run in parallel (synchronously) or are they run unit wise (asynchronously)? I use eclipse for deployment.
Please help!
Thanks,
Puneeth.
This link might be use ful
http://boards.developerforce.com/t5/Apex-Code-Development/Unexpected-quot-UNABLE-TO-LOCK-ROW-quot-on-simple-update/td-p/174831