Skip to main content
Solved

How to keep only the first two elements of a list?


Forum|alt.badge.img

Hi FME experts,

When reading data into a FME workspace, there is a list attribute in each input feature. Some features have 2 elements in the list and some features have 3 elements. For some reason I only want to keep the first two elements of each list. How can I do that?

 

I searched for the List related transformers, but couldn't find one that can do this List truncation for me.

 

I am using FME Workbench 2018.1

 

Thank you!

 

Sui

Best answer by markatsafe

@sui_huang​ Would ListSlicer from the FME hub work for you?

View original
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.

2 replies

Forum|alt.badge.img+2

@sui_huang​ Would ListSlicer from the FME hub work for you?


Forum|alt.badge.img

@sui_huang​ Would ListSlicer from the FME hub work for you?

Hi markatsafe, it works for me, thank you!