+ Start a Discussion

error log object test method


I'm not sure (its my assumption of what happening), but i think the reason might be, in UI "Inactive" Users are not searchable


i.e. users wont be visible when you're looking for users. So i guess at the time of intitaion it won't be checking for the Users


who are inactive, but at the time of Insertion it checks for the User and finds it Inactive. So for After Trigger it throws Exception.


This make sense but I just can't seem to reproduce any type of error which sounds good, but I have to try to recreate a dml exception so i can pass my coverage on the error log. There must be something i can on this before insert/update.  thoughts?