So I have had this blog post on my "to do list" for some time now and the list is now beginning to get scroll bars so I have to tackle it! I have seen a lot of questions posted on the community (and asked in my workplace) about workflows incurring an error without much detail as to why this has happened. The thing that I would always offer to anyone with these problems is to use the inbuilt error handing within Nintex workflow actions wherever possible. Why? Well a number of reasons actually:
My understanding of the Nintex workflow actions is that the following all have error handling in their configuration (please correct me if I have missed any):
All of the above actions have in-built error handling available in the configuration of the workflow actions. Error handling looks like this in the workflow action:
By default it will be set to capture errors = No. You have three choices here if you want to catch errors:
So to use these options you need to create some variables to store this information. I normally create a Boolean (yes/no) variable and a single line of text variable and configure my error handling as follows:
Note be sure to change "Capture errors" to Yes.
Well this is a very personal thing and entirely depends upon the design of your solution as to whether the error is a deal breaker or just something to be made aware of. Generally if it's not a big deal I have a piece of my workflow directly after the action as follows:
This way the workflow will continue but I will be notified of the error returned.
If it is a deal breaker error, I would normally add an "End workflow" in that "Run if" after the email.
By default the initiator will be notified if the workflow errors and has a status of "Error Occurred". If this is not acceptable to you (which it never is to me), you can change these setting by navigating to Site Settings > Nintex Workflow > Workflow error notifications
Here I would change "Send notifications to the workflow initiator" to "No" and specify alternative email addresses to be notified instead.
I am interested to hear from you guys... how do you deal with errors? Do you use this built in error handling functionality? What do you do when an error occurs?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.