If the user ID was input incorrectly into the template, or the user is no longer with the company, the workflow will terminate because the user is not found in the Active Directory. Can I add something to the workflow to allow the workflow to continue anyway?
Question
Question
No user was found in Active Directory [0247-WF1] - What activities can I add to bypass this error and continue the workflow without the Active Directory info?
Answer
You can add a Try-Catch around the activity reporting the error (is that a Find User activity?). In the Catch branch, you can add any activities you need to set the behavior you want for handling this case)
Replies
You can use the Try-Catch activity to catch that specific error and then act on it.
So, if the Try Branch succeeds without an error, then it will perform the Find User activity? If it fails, I can enter alternate activities? How will this work within a For Each Value activity? Will it Try-Catch for each value, or if one value fails will all values go through the catch branch?
Are you doing a For Each over each document and checking the user ID? You could put the Try-Catch inside the For Each and do the operations that you are expecting to fail inside the Try-Catch. Include the entire "success" path that you want to see. If nothing goes wrong, it will work fine and go to the next loop iteration. If it hits the Catch Branch, then it will only fail for that particular run of the loop. You can then do whatever you want inside the Catch Branch such as sending an email, and routing the document for correction.