Skip to main content
Saurabh Gupta 님이 #Apex에 질문했습니다
Hi

I am facing one issue during Run All Test in Sandbox on which I need some help

When i do run all test in sandbox then i face UNABLE_TO_LOCK_ROW error messages in some test classes

System.DmlException: Insert failed. First exception on row 0; first error: UNABLE_TO_LOCK_ROW, unable to obtain exclusive access to this record: []

As a solution i have disabled Parallel testing in sandbox which resolve the issue in sandbox  but want to know will  I face any issue during sandbox to production deployment ?

If yes , the how can the issue be resolved.

 
답변 2개
  1. 2015년 11월 30일 오전 7:17

    perform dml in system.runAs user in test class
0/9000