Skip to main content
Solved

Data Inspector won't show data when I have an attribute from @Value


jakethepainter
Contributor
Forum|alt.badge.img+6

I'm trying to create a series of attributes based on values of other attributes (I have some FieldName/FieldAttribute combos that I want to turn into attributes on the feature). When I create an attribute called @Value(FieldName), anything I output to the Data Inspector won't show. It just shows ? row(s) and doesn't load anything. Is this a bug or am I missing something?

Best answer by ciarab

@jakethepainteryes you are right its an Inspector bug in 2016.1, where attributes are not displayed properly in the inspector but the issue has been fixed in FME 2017.

The workaround is

1) Add a Logger and inspect the attributes in the log.

 

2) Run with Full Inspection and either double click on the feature count after the transformer, or right-click on the feature count and select Inspect features, to view the attributes in Data Inspector.

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

7 replies

itay
Supporter
Forum|alt.badge.img+17
  • Supporter
  • August 25, 2016

Which version FME are you using? If I remember correctly it is actually a bug in older builds


ciarab
Contributor
Forum|alt.badge.img+9
  • Contributor
  • Best Answer
  • August 25, 2016
@jakethepainteryes you are right its an Inspector bug in 2016.1, where attributes are not displayed properly in the inspector but the issue has been fixed in FME 2017.

The workaround is

1) Add a Logger and inspect the attributes in the log.

 

2) Run with Full Inspection and either double click on the feature count after the transformer, or right-click on the feature count and select Inspect features, to view the attributes in Data Inspector.


jakethepainter
Contributor
Forum|alt.badge.img+6

Thanks. I am using 2016.1

Do you have any tips on how to expose the attributes that get created by this @Value(FieldName) in the workbench? For example, for one feature I might now have an attribute called Material where for another I have an attribute called Height. Say I want to use a FeatureMerger on the Material attribute later in the workbench... Or write out the data to a csv. I'm a little confused about how to make use of the value-driven attribute name.


ciarab
Contributor
Forum|alt.badge.img+9
  • Contributor
  • August 29, 2016

Hi @jakethepainter you should be able to just use the @value attribute in the feature merger to merge the data that matches. But you can use the attribute exposer to then expose your new attribute values if you wish to write the data out to csv. I have attached a quick sample which will show you what I mean

If you have a lot of attributes to expose you might want to use the import function in the attribute exposer that way FME can scan the attribute values for you and import otherwise you can just type the possible values. Hope that helps!


jakethepainter
Contributor
Forum|alt.badge.img+6

Thanks, this is very helpful. The AttributeExposer is a great idea. That makes it explicit and a little easier to manage in my case.


ciarab
Contributor
Forum|alt.badge.img+9
  • Contributor
  • August 29, 2016
jakethepainter wrote:

Thanks, this is very helpful. The AttributeExposer is a great idea. That makes it explicit and a little easier to manage in my case.

Yes it can be quite confusing trying to work with @value attributes when you can't see the name, the AttributeExposer will give you clarity alright. Glad you managed to progress this despite the initial bug

 


ebygomm
Influencer
Forum|alt.badge.img+39
  • Influencer
  • August 30, 2016
ciarab wrote:
@jakethepainteryes you are right its an Inspector bug in 2016.1, where attributes are not displayed properly in the inspector but the issue has been fixed in FME 2017.

The workaround is

1) Add a Logger and inspect the attributes in the log.

 

2) Run with Full Inspection and either double click on the feature count after the transformer, or right-click on the feature count and select Inspect features, to view the attributes in Data Inspector.

If you have access to an older version of FME you can also use an earlier version of the AttributeCreator which will also work.

 

 


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