+ Start a Discussion
sudhakar reddy 13sudhakar reddy 13 

What is MIXED_DML_OPERATION error in Salesforce?

Muthuraj TMuthuraj T

Hi,
It means you cannot perform DML on what salesforce calls setup objects(User in this case) and non-setup object in the same context.

Ref:

https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_dml_non_mix_sobjects.htm