JSON Reader Error Handling

I have a script that reads JSON files using JSON READER. If a JSON file is malformed, the WF stops with an error. I have not been able to encapsulate this in an error handler.

Is there a way to validate the integrity of a file in a controlled way?

Thanks,
Marc.

Hi Marc,

did you try (:slight_smile:) the Try-Catch construct? Error Handling with Try-Catch – KNIME Community Hub

The second port contains which node failed and the error (cause, stack trace, …). The data port then contains the fallback, e.g. just an empty table with some expected columns.

2 Likes

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