How to output input file line numbers to an output file

In a graph I am using a ComplexDataReader to read from a simple file (file header row, variable number of detail rows, one trailer row) and after reading the data I perform some validation with ExtFilters to make sure each row can safely be converted to appropriate data types for a MetaData. If this validation fails, I want to be able to create an output file with the line numbers that failed validation but I don’t know how to output the line number.

Is there some way that the ComplexDataReader can output its counter value to the MetaData in one of its output ports? Is there a different/better way to get the line numbers from the input file if it doesn’t have line numbers in it?

Hi kd7iwp,

you can use autofilling functions, see http://doc.cloveretl.com/documentation/ … lling.html for reference.