Questions tagged [mixed-dml]
The mixed-dml tag has no usage guidance.
3 questions
0
votes
1
answer
51
views
DMLEXCEPTION NOT BEING CAUGHT
I HAVE WRITTEN THE BELOW CODE BUT IT IS NOT THROWING THE MIXEDDMLEXCEPTION AND I DON'T UNDERSTAND WHY.
public class April22Task2 {
public static void createUserAndAccount()
{
//...
2
votes
2
answers
2k
views
Sudden MIXED_DML_OPERATION errors without code changes
So I have 3 orgs that are basically all on the same codebase. On the production org (the one that gets changed the least) some of the tests are suddenly failing - all with the same error message:
...
1
vote
1
answer
1k
views
Batch method making callout: uncommitted work pending
My app is an SMS lightning component, so in many situations, I'm doing DML updates AND making a callout. I have avoided the "uncommitted work pending" errors by using @future (callout=true) on all the ...