How to restart a process from the last step that failed and not from the beginning

Lets say, there are multiple steps,

  1. Perform Action 1 - For eg. Add entry in SAP
  2. Perform Action 2
  3. Perform Action 3
  4. Perform Action 4. Success. Close SAP. Stop the process.

If my Bot fails at step 3, and during Queue auto retry it restarts the process from Step 1 - to add the entry in SAP. It created duplicate entries in the system.
Is there any way, I can track the steps completed. And during retry restart the process from failed step? Any help would be appreciated.

Thanks,
Sumit Tyagi

Hi @SumitTyagi1810
you can add a variable in the retry scope (e.g.: process_step = step3). And in your process you can set the workflow to skip actions 1,2 if the variable = step3.

In case the process stops at action 2 and you want to perform that as well, you can set variables at each action to structure your workflow.

I once asked for giving sequences variables to improve the structure but it would only be a smoother way of the solution described above.
New activity: Variable in sequence and flow charts - Feedback / Activities - UiPath Community Forum

Maybe I was not clear, by Retry I meant auto retry of Queue - Transaction Item (Retried->New)

@Yoichi Please help.

@PeCour thanks for linking my response to this. I had missed this topic :slight_smile:

@SumitTyagi1810
Sounds like what you are looking for is some way to save progress mid-way through. This should help you out:

If you look at the Supported Properties of the Queue Item you can access Progress value directly:

1 Like