# Try - Catch Error Node in loop

**URL:** <https://forum.knime.com/t/try-catch-error-node-in-loop/40109>\
**Category:** KNIME Analytics Platform\
**Created:** [February 24, 2022, 3:40am UTC](https://forum.knime.com/t/try-catch-error-node-in-loop/40109 "2022-02-24T03:40:35Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [February 24, 2022, 7:55am UTC](https://forum.knime.com/t/try-catch-error-node-in-loop/40109/2 "2022-02-24T07:55:51Z")

</div>

@kritsapatw you will need to provide the non-failing path with an alternative (empty table of the same structure).

> [@Error handling (Try - Catch Error) Design Question](https://forum.knime.com/t/error-handling-try-catch-error-design-question/20087/10):
>
> OK, so constructed a workaround that could catch the error. I stripped the (very large) example down to a core Metanode where the error occurs. I built an error catcher around that has an alternative table which is deliberately empty but has the same structure as the result. Outside the loop there now is ab End IF node that would take the populated result but insights that both inputs have the same structure. The result from ‘Component A’ is empty due to the caught error so Component …

> **[Catch an error in an optimization loop and continue (Forum 38402) – mlauber71](https://hub.knime.com/mlauber71/spaces/Forum/2021/kn_forum_38402_try_catch_loop_error_and_continue~6fxrWvQKe77uykYZ/current-state)**
>
> Catch an error in an optimization loop and continue (Forum 38402) The important points are: - encapsulate your loop in a component. Otherwise KNIME seems to ha…

If you want to just coninue after a fail you will need a different Catch node (the one that catches flow variable errors):

> **[This workflow demonstrates how to use the new Excel Reader and path variables...](https://hub.knime.com/mlauber71/spaces/Public/kn_example_excel_new_node_list_files_sheets_skip_missing~1QOuiaGPrhLLEHnq/current-state)**
>
> This workflow demonstrates how to use the new Excel Reader and path variables and read Excel sheets and skip a step when a file is missing There seems to be so…

also:

> [@Knime 4.4 Cant merge variable stacks! (likely a loop problem)](https://forum.knime.com/t/knime-4-4-cant-merge-variable-stacks-likely-a-loop-problem/38773/4):
>
> @joshuash beside what @Thyme is saying these things come to my mind: (especially) with nested loops it can make sense to use Metanodes in order to make sure what part of the loop will do what and how they are wired. You can check „select sope“ by right clicking on the Loop node and see how KNIME would interpret the wiring. it might very well be necessary to check the logic behind the loop and if it would work in every constellation. It might be necessary to provide a dummy table of the same st…

---

_[View the full topic](https://forum.knime.com/t/try-catch-error-node-in-loop/40109)._
