0

Via Process Builder, Is there anything I can do in my process that could stop this from occurring?

Error Message:

System.EmailException: SendEmail failed. First exception on row 0; first error: MIXED_DML_OPERATION, DML operation on setup object is not permitted after you have updated a non-setup object (or vice versa): EmailMessage, original object: User: 
  • 2
    can you add code of test class as well? – Pranay Jaiswal Jan 30 at 18:19
  • I don't want to change the test class code. Is there anything criteria-wise or scheduled-action wise that would stop this error from occuring? – Mr.Smith Jan 30 at 18:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.