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
tdevmantdevman 

error log object test method

Gunners_23Gunners_23

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.

tdevmantdevman

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?