# Error Handling - Containers vs. Component

**URL:** <https://forum.knime.com/t/error-handling-containers-vs-component/82329>\
**Category:** KNIME Analytics Platform\
**Tags:** workflow\
**Created:** [August 27, 2024, 9:37am UTC](https://forum.knime.com/t/error-handling-containers-vs-component/82329 "2024-08-27T09:37:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vstefano](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/v/bbce88/32.png) [@vstefano](https://forum.knime.com/u/vstefano)\
**Post date:** [August 27, 2024, 9:37am UTC](https://forum.knime.com/t/error-handling-containers-vs-component/82329/1 "2024-08-27T09:37:57Z")

</div>

Good morning,  
I have a flow with two containers and an error flow control (try data port/catch errors).  
Using the two containers the flow does not work. If I transform the two containers in a component, then it workds (I understand that the component is considered as a unique node hence this is why it works).

But I keep not understanding why I am forced to create the component if I have inserted the error check before the first container. It should work in both cases.

I am just curious to understand the technical reason behind it.

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

---

<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:** [August 27, 2024, 10:18am UTC](https://forum.knime.com/t/error-handling-containers-vs-component/82329/2 "2024-08-27T10:18:12Z")

</div>

@vstefano this is a know problem and there is a ticket for it ([AP-5069](https://forum.knime.com/search?q=AP-5069%20order%3Alatest))

> [@Try-Catch: Active Scope End node in inactive branch not allowed](https://forum.knime.com/t/try-catch-active-scope-end-node-in-inactive-branch-not-allowed/82010/5):
>
> This seems to have been around for some time then …

> [@Understanding Problem Error Handling Loop](https://forum.knime.com/t/understanding-problem-error-handling-loop/38402/3):
>
> @robbsen OK I think I built something you might be able to work with. The important points are: encapsulate your loop in a component. Otherwise KNIME seems to have a problem to identify the Try-Catch block provide an empty table with the same structure as the one you want to collect at the end of a loop. I think you also could just use one table with one column and allow changing data structures in your Loop-End (you might have to clean that up later) I have not fully worked out the use of the…

---

<div class="post-metadata">

**Author:** ![system](https://forum-cdn.knime.com/uploads/default/original/1X/ab3ccf34482a0329361734a18199390177204f15.png) [@system](https://forum.knime.com/u/system)\
**Post date:** [September 3, 2024, 10:18am UTC](https://forum.knime.com/t/error-handling-containers-vs-component/82329/3 "2024-09-03T10:18:14Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
