Forum Discussion

jervin's avatar
jervin
New Contributor III
5 years ago

CSV Validate Header writing documents to output

A bit of help appreciated. I am trying to accomplish this with my pipeline:

  1. Use File Reader and CSV parser to read a CSV file.
  2. With the CSV Parser, validate the file and make sure the required headers exist.
  3. If the headers exist, do further processing on the file. If not, do not process the file further.

I have the CSV Parser set up with the required headers and the “Contains Headers” and “Validate Headers” option enabled. When I validate the pipeline I get an exception to the error view of the CSV parser (which is what I want), but the CSV Parser is also writing the records to the output. Any way to change this?