Skip to main content
Solved

Changing a name of attribute

  • January 15, 2018
  • 3 replies
  • 428 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.

View original
Did this help you find an answer to your question?

3 replies

redgeographics
Celebrity
Forum|alt.badge.img+49
  • 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
redgeographics wrote:

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+44
  • 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


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