cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
alice_oneill
Nintex Newbie

Error handling

Jump to solution

MS Flow has a very useful "Configure run after" action that you can configure to run if there is an error in the flow. I can't find anything similar in Nintex Workflow Cloud - how can I get it to alert me if a workflow fails?

Labels: (1)
0 Kudos
Reply
5 Replies
Nintex Employee
Nintex Employee

Re: Error handling

Jump to solution

Hi Alice,

 

Apologies for the late response, hopefully you've found your answer in the mean time!

 

In case you haven't already, with administrator access:

Head to Settings > Alerts (https://[yourtenant].workflowcloud.com/dashboard/settings/alerts) to set up alerts when workflow instances fail, and the intended audience.

 

Hope this helps!

0 Kudos
Reply
Community Manager Community Manager
Community Manager

Re: Error handling

Jump to solution

So just gonna be honest here. Building a workflow to run after it fails is building a poorly designed workflow. 

 

Of course you can't design for every use case so error handling is good, but in theory you'd want to build the workflow to fail gracefully, or end in completion by doing something other than just failing. Also alerts can be setup such that if a workflow does fail, then you can get notified to look into that.

0 Kudos
Reply
Bards
Nintex Newbie

Re: Error handling

Jump to solution

I'm here looking for an answer to the same, and I don't think it's necessarily about a poorly designed workflow.

In my case I ask a user if they are an employee or not and if so, ask for an employee ID. With that ID I can query Azure AD to pull info rather than ask the user to provide detail on 10 questions I already have data for. But what if the user enters an employee ID that the AAD query returns zero results for?

0 Kudos
Reply
Community Manager Community Manager
Community Manager

Re: Error handling

Jump to solution

@Bards Is the information part of the form or the user profile? Two ways I would do this. First I would capture the info in the form and use UPS to see if the user exists. That just a soft check.

 
For the workflow, I would run a query against AD and return it to a variable which I believe will be a collection. Then do a run if against the collection to see if it's empty. If not empty run with it. If empty, either search with the name or send a request data to have them submit another ID.
 
You could run this as a state machine and go back and forth between states until you get a valid ID.
 
Hope that helps. 

View solution in original post

Reply
Bards
Nintex Newbie

Re: Error handling

Jump to solution

This is NWC - is it even possible to to a UPS check before the data hits SharePoint? If so, I would love to know how. Also, just to be clear, the reason I ask for an Employee ID to query AAD with is because the NWC form needs to be available to non-authenticated users, some of which don't have such an ID.

 

Your second suggestion however is on the money and is what I did: write values from the AAD Query to a collection, check if the collection is empty and if so then take WF Path B (rather than Path A).

0 Kudos
Reply