Skip to main content
Question

How can I rename read feature types in dynamic workflows before writing them such that they don't cause the writer to complain about no matching feature types or change the schema from the original feature type?

  • April 18, 2017
  • 4 replies
  • 49 views
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.

4 replies

takashi
Celebrity
  • April 19, 2017

Hi @asapnet, every feature holds its feature type name as a format attribute called fme_feature_type, and you can overwrite its value with a transformer if necessary.


Forum|alt.badge.img
  • Author
  • April 19, 2017

@takashi I'm aware of the fme_feature_type attribute, but in my experience, simply changing its content won't transfer the originally-read schema to the new name so that the writer can find it. And I can't use SchemaSetter to fix because it adds ALL attributes to the schema, not just those in the originally-read schema.


jdh
Contributor
Forum|alt.badge.img+40
  • Contributor
  • April 19, 2017

It should be reasonably simple to set the schema to the original feature type and the output to a new name, the trick is to set the schema definition to the original feature type, not the default output name.


Forum|alt.badge.img
  • Author
  • April 19, 2017

It should be reasonably simple to set the schema to the original feature type and the output to a new name, the trick is to set the schema definition to the original feature type, not the default output name.

@jdh That did the trick, thanks!