try-catch - why is the variable missing outside?

Hi all,

I am a little confused why I don’t see a variable created inside a try catch if I use the variable version of the try-catch nodes, but if I use the table version it works as expected. I attached an example WF from KNIME 4.3.2

THX,
Lars
VariableTest.knwf (38.1 KB)

Variables created inside a try catch will stay in this space. In your lower example you did connect the String configuration to the catch node. This will forward the variable, but you cannot decide in the try catch which which variables are generated and which not.

However variables created before the try node can be changed inside the try catch.

If you change your workflow as below, you will see that the variable nodes work similarly to the table nodes.

5 Likes

Hi Iris,

I understand that now.

Thanks a lot!
Lars

2 Likes

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