# Error Handling within Table Row to Variable Loop Start

**URL:** <https://forum.knime.com/t/error-handling-within-table-row-to-variable-loop-start/77784>\
**Category:** KNIME Analytics Platform\
**Created:** [March 8, 2024, 10:04pm UTC](https://forum.knime.com/t/error-handling-within-table-row-to-variable-loop-start/77784 "2024-03-08T22:04:45Z")\
**Posts on this page:** 1\
**Showing post:** 5

<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 10, 2024, 5:09pm UTC](https://forum.knime.com/t/error-handling-within-table-row-to-variable-loop-start/77784/5 "2024-03-10T17:09:48Z")

</div>

@JGebhard I wanted to build a workflow that would do a try catch anyway. It does follow the model and would try to append sheets to an existing Excel file.

In the first instance of the outer loop a \_temp.table will be written that would contain the procedures and one could follow if the loop was successfil.

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/d/c/dcb47ec45cd3806ae7580437719684fee0a10de6.png)

Within the component an inner loop would try 10 times (you could adapt that) to finish the job. A Try Catch block would check if the operation was successful and fill a Flow Variable “success” with “y” or “n”.

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/e/a/ea8a5c60cd9a1a964122eddc9a79744e3a9446cf.png)

A [Variable Condition Loop End](https://hub.knime.com/knime/extensions/org.knime.features.base/latest/org.knime.base.node.meta.looper.condition.LoopEndConditionDynamicNodeFactory/) node will then stop the loop if the [Try](https://hub.knime.com/knime/extensions/org.knime.features.base/latest/org.knime.base.node.flowcontrol.trycatch.generictry.VariablePortTryNodeFactory/) [Catch](https://hub.knime.com/knime/extensions/org.knime.features.base/latest/org.knime.base.node.flowcontrol.trycatch.genericcatch.VariablePortCatchNodeFactory/) block was successful.

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/2/a/2a7b2da6c2ac390776bd1faf9aa72c05942a0068.png)

The results will be stored in the \_temp.table you could later check for the exact point(s) of problems and you might even use it to restart a loop for just the ones who failed.

> **[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

---

_[View the full topic](https://forum.knime.com/t/error-handling-within-table-row-to-variable-loop-start/77784)._
