Stop Workflow if Table in empty besides headers


I would like to stop my workflow from continuing if the table is empty besides column headers. Would this work with the “Empty Table Switch” node, or does there also need to be no headers for this node to work? Any other suggestions?

Thank you!

Hi austinbauer,

the EmptyTable switch should be exactly what you want. If no rows beside the table header exists, then the upper port will be cancelled/Stopped :slight_smile:

If you want to just skip a part of the workflow if the table. is empty then you can enclose the part you want to stop with the empty table switch at the beginning and “case switch end” at the end!


KNIME_project.knwf (10.4 KB)

  • and an example workflow
1 Like

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