salesforce · salesforce/MIXED_DML_OPERATION
MIXED_DML_OPERATION
Mixed DML Operation
Apex code attempted to perform DML on setup objects (such as User or Group) and non-setup objects in the same transaction. Salesforce disallows mixing these to avoid locking issues; separate them using @future or Queueable Apex.