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
Zabi MohammedZabi Mohammed 

Test Case for After Insert Trigger

Hi all,

  I am facing an issue with test case in my trigger i am inserting the cheld object when i am going to insert the cheld object in test case it is getting 
"System.DmlException: Insert failed. First exception on row 0; first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY" the error the trigger is on parent object. plese help me on this

Thanks and Regards,
zabi
surasura
could you sahre  trigger and test class code