You need to sign in to do that
Don't have an account?
Dominik 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.
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?)
Virendra 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.