Skip to main content
Solved

Changing a name of attribute

  • January 15, 2018
  • 3 replies
  • 486 views

Forum|alt.badge.img

Hello,

 

 

I am wondering if there is a way to change a name of attribute in FME. Attached, You will find a photo of what am I trying to do. I would like to change a name of attribute in those two places.

Best answer by redgeographics

You can change the name in the output feature type, provided it's a "user attribute". Simply click on the cogwheel, go to the User Attributes tab and change the name. You will most likely have to reconnect the attribute connection -or- use an AttributeRenamer or AttributeManager somewhere in your process to perform the renaming there as well.

Renaming an attribute on an input feature is possible, but not recommended. If the input data doesn't match the schema defined there you'll lose the attribute.

Hope this helps.

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.

3 replies

redgeographics
Celebrity
Forum|alt.badge.img+62
  • Celebrity
  • Best Answer
  • January 15, 2018

You can change the name in the output feature type, provided it's a "user attribute". Simply click on the cogwheel, go to the User Attributes tab and change the name. You will most likely have to reconnect the attribute connection -or- use an AttributeRenamer or AttributeManager somewhere in your process to perform the renaming there as well.

Renaming an attribute on an input feature is possible, but not recommended. If the input data doesn't match the schema defined there you'll lose the attribute.

Hope this helps.


jneujens
Forum|alt.badge.img
  • January 15, 2018

You can change the name in the output feature type, provided it's a "user attribute". Simply click on the cogwheel, go to the User Attributes tab and change the name. You will most likely have to reconnect the attribute connection -or- use an AttributeRenamer or AttributeManager somewhere in your process to perform the renaming there as well.

Renaming an attribute on an input feature is possible, but not recommended. If the input data doesn't match the schema defined there you'll lose the attribute.

Hope this helps.

Fully agree with redgeographics. A AttributeRenamer is, in my opinion, an even more readable and easy-to-understand solution for others using your workspace! ;)

 

 


mark2atsafe
Safer
Forum|alt.badge.img+59
  • Safer
  • January 15, 2018

As a quick addition, as @redgeographics says, you don't normally edit the source (reader) attribute names. That's because it represents "what you have" and editing it would make it become out of sync with your source data.

However, if the source dataset itself changes, you can update the definition in FME using the tool Readers > Update Feature Type