function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Dominik PatakyDominik Pataky 

What could block a future List<sobject> DML insert/update?

Hello,
I have a List of custom SObjects that need to be bulk inserted or updated, but the logs do not show any useful information, why the Apex job does not finish. The job stays at "processing" - even over night! This morning I got one result back, First error: Insert failed. First exception on row 0; first error: UNABLE_TO_LOCK_ROW, unable to obtain exclusive access to this record or 23 records and solved it with using FOR UPDATE in my SOQL queries. But now I am back to no result.
  • Any idea how I can change the debug log levels when I run the class from the dev console?
  • Should I look into any other blocking operations I would need to solve? (Triggers?)
Thanks!
Virendra Singh NarukaVirendra Singh Naruka
Hi Dominik,  create new debug log with default settings   configure it  for the user you are tying to execute class from dev console. Debug log will show and help you to debug.