Skip to main content
Question

FeatureMerger - not possible to use list element?

  • July 8, 2013
  • 5 replies
  • 53 views

ebygomm
Evangelist
Forum|alt.badge.img+49
I'd like to use the FeatureMerger with the first element of a list as the Requestor Join Attribute. Unlike with most other transformers it doesn't appear to be possible to do this.

 

 

Expected behaviour or a bug (or user error?)
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.

5 replies

david_r
Celebrity
  • July 8, 2013
Hi,

 

 

you didn't specify which version of FME, but it seems to work fine with FME2013 SP2.

 

 

If you use an older version, I suggest you use an AttributeRenamer first to retrieve the value into an ordinary non-list attribute.

 

 

David

ebygomm
Evangelist
Forum|alt.badge.img+49
  • Author
  • Evangelist
  • July 8, 2013
FME 2013 but not SP2.

 

 

If you simply rename the attribute and use that as the Requestor Join Attribute this doesn't appear to work either. Using exactly the same data and using a listexploder results in features passing out the complete port...

 

 

 


david_r
Celebrity
  • July 8, 2013
That is curious, I just tested it here without any problems.

 

 

Could you perhaps post a screenshot of your merger settings along with a couple of sample features?

 

 

David

takashi
Celebrity
  • July 9, 2013
Hi,

 

 

I tested the ListIndexcer, AttributeCreator, AttributeRenamer, exposing directly to change the first element of a list to a non-list attribute, and all worked successfully in the FeatureMerger (FME 2013 SP1). Actually, where the list came from? I have seen a case lacking the first element when a list contains flattened XML element values from the XML reader or the XMLFlattener.

 

Takashi

ebygomm
Evangelist
Forum|alt.badge.img+49
  • Author
  • Evangelist
  • July 9, 2013
I think it's some sort of data issue, which is somehow sorted by exploding the list, perhaps related to the fact that the data has started off with linebreaks etc. I don't have any facility to upload sample data, but screenshots of the workbenches below after running showing feature flow

 

 

 

 

 

 

 

 

 

Adding an attributetrimmer (not specifying any trim characters) after the attributerenamer in the first workbench also results in features being successfully merged, although the stringlength remains unchanged for every feature after trimming??