Orphaned Nodes

I have a workflow comprised of approximately 13,000 or so nodes. When I throw it up to the Web Portal, I get the “Workflow not executed”. With no error messages in the “Show workflow messages” box, I’m assuming there are unconnected nodes.

The best advice on the forum I’ve been given to find these orphaned nodes is to “hunt” for it.

Any ideas?

Hi,

if you have a look in your workspace on the hard drive you can see, that every workflow is stored in a seperated folder. Each of these folders holds the “workflow.knime” file which is acutally a xml file. And there you can find all nodes and all connections between them.

I asked ChatGPT to write me a python script to analyze these xml files to get a list of nodes which do not have a downstream connection:

Of course this code can be extended to fully unconnected nodes or node w/o an entry connection.

Andi

4 Likes

Hi @philcremer ,

oh wow, it looks like this is really much more difficult than I expected. I put together a step-by-step instruction for you now, but we should clearly extent the new workflow monitor panel to cover such missing connections next to execution errors (internal reference NXT-3693). So here it is:
Find unconnected node.knwf (88.5 KB)

I hope this helps for now,
nan

3 Likes

You’re a genius Nan,

First, I had to convert it to version 5.4.1. There seemed to be many many nodes that don’t necessarily need an input connector (Table Creator, Variable Creator, CSS Editor, Component Input, Component Output). I did fine a few of those orphaned nodes but . . …

Unfortunately, I’m still getting the “Workflow not executed”. I will share this among colleagues.

Thank you