Maybe this example with try and catch can serve as an inspiration
Or you might want to check out the “switch” section of this collection
You might want to create an example maybe with KNIME’s local big data environment to test what you are trying to do and for the forum to help.