Skip to main content
added 312 characters in body
Source Link
Adrian Larson
  • 151.3k
  • 38
  • 247
  • 431

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 iI create a work order on an expired entitlement, iI am seeing a Different message and iI Don't think it is an error as iI am not being notified about it by Salesforce.

The following isI encounter the following error i am seeing. enter image description here:

Error: Invalid Data. Review all error messages below to correct your data. Apex trigger sm1e.WorkOrderTrigger caused an unexpected exception, contact your administrator: sm1e.WorkOrderTrigger: execution of AfterInsert caused by: System.DmlException: Insert failed. First exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, Work order cannot be updated, since Entitlement of this work order is not active.: []: (sm1e)

Can someone tell me whatWhat changes do iI need to make?

Thanks

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

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.

I encounter the following error:

Error: Invalid Data. Review all error messages below to correct your data. Apex trigger sm1e.WorkOrderTrigger caused an unexpected exception, contact your administrator: sm1e.WorkOrderTrigger: execution of AfterInsert caused by: System.DmlException: Insert failed. First exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, Work order cannot be updated, since Entitlement of this work order is not active.: []: (sm1e)

What changes do I need to make?

Source Link

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