Question

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

  • 15 February 2018
  • 2 replies
  • 9 views

Badge

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.


2 replies

Userlevel 4

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

Userlevel 4

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

Reply