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
Br1Br1 

"Mixed DML Exception" when i try to enable a customer portal user.

I am enabling a contact to be a Customer Portal User , i fill al the form fields, and when i press save this error shows up:

Mixed DML Exception

DML operation on setup object is not permitted after you have updated a non-setup object: Generic Exception Creator

Someone knows why it happens?

thanks in advance.
Br1
Br1Br1
I found the problem, this message shows up when you have a trigger on the User obj. , i keep this post to help.