Forum Discussion
Thank you! Can you explain further; I don’t know what you mean by implementing a count variable?
TestData.slp (12.9 KB)
@wahlborn Please use the attached pipeline.
- tstack8 years agoFormer Employee
The error documents created by most snaps include a ‘snap_details’ property that contains the label of the snap. So, you can build the error pipeline to work with that property. As for writing to separate files, the JSON Formatter snap now has the ability to insert document data into the header of the binary output document. The File Writer can then be configured to create the output file name based on values in the header. I’m attaching an example project to demonstrate this flow, it contains a Main pipeline with some errors that are sent to the ErrorHandler pipeline. Note that creating separate files for every error document will be fairly slow, so it might work better to create a single file.
ErrorPipelineDemo.zip (2.9 KB)