Skip to main content

How do I retain my header rows when I fanout my Text File Data Set? It seems I need to replicate the same number of features with the header row so the fanout can group-by the expression/attribute (that is only available in the data itself). I could see a possible FeatureMerger (with hard-coded values and a List) and then a ListExploder, but this seems overkill.

Ideally, the writer would support an additional header row(s) port - I need multiple header rows - that can be supplied before Fanout is processed.

It is indeed necessary to create a separate header for each fanout-file.

Off course there a multiple ways to do so. Personally I prefer a Sampler with a GroupBy set on the fanout attribute and create/set the header from that point on.


Reply