Skip to main content
Question

How to remove and rename attributes coming from dynamic feature reader?

  • February 15, 2018
  • 2 replies
  • 105 views

Forum|alt.badge.img

Schema is coming from the schema port of the feature reader and data is coming from the generic port. If I change the structure of the table connecting transformers to the schema port those changes are not reflected in the output data that is coming out of generic port. Any help is appreciated for more information please see attached image called "sample". Thanks in advance.

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.

2 replies

david_r
Celebrity
  • 8394 replies
  • February 15, 2018

I agree that this is currently fairly complicated to accomplish in FME.

If you're a little bit familiar with Python, I think a small PythonCaller would be the easiest solution. I've posted a sample workspace to remove dynamic schema attributes here, it should give you a starting point: https://knowledge.safe.com/questions/53977/remove-attributes-in-dynamic-reader.html

You should probably also vote for these two ideas:

https://knowledge.safe.com/idea/48070/attributeremover-etc-to-work-with-schema-features.html

https://knowledge.safe.com/idea/19730/introduce-new-transformer-to-modify-schema-easily.html


david_r
Celebrity
  • 8394 replies
  • February 15, 2018

Looking at your screenshot again, I see that you need to send the schema feature to the writer as well: