function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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