Suppressing FileNotFoundException

Hi,

Is there a way to suppress the FileNotFoundException a UniversalDataReader throws when the input file doesn’t exist? It was possible to run graphs without input files in ver 2.6.0 and I would need this feature. It fails the graph altogether on missing files and I wouldn’t want to create empty files where they’re not needed.

The only way I’ve thought of is to create my own custom reader that doesn’t re-throw the exception.

Thanks!

-Tom

Hello Tom,
the exception can’t be suppressed for one file, but if it doesn’t exist any file conforming the wildcard pattern, the exception isn’t thrown. So the problem can be bypassed by the adding the wildcard character somewhere in the path, where you are sure, that another file can’t meet the pattern eg. fileURL=“${DATAIN_DIR}/test.txt*”.