@NAl
First, please check “Ignore empty stream” check box in JSON Formatter and CSV Formatter Snap. With that checkbox unchecked, the snap will produce empty result, even on input there will be no data.
Second, the functions the you are using snap.original.load()
and snap.original.id
can be used only in case of ultra pipelines(If the snaps that contains the functions are inside the ultra pipeline).
So, in order to get the error data, place one file writer or record replay snap inside the error routine, and store the incoming error message. Then using that message you can manually map all the necessary fields.
Regards,
Spiro Taleski