Skip to main content
Solved

Fanout expression creating two text files

  • March 19, 2018
  • 1 reply
  • 13 views

Forum|alt.badge.img

I am trying to create xml files for metadata with the filename of a gdb forming part of the xml output filename. The fanout expressions are:

@Value(gdb_name)_gdb_metadata.xml

@Value(gdb_name)_lidar_metadata.xml

@Value(gdb_name)_imagery_metadata.xml

However, this creates two xml files per output, one empty but with the correct filename, and one without the @Value(gdb_name) but with the correct content. I have tried to feed in the @Value(gdb_name) earlier on in the process but this does not work.

Best answer by redgeographics

Right now you are in fact writing 2 features to each output: one with the correct date set and one with the rest of the attributes. Since they have different values for the fanout attribute you end up with 2 output files per writer.

You'll need to join the output of the Date extraction bookmark to the output streams. An unconditional FeatureMerger will do the trick.

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

redgeographics
Celebrity
Forum|alt.badge.img+60
  • Celebrity
  • 3703 replies
  • Best Answer
  • March 19, 2018

Right now you are in fact writing 2 features to each output: one with the correct date set and one with the rest of the attributes. Since they have different values for the fanout attribute you end up with 2 output files per writer.

You'll need to join the output of the Date extraction bookmark to the output streams. An unconditional FeatureMerger will do the trick.