You need to sign in to do that
Don't have an account?
MIXED_DML_OPERATION messing up my test
So - I'm running into one of those cases where my logic and class works fine, but the test gives me grief - I'm sure I'm not the only one experiencing that from time to time.
Anyway - the code and test is in here:
http://pastebin.com/m3ac3e655
This messes up my test thusly:
System.DmlException: Update failed. First exception on row 0 with id 005R0000000RjIfIAK; first error: MIXED_DML_OPERATION, DML operation on setup object is not permitted after you have updated a non-setup object (or vice versa): User, original object: Case
I saw some posts mentioning this as a SFDC bug, but I found no workarounds anywhere. Can anyone help? Thanks.
All Answers
Hi Osaman,
Thanks for your post to the above error.