Wrapped metanodes in inactive branches stop the workflow

Dear KNIMErs,
I’m facing again and again the problem related with wrapped metanodes in inactive branches very well described here. The problems deals with the fact that sometimes (depending on how their flow variables are defined) wrapped metanodes in inactive branches stop the execution of the workflow and this is very annoying. Does anybody know if this problem is solved in KNIME 4.0? (I’m still using KNIME 3.7.1).

1 Like

Hi Gio,

No, unfortunately, the problem hasn’t solved in 4.0.1. Although renamed to Components Wrapped Metanodes still behave as described in the post you referred to. I’ve just confirmed it just after I had installed KNIME Analytics Platform 4.0.1.

Here you can see my workflow.

This is a configuration of the node that introduces a variable which is to be used as a quick form parameter.

Next is a configuration of the component.


And this is what happens if we make the branch containing the component and the node that produces the flow variable component’s quick form configuration depends on.


And a full IDE log output the execution produced (set to DEBUG as obvious).

2019-09-12 10:23:41,754 DEBUG NodeContainerEditPart            Metanode 4:6 (IDLE)
2019-09-12 10:23:48,115 DEBUG NodeContainer                   String Manipulation (Variable) 4:3 has new state: CONFIGURED_MARKEDFOREXEC
2019-09-12 10:23:48,123 DEBUG NodeContainer                   String Manipulation (Variable) 4:3 has new state: CONFIGURED_QUEUED
2019-09-12 10:23:48,123 DEBUG NodeContainer                   CASE Switch Variable (Start) 4:1 has new state: CONFIGURED_MARKEDFOREXEC
2019-09-12 10:23:48,123 DEBUG NodeContainer                   String Manipulation (Variable) 4:5 has new state: CONFIGURED_MARKEDFOREXEC
2019-09-12 10:23:48,123 DEBUG NodeContainer                   Metanode 4:6 has new state: UNCONFIGURED_MARKEDFOREXEC
2019-09-12 10:23:48,123 DEBUG NodeContainer                   CASE Switch Variable (End) 4:2 has new state: UNCONFIGURED_MARKEDFOREXEC
2019-09-12 10:23:48,124 DEBUG NodeContainer                   Wrapped Metanode in Inactive Branch 4 has new state: EXECUTING
2019-09-12 10:23:48,124 DEBUG String Manipulation (Variable) 4:3        String Manipulation (Variable) 4:3 doBeforePreExecution
2019-09-12 10:23:48,124 DEBUG String Manipulation (Variable) 4:3        String Manipulation (Variable) 4:3 has new state: PREEXECUTE
2019-09-12 10:23:48,124 DEBUG String Manipulation (Variable) 4:3        String Manipulation (Variable) 4:3 doBeforeExecution
2019-09-12 10:23:48,124 DEBUG String Manipulation (Variable) 4:3        String Manipulation (Variable) 4:3 has new state: EXECUTING
2019-09-12 10:23:48,124 DEBUG String Manipulation (Variable) 4:3        Adding handler ccfc2e9c-a555-48f7-9a38-e13772d41101 (String Manipulation (Variable) 4:3: <no directory>) - 1 in total
2019-09-12 10:23:48,124 DEBUG String Manipulation (Variable) 4:3        String Manipulation (Variable) 4:3 Start execute
2019-09-12 10:23:48,124 DEBUG NodeContainer                   ROOT  has new state: EXECUTING
2019-09-12 10:23:48,125 INFO  String Manipulation (Variable) 4:3        String Manipulation (Variable) 4:3 End execute (0 secs)
2019-09-12 10:23:48,125 DEBUG String Manipulation (Variable) 4:3        String Manipulation (Variable) 4:3 doBeforePostExecution
2019-09-12 10:23:48,125 DEBUG String Manipulation (Variable) 4:3        String Manipulation (Variable) 4:3 has new state: POSTEXECUTE
2019-09-12 10:23:48,127 DEBUG String Manipulation (Variable) 4:3        String Manipulation (Variable) 4:3 doAfterExecute - success
2019-09-12 10:23:48,127 DEBUG String Manipulation (Variable) 4:3        String Manipulation (Variable) 4:3 has new state: EXECUTED
2019-09-12 10:23:48,129 DEBUG CASE Switch Variable (Start) 4:1        Configure succeeded. (CASE Switch Variable (Start))
2019-09-12 10:23:48,129 DEBUG String Manipulation (Variable) 4:3        CASE Switch Variable (Start) 4:1 has new state: CONFIGURED_QUEUED
2019-09-12 10:23:48,131 DEBUG CASE Switch Variable (Start) 4:1        CASE Switch Variable (Start) 4:1 doBeforePreExecution
2019-09-12 10:23:48,133 DEBUG CASE Switch Variable (Start) 4:1        CASE Switch Variable (Start) 4:1 has new state: PREEXECUTE
2019-09-12 10:23:48,133 DEBUG CASE Switch Variable (Start) 4:1        CASE Switch Variable (Start) 4:1 doBeforeExecution
2019-09-12 10:23:48,133 DEBUG CASE Switch Variable (Start) 4:1        CASE Switch Variable (Start) 4:1 has new state: EXECUTING
2019-09-12 10:23:48,133 DEBUG CASE Switch Variable (Start) 4:1        Adding handler db578761-9137-47ba-9c01-129fca3187ac (CASE Switch Variable (Start) 4:1: <no directory>) - 2 in total
2019-09-12 10:23:48,133 DEBUG CASE Switch Variable (Start) 4:1        CASE Switch Variable (Start) 4:1 Start execute
2019-09-12 10:23:48,135 INFO  CASE Switch Variable (Start) 4:1        CASE Switch Variable (Start) 4:1 End execute (0 secs)
2019-09-12 10:23:48,135 DEBUG CASE Switch Variable (Start) 4:1        CASE Switch Variable (Start) 4:1 doBeforePostExecution
2019-09-12 10:23:48,135 DEBUG CASE Switch Variable (Start) 4:1        CASE Switch Variable (Start) 4:1 has new state: POSTEXECUTE
2019-09-12 10:23:48,143 DEBUG CASE Switch Variable (Start) 4:1        CASE Switch Variable (Start) 4:1 doAfterExecute - success
2019-09-12 10:23:48,144 DEBUG CASE Switch Variable (Start) 4:1        CASE Switch Variable (Start) 4:1 has new state: EXECUTED
2019-09-12 10:23:48,146 DEBUG CASE Switch Variable (Start) 4:1        String Manipulation (Variable) 4:5 has new state: IDLE
2019-09-12 10:23:48,146 DEBUG CASE Switch Variable (Start) 4:1        String Manipulation (Variable) 4:5 has new state: CONFIGURED_MARKEDFOREXEC
2019-09-12 10:23:48,147 DEBUG CASE Switch Variable (Start) 4:1        String Manipulation (Variable) 4:5 has new state: CONFIGURED_QUEUED
2019-09-12 10:23:48,150 WARN  Metanode             4:6        Errors overwriting node settings with flow variables: Unknown variable "metanode_input"
2019-09-12 10:23:48,188 DEBUG String Manipulation (Variable) 4:5        String Manipulation (Variable) 4:5 doBeforePreExecution
2019-09-12 10:23:48,188 DEBUG String Manipulation (Variable) 4:5        String Manipulation (Variable) 4:5 has new state: PREEXECUTE
2019-09-12 10:23:48,188 DEBUG String Manipulation (Variable) 4:5        String Manipulation (Variable) 4:5 doBeforeExecution
2019-09-12 10:23:48,188 DEBUG String Manipulation (Variable) 4:5        String Manipulation (Variable) 4:5 has new state: EXECUTING
2019-09-12 10:23:48,188 DEBUG String Manipulation (Variable) 4:5        Adding handler f97cd3ef-e934-4ee7-b2c9-308567c7cb62 (String Manipulation (Variable) 4:5: <no directory>) - 3 in total
2019-09-12 10:23:48,188 DEBUG String Manipulation (Variable) 4:5        String Manipulation (Variable) 4:5 Start execute
2019-09-12 10:23:48,188 INFO  String Manipulation (Variable) 4:5        String Manipulation (Variable) 4:5 End execute (0 secs)
2019-09-12 10:23:48,188 DEBUG String Manipulation (Variable) 4:5        String Manipulation (Variable) 4:5 doBeforePostExecution
2019-09-12 10:23:48,188 DEBUG String Manipulation (Variable) 4:5        String Manipulation (Variable) 4:5 has new state: POSTEXECUTE
2019-09-12 10:23:48,188 DEBUG String Manipulation (Variable) 4:5        String Manipulation (Variable) 4:5 doAfterExecute - success
2019-09-12 10:23:48,188 DEBUG String Manipulation (Variable) 4:5        String Manipulation (Variable) 4:5 has new state: EXECUTED
2019-09-12 10:23:48,188 WARN  Metanode             4:6        Errors overwriting node settings with flow variables: Unknown variable "metanode_input"
2019-09-12 10:23:48,190 DEBUG String Manipulation (Variable) 4:5        Metanode 4:6 has new state: CONFIGURED_QUEUED
2019-09-12 10:23:48,195 DEBUG Metanode             4:6        Metanode 4:6 doBeforePreExecution
2019-09-12 10:23:48,195 DEBUG Metanode             4:6        Metanode 4:6 has new state: PREEXECUTE
2019-09-12 10:23:48,195 DEBUG Metanode             4:6        Metanode 4:6 doBeforeExecution
2019-09-12 10:23:48,195 DEBUG Metanode             4:6        Metanode 4:6 has new state: EXECUTING
2019-09-12 10:23:48,195 DEBUG Metanode             4:6        Metanode 4:6 Start execute
2019-09-12 10:23:48,195 DEBUG Metanode             4:6        Component Input 4:6:0:5 has new state: UNCONFIGURED_MARKEDFOREXEC
2019-09-12 10:23:48,195 DEBUG Metanode             4:6        Component Input 4:6:0:5 has new state: IDLE
2019-09-12 10:23:48,195 DEBUG Metanode             4:6        String Input 4:6:0:8 has new state: UNCONFIGURED_MARKEDFOREXEC
2019-09-12 10:23:48,195 DEBUG Metanode             4:6        String Input 4:6:0:8 has new state: IDLE
2019-09-12 10:23:48,195 DEBUG Metanode             4:6        Component Input 4:6:0:5 has new state: UNCONFIGURED_MARKEDFOREXEC
2019-09-12 10:23:48,195 DEBUG Metanode             4:6        Component Input 4:6:0:5 has new state: IDLE
2019-09-12 10:23:48,195 DEBUG Metanode             4:6        String Input 4:6:0:8 has new state: UNCONFIGURED_MARKEDFOREXEC
2019-09-12 10:23:48,195 DEBUG Metanode             4:6        String Input 4:6:0:8 has new state: IDLE
2019-09-12 10:23:48,195 DEBUG Metanode             4:6        Component Input 4:6:0:5 has new state: UNCONFIGURED_MARKEDFOREXEC
2019-09-12 10:23:48,195 DEBUG Metanode             4:6        Component Input 4:6:0:5 has new state: IDLE
2019-09-12 10:23:48,195 DEBUG Metanode             4:6        String Input 4:6:0:8 has new state: UNCONFIGURED_MARKEDFOREXEC
2019-09-12 10:23:48,195 DEBUG Metanode             4:6        String Input 4:6:0:8 has new state: IDLE
2019-09-12 10:23:48,196 DEBUG Metanode             4:6        Component Input 4:6:0:5 has new state: UNCONFIGURED_MARKEDFOREXEC
2019-09-12 10:23:48,196 DEBUG Metanode             4:6        Component Input 4:6:0:5 has new state: IDLE
2019-09-12 10:23:48,196 DEBUG Metanode             4:6        String Input 4:6:0:8 has new state: UNCONFIGURED_MARKEDFOREXEC
2019-09-12 10:23:48,196 DEBUG Metanode             4:6        String Input 4:6:0:8 has new state: IDLE
2019-09-12 10:23:48,196 DEBUG Metanode             4:6        Metanode 4:6 doBeforePostExecution
2019-09-12 10:23:48,196 DEBUG Metanode             4:6        Metanode 4:6 has new state: POSTEXECUTE
2019-09-12 10:23:48,196 DEBUG Metanode             4:6        Metanode 4:6 doAfterExecute - failure
2019-09-12 10:23:48,197 DEBUG Metanode             4:6        CASE Switch Variable (End) 4:2 has new state: IDLE
2019-09-12 10:23:48,197 DEBUG Metanode             4:6        Metanode 4:6 has new state: IDLE
2019-09-12 10:23:48,197 WARN  Metanode             4:6        Errors overwriting node settings with flow variables: Unknown variable "metanode_input"
2019-09-12 10:23:48,198 DEBUG Metanode             4:6        Wrapped Metanode in Inactive Branch 4 has new state: IDLE
2019-09-12 10:23:48,199 DEBUG NodeContainer                   ROOT  has new state: IDLE
2019-09-12 10:23:48,220 DEBUG NodeTimer$GlobalNodeStats            Successfully wrote node usage stats to file: /Users/jan/workspace/ders/pvap-etl/.metadata/knime/nodeusage_3.0.json

I’m attaching a screenshot of my workflow with node IDs on to make it easier to decode which log entry belongs to which node.

Also, I’m attaching an export of my workflow.
Wrapped Metanode in Inactive Branch.knwf (19.9 KB)

And this is installation details info of my KNIME AP.

1 Like

Dear Jan,
Thank you for your reply! The workaround you suggested in your post mentioned in my first message it works but this standard behavior of the wrapped metanodes is very annoying.
Someone at KNIME knows if this bug is going to be solved in the next versions?
Thank you in advance
Gio

1 Like

Hi there @gcincilla, @jan_lender,

I have reported it and will keep you posted.

Tnx for engaging!

Br,
Ivan

2 Likes

Hi Ivan,
That’s a great! Thanks a lot for reporting and keeping this thread updated.
Best,
Gio

I’ve just tested KNIME 4.1.1 but it seems that this bug has not been solved still. I don’t understand why this problem has not been reported by more people. I find it rather basic. In practice for every wrapped metanode that may appear in an inactive branch, I have to apply the workaround suggested by @jan_lender, but that it’s rather uncomfortable.
@ipazin, do you please have any news about when this will be solved?
Thanks in advance!
Gio

Hi there @gcincilla,

this has been solved and can be tested with KNIME nightly build. Will be part of 4.2.0.

Br,
Ivan

3 Likes

Hi @ipazin, that’s great!
Thank you very much. That’s a really good news. In which of the packages it is?
Perhaps do you know even when 4.2.0 is scheduled to be released in the official stable version?
Best,
Gio

Hi @gcincilla,

that would be summer (some time July) release :slight_smile:

Package? The ones available from download site I linked.

Br,
Ivan

2 Likes

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