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? Jan 30, 2019 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, 2019 at 18:21


You must log in to answer this question.

Browse other questions tagged .