You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I added a flow Custom Error any time an Action Plan task is being deleted (this is on the Task object)... here's what I got:
User tries to edit the name of an Action Plan
User never clicked a DELETE button
User gets the error bullets below
[Custom Error] You cannot delete an Action Plan Task! If you weren't deleting a Task when you saw this message, please send a link to this task to [IT email address].
[Apex Error] Error when deleting newly-dependent Task related to APTaskTemplate: Delete failed. First exception on row 0 with id 00T2R00006RkNzDUAV; first error: FIELD_INTEGRITY_EXCEPTION, You cannot delete an Action Plan Task! If you weren't deleting a Task when you saw this message, please send a link to this task to [IT email address].: []
[Apex Error] LabsActionPlans.APTask: execution of AfterUpdate caused by: System.DmlException: Upsert failed. First exception on row 0 with id 00T2R00006RkNzCUAV; first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, LabsActionPlans.APTask: execution of AfterUpdate caused by: System.DmlException: Upsert failed. First exception on row 0 with id a2h2R0000057PbwQAE; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, Error when deleting newly-dependent Task related to APTaskTemplate: Delete failed. First exception on row 0 with id 00T2R00006RkNzDUAV; first error: FIELD_INTEGRITY_EXCEPTION, You cannot delete an Action Plan Task! If you weren't deleting a Task when you saw this message, please send a link to this task to [IT email address].: []: [] (LabsActionPlans): [] (LabsActionPlans)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
So I added a flow Custom Error any time an Action Plan task is being deleted (this is on the Task object)... here's what I got:
[Custom Error] You cannot delete an Action Plan Task! If you weren't deleting a Task when you saw this message, please send a link to this task to [IT email address].
[Apex Error] Error when deleting newly-dependent Task related to APTaskTemplate: Delete failed. First exception on row 0 with id 00T2R00006RkNzDUAV; first error: FIELD_INTEGRITY_EXCEPTION, You cannot delete an Action Plan Task! If you weren't deleting a Task when you saw this message, please send a link to this task to [IT email address].: []
[Apex Error] LabsActionPlans.APTask: execution of AfterUpdate caused by: System.DmlException: Upsert failed. First exception on row 0 with id 00T2R00006RkNzCUAV; first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, LabsActionPlans.APTask: execution of AfterUpdate caused by: System.DmlException: Upsert failed. First exception on row 0 with id a2h2R0000057PbwQAE; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, Error when deleting newly-dependent Task related to APTaskTemplate: Delete failed. First exception on row 0 with id 00T2R00006RkNzDUAV; first error: FIELD_INTEGRITY_EXCEPTION, You cannot delete an Action Plan Task! If you weren't deleting a Task when you saw this message, please send a link to this task to [IT email address].: []: [] (LabsActionPlans): [] (LabsActionPlans)
Beta Was this translation helpful? Give feedback.
All reactions