Throw Error on Empty Table Switch Node when no input

Hi,

I'd like to force my Knime workflow to fail (ideally with a custom error message)  whenever the Empty Table Switch gets an empty table on the input port. Is there any best practice mechanism for this in Knime v3.2.1?   I tried NodeLogger but couldn't get it to work. 

Thanks,

JGP

Hi Joseph,

I think you already did find the empty table switch node, afterwards you need a node which fails with a message.

For this we would recommend the Java Snippet Simple, with the following syntax:

throw new Abort("this is the error message");

Alternatively you could also use the send mail node and send an email in case of a failing workflow.

Does this help?

Best, Iris