Skip to main content

Questions tagged [mixed-dml]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
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() { //...
Md Talib's user avatar
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: ...
Semmel's user avatar
  • 2,553
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 ...
PatMcClellan__c's user avatar