Skip to main content

Thought this would be easy, but we are struggling to assign a newly created attribute with row numbers that indicate its sequence in the set.

How about the Counter transformer? Could you use that?


How about the Counter transformer? Could you use that?

Thank you, @erik_jan!


Hi @bo, I agree that the Counter is a generic solution. Alternatively, in some formats, you can also use a predefined format attribute that stores the row number. e.g. "csv_line_number" for CSV. Check the Format Attributes tab of the reader feature type properties dialog.


Reply