Skip to main content
Solved

Convert attribute values into an array

  • January 16, 2026
  • 2 replies
  • 80 views

fmeuser_gc
Contributor
Forum|alt.badge.img+11

I’m trying to convert those attribute values whichever has comma into an array.

Attribute A has values - "ABC" and "ABC","DEF" and "ABC","DEF","GHI".

Desired output -

“ABC”

["ABC", "DEF"]

["ABC", "DEF",”GHI”]

Any inputs are appreciated. Thanks very much!

Tagging ​@danilo_fme , ​@david_r 

Best answer by daveatsafe

Hi ​@fmeuser_gc,

Please use a Tester to test if Attribute A contains a comma. Route the Passed output to a StringConcatenator to add the square brackets to the beginning and end of the attribute value.

You could also do the same operation using a conditional operation in an AttributeManager:

 

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

daveatsafe
Safer
Forum|alt.badge.img+23
  • Safer
  • Best Answer
  • January 16, 2026

Hi ​@fmeuser_gc,

Please use a Tester to test if Attribute A contains a comma. Route the Passed output to a StringConcatenator to add the square brackets to the beginning and end of the attribute value.

You could also do the same operation using a conditional operation in an AttributeManager:

 


hkingsbury
Celebrity
Forum|alt.badge.img+69
  • Celebrity
  • January 18, 2026

@daveatsafes answer will give you a string formatted like you requested.

 

If you’re looking to convert it into a List (FMEs ‘equivalent’ to an array) the steps would be:

  1. StringReplacer - replace “ with nothing (leave the replace field empty)
  2. AttributeSplitter - set the delimiter to ,
  3. The output will be one feature for each input, with a List containing one item for each of those in the input string