Skip to main content
1 of 2

Trigger causing an unexpected Exception while inserting a record in to the Object

I have a trigger and a part of the trigger acts as a validation rule and it will fire an validation message whenever a user tries to create a Work order on an Expired entitlement. So now I don't see any error in trigger's Helper class but when i create a work order on an expired entitlement, i am seeing a Different message and i Don't think it is an error as i am not being notified about it by Salesforce.

The following is the error i am seeing. enter image description here

Can someone tell me what changes do i need to make?

Thanks