E2CP Trigger Error: Errors occurred during the case update call of the Most Recent Public Comment trigger
Symptoms
Emails like the below are sent to the email address specified in the Apex Email Service for Error Routing indicating that a trigger failed to run. Errors occurred during the case update call of the Most Recent Public Comment trigger.
Failure Case Ids: 500xxxxxxxxxxxxxxx
ENTITY_IS_LOCKED: the entity is locked for editing - or - CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY: ClassNameHere: execution of AfterUpdate - or - A multitude of other Salesforce configuration related errors. |
Solutions
Ideally, the root cause of the error should be addressed. For example, making sure a validation rule isn't violated. In some instances like Approval Process locks, it is not possible to avoid the error from occurring, but you can suppress the error notification. The trigger updates the Most Recent Public Comment and Case History Text fields that are typically used in email templates. When the trigger fails, these fields will fail to be updated, but this may not matter if they are unused. To disable the alert emails, please contact Internet Creations support. |