cancel
Showing results for 
Search instead for 
Did you mean: 
Workflow Hero

How to avoid error in send message action to deleted user?

Is there a solution for workflow errors that occur when a send message action can't be completed because the person adressed has resigned from the company and the user account has been deleted from the AD? 

For instance, in our organization we have workflows that run for longer periods of time (9 to 12 months) and that send a confirmation message when all actions have been completed. If one of the addressed users (4 in total) has left the organization in the meantime, the workflow will error on this step and has to be terminated. This actually happens a lot!

 

Tasks can be delegated so the workflow can continue. It seems like such a waste to have an almost completed workflow error on the very last step of sending out a confirmation message. Does anybody have a solution to this? Maybe a run if action that will only send the message to active users? (I don't quite know how to go about configuring this.) Or does Nintex somehow offer the option to not error the workflow when a send message action can't be completed?

Labels: (2)
0 Kudos
Reply
3 Replies
Workflow Hero

Re: How to avoid error in send message action to deleted user?

Hi Yvette,

Did you tried that?

https://community.nintex.com/community/build-your-own/blog/2017/03/02/error-handling-in-nintex-workf...

Normally, a Boolean returns Yes if there is an error and you can use a Run If action to evaluate this value.

You can also capture the error message but I understand that you need a more generic solution.

Regards,

Christophe

0 Kudos
Accept as Solution Reply
Workflow Hero

Re: How to avoid error in send message action to deleted user?

Hi ‌,

The best tip I can give you is: Do not have long running workflows, and 9-12 months IS a long running workflow.

I know this does not help you directly, but it is a best practice. The situation you described is one of the reasons not to have long running workflows.

Cheers,

Rick

Accept as Solution Reply
Workflow Hero

Re: How to avoid error in send message action to deleted user?

have a look on this topic  

it suggests two approaches that can be combined

- governance - do not delete user account immediately once the user leaves company

- make a proof check with LDAP query whether user account exists first

0 Kudos
Accept as Solution Reply