# How to reset and execute workflow automatically if...?

**URL:** <https://forum.knime.com/t/how-to-reset-and-execute-workflow-automatically-if/87347>\
**Category:** KNIME Analytics Platform\
**Created:** [March 26, 2025, 6:45pm UTC](https://forum.knime.com/t/how-to-reset-and-execute-workflow-automatically-if/87347 "2025-03-26T18:45:57Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![mlauber71](https://forum-cdn.knime.com/user_avatar/forum.knime.com/mlauber71/32/73590_2.png) [@mlauber71](https://forum.knime.com/u/mlauber71)\
**Post date:** [March 27, 2025, 3:16am UTC](https://forum.knime.com/t/how-to-reset-and-execute-workflow-automatically-if/87347/7 "2025-03-27T03:16:51Z")

</div>

@mmrostami can you try and adapt this example where a process runs several times until success.

> [@Put partially failing CSV Reader in a Loop Until Successful execution](https://forum.knime.com/t/put-partially-failing-csv-reader-in-a-loop-until-successful-execution/82211/4):
>
> @alfo19972 I created a sample workflow. The construct in fact is not as easy as I thought … What goes into the Component is a Flow Variable with a Path “var\_my\_file” that would point to the CSV file. The configuration would allow to specify how often the machine should try to open the file. If something fails it would wait one second and then try again. In order for the thing to work I have stored the results from the CSV in a temporary table that will be re-loaded at the …

Maybe wrap your loop around that. Also success can be a result actually written so it will not depend on possible problems with a node.

> **[Try - Catch, Loop until a job is finished – mlauber71](https://hub.knime.com/mlauber71/spaces/Examples/Try%20-%20Catch,%20Loop%20until%20a%20job%20is%20finished~KZqstnuTPmYnmcDk/current-state)**
>
> Try - Catch, Loop until a job is finished and record the trials

> **[Try - Catch, Recursive Loop to write a File to Google Sheets until success –...](https://hub.knime.com/mlauber71/spaces/Examples/Try%20-%20Catch,%20Recursive%20Loop%20to%20write%20a%20File%20to%20Google%20Sheets%20until%20success~XieydMNnGgaKoi1p/current-state)**
>
> Try - Catch - use Recursive Loop to write a File to Google Sheets until success

---

_[View the full topic](https://forum.knime.com/t/how-to-reset-and-execute-workflow-automatically-if/87347)._
