+ Start a Discussion
Semira@gmail.comSemira@gmail.com 

How to check which trigger or apex batch is running into Record Lock issue

Hi, 

I'm running into intermittent issue which I cannot seem to catch on debug log. Maybe I don't have right log setup but how do I find out which code (whether it is apex batch or trigger) is causing all our users to get record lock issue when trying to save their changes. 

This happened when I did a mass update to change a value of a picklist. For that I had to turn off a trigger and then turn back on. I made sure all the code in our org are referring to the new value. It started happening when I turned off the trigger which is strange. 

Please if anyone has any suggestion, I'm all open ears. I have case open with support but they aren't able to say much either.