Skip to main content
Solved

Attributes - exposing them when they show in inspector but don't show in any attribute list

  • January 31, 2018
  • 9 replies
  • 334 views

Forum|alt.badge.img

I have created a polygon layer from a numeric raster. RastertoPolygonCoercer shows a _label attribute to be created and this appears in inspector as the values from the raster. Perfect - but - I want to ensure this is carried through and written out to shapefile - except I can't "see" the attribute in subsequent transformers. So I thought attribute creator and map the attribute to a new field, or attribute exposer and ensure it appears, or even attribute mapper sounds a possibility. Except when it comes to picking the attribute you want to make available (_label) it doesn't appear in any list of available attributes. It doesn't appear in a shapefile written out and

I don't know how else to access it - Help.....

Best answer by david_r

You have to type in the attribute names manually:

 

 

Alternatively you can use the Import-button on the bottom right to import attribute names from e.g. a sample data file.

 

This happens when you have dynamic elements in your workspace where FME doesn't know at design-time (i.e. when you're authoring your workspace) what attributes will be available once the translation starts (run-time).
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.

9 replies

nielsgerrits
VIP
Forum|alt.badge.img+60
  • 2938 replies
  • January 31, 2018

These attributes are unexposed attributes. Use the Exposer transformer to expose it.


Forum|alt.badge.img
  • Author
  • 9 replies
  • January 31, 2018

Forgive a newbie but if I add and connect an AttributeExposer and click on the drop down list of attributes to expose the _label attribute doesn't show. So how do I get it to expose?


david_r
Celebrity
  • 8394 replies
  • Best Answer
  • January 31, 2018
You have to type in the attribute names manually:

 

 

Alternatively you can use the Import-button on the bottom right to import attribute names from e.g. a sample data file.

 

This happens when you have dynamic elements in your workspace where FME doesn't know at design-time (i.e. when you're authoring your workspace) what attributes will be available once the translation starts (run-time).

david_r
Celebrity
  • 8394 replies
  • January 31, 2018

Forgive a newbie but if I add and connect an AttributeExposer and click on the drop down list of attributes to expose the _label attribute doesn't show. So how do I get it to expose?

You have to type in the attribute names manually:

 

 

Alternatively you can use the Import-button on the bottom right to import attribute names from e.g. a sample data file.

 

This happens when you have dynamic elements in your workspace where FME doesn't know at design-time (i.e. when you're authoring your workspace) what attributes will be available once the translation starts (run-time).

Forum|alt.badge.img
  • Author
  • 9 replies
  • February 1, 2018

@david_rExcellent answer. I thought you could only pick from the drop down list that comes up as soon as you click in the box. Extra thumbs up for the explanation of the significance and importance of dynamic elements and run-time and the use of the import button. Made my day as my whole process was hanging on that one attribute.


Forum|alt.badge.img
  • 30 replies
  • November 26, 2019

These attributes are unexposed attributes. Use the Exposer transformer to expose it.

I tried the import option and chose a table with a list of the names of attributes I wanted to expose. All I ended up with was the name of the field that contains the 48 separate field names. Is this some obvious mistake I'm making that is easily explained?

 

Thank you,

 

Randy McGregor


ebygomm
Influencer
Forum|alt.badge.img+44
  • Influencer
  • 3427 replies
  • November 26, 2019

I tried the import option and chose a table with a list of the names of attributes I wanted to expose. All I ended up with was the name of the field that contains the 48 separate field names. Is this some obvious mistake I'm making that is easily explained?

 

Thank you,

 

Randy McGregor

You need to choose attribute values rather than attribute names when you import the list


Forum|alt.badge.img
  • 30 replies
  • November 26, 2019

These attributes are unexposed attributes. Use the Exposer transformer to expose it.

You need to select "Attribute values" not "Attribute names" in the "Import from:" option. Unintuitive to me because these are the names of the attributes, not the values that populate them. Anyway, "Import" works beautifully for this. I had to create a table containing these values first, then I used that table with the "Import" option.


Forum|alt.badge.img
  • 30 replies
  • November 26, 2019

You need to choose attribute values rather than attribute names when you import the list

Thank you! That was it.