Skip to main content
 

Symptoms

 

When an end user opens a task that has been actioned the below error is seen. This is common with Task that get assigned to multiple destinations but only requires one or more to action the item to complete it. Developers might want to replace this OOTB message with something more user friendly.

 

 

 

12941i9EADADF96A0339F8.png

 

 

 

 

 

Solution

 
    • Find the Form used for the task as well as the form state the task uses.
 
    • Edit the form > Ensure you select the STATE used by the Workflow Task Event and edit the “When the Form is Initializing rule”
 

16017i04DD934A713D9B04.png

 
    • When the form is Initializing there is a check if the current workflow activity is a specific activity this is where it will fail if a user opens a task that has been actioned. Directly underneath that rule add the following.
 
    • Condition > Error occurred
 
    • In the condition add an Action > show a message to the user
 
    • Below this add Acton > stop rule execution
 

15380i11175BA7483870FA.png

 

With this configuration the OOTB Error message will not be shown and instead it will show the message configured and is fully customizable.

 

 

 

11367iEFD6C6352CB407A6.png

Hello,

 

In case the task is allocated to some other person, can we display to whom is it assigned to?

This will help if a team is working on something & some other person in the team wants to take control of that ticket/request (SN).

 

Rgds,

Nirav


If I'm not mistaken, any error that occurs when the form initializes will get picked up by this event. It seems a little dangerous to catch all errors and assume they are because the task has been picked up already.


Hi   @dustinaleksiuk,

 

We can filter out with error message code '24411' to filter out such errors.


Reply