I have a few apex test class, that pass when i run them while deploying a change set, but when i run them from the setup, in "Apex Test Execution", they fail with the error MIXED_DML_OPERATION (the reason this error pops is because we have a user workflow that does an unnecessary update)

Why the errors don't appear in deployment?

up vote 5 down vote accepted

During deployment, Mixed DML operations checks are skipped. Here is a knowledge article regarding this: https://help.salesforce.com/articleView?id=000231160&type=1

  • 1
    Thanks a lot!!! – Dana Griff Oct 18 at 8:50

Your Answer

 
discard

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.