Skip to main content
Best Answer

Fanout with Static Header Rows

  • April 6, 2018
  • 1 reply
  • 16 views

Forum|alt.badge.img

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.

Best answer by lars_de_vries

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.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

lars_de_vries
Forum|alt.badge.img+10

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.