This error occurs when attempting to update a setup object and a non-setup object at the same time. For example updating the user object and a chatter group object:
MIXED_DML_OPERATION, DML operation on setup object is not permitted after you have updated a non-setup object (or vice versa):
To get around this use future method to call the non-setup object. @future
No comments:
Post a Comment