Loop Body wired incorrectly

Hi,

I’m having this error when running a loop made of the X-Partitioner node and the Loop End(2 ports):
"
KNIME-Worker-163-Loop End (2 ports) 3:3883 : : WorkflowManager : Loop End (2 ports) : 3:3883 : Loop Body wired incorrectly (Could not find matching loop start node (missing node annotation)!).
org.knime.core.node.workflow.IllegalLoopException: Could not find matching loop start node (missing node annotation)!
at org.knime.core.node.workflow.Workflow.getMatchingLoopStart(Workflow.java:1513)
at org.knime.core.node.workflow.WorkflowManager.doAfterExecution(WorkflowManager.java:3320)
at org.knime.core.node.workflow.NodeContainer.notifyParentExecuteFinished(NodeContainer.java:630)
at org.knime.core.node.workflow.NodeExecutionJob.internalRun(NodeExecutionJob.java:238)
at org.knime.core.node.workflow.NodeExecutionJob.run(NodeExecutionJob.java:117)
at org.knime.core.util.ThreadUtils$RunnableWithContextImpl.runWithContext(ThreadUtils.java:334)
at org.knime.core.util.ThreadUtils$RunnableWithContext.run(ThreadUtils.java:210)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at org.knime.core.util.ThreadPool$MyFuture.run(ThreadPool.java:123)
at org.knime.core.util.ThreadPool$Worker.run(ThreadPool.java:246)
Caused by: org.knime.core.node.workflow.IllegalScopeException: Could not find matching loop start node (missing node annotation)!
at org.knime.core.node.workflow.Workflow.getMatchingScopeStart(Workflow.java:1498)
at org.knime.core.node.workflow.Workflow.getMatchingLoopStart(Workflow.java:1511)
… 10 more
"
It appears only when I change the file that is being preprocessed for the loop. Before this error I uses a 990 rows file and after I changed the file with a 5600 rows it fails as I showed above. The problem still persists if I reduce the number of rows from 5600 to 990 rows on the larger file.

Thanks,
Mihai

Hello @mihais1,

are you saying that workflow shows above error depending on file being processed? Are you able to share workflow example? If data is confidential can you create dummy one?

Br,
Ivan

Hello @ipazin,

Sorry, the workflow and the data are confidential and I cannot share them. The workflow is very large with many metanodes.

It seems that this combination of loop nodes doesn’t like the file that is being read from within a component. The reading is done from a CSV file using the File Reader node and has 5600 rows.

But works well when the file is being read outside of any components as in the screenshot from below:

Thanks,
Mihai

Hello @mihais1,

to see if I got it right. So when the file is being read in Metanode “Training Set Processing” workflow always fails with “Loop Body wired…” message while if same file is being read from outside above mentioned metanode workflow executes just fine? Can you maybe create workflow example with dummy data that reproduces this issue?

And one more question. What exactly is use case with X-Partitioner in combination with Loop End and no nodes in between? :confused:

Br,
Ivan