Try Catch - Consolidate Files - If files does not exists skip to the following file

Hi team,
I am new on Knime and I have been trying to consolidate several files based on a list of patterns, but when the file name does not exists it should skip and use the next pattern in the list.
I was trying to use a Try and Catch, but I could not implemented correctly.

When I use the Row Filter I am getting an empty table so the next loop its failing because it does not have any data to run.

I will appreciate so much your guidance.

Hi @MIC5HDA and welcome to the Knime Community.

You could use the List Files/Folders node:

This will give you a list of the files that exist in your folder. You can then compare with your list of patterns, that way you are sure to process files that exist.

2 Likes