Skip to main content
Question

Write invalid records to a CSV writer


Forum|alt.badge.img

Hi I would like to output only the rejected records on each transformer output to a CSV file, and also write total count of invalid records.

Any suggestion what's the best way to achieve this?

2 replies

erik_jan
Contributor
Forum|alt.badge.img+18
  • Contributor
  • July 28, 2017

Most important: Change the "Rejected Feature Handling" parameter to continue and not terminate the translation:

Then attach the CSV writer feature types to all Rejected ports you want recorded.


steveatsafe
Safer
Forum|alt.badge.img+12

If you are looking to get the sum of all features rejected you can use the Total Count Attribute of the StatisticCalculator and pass that information to a separate CSV feature type.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings