Skip to main content
Question

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

  • February 15, 2018
  • 2 replies
  • 72 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.

2 replies

david_r
Celebrity
  • 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
  • February 15, 2018

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings