Skip to main content
Question

A List query in FME 2022 doesn't work in FME 2024


doug_herrick
Contributor
Forum|alt.badge.img+2

Doing a query on a List named “LayerAttributes” worked in FME 2022 but doesn’t work in FME 2024.  Any suggestions on how to work around this issue?

In FME(R) 2022.2.3.0 (20230131 - Build 22789 - WIN64) I was able to query the list and get results.  Here is a cutdown example where the query  Value(LayerAttributes{@sum(@Value(LayerNameID),1)}) gives me the same results as LayerAttributes{7}

 

However, in FME(R) 2024.1.1.0 (20240729 - Build 24619 - WIN64) the same query doesn’t work. @Value(LayerAttributes{@sum(@Value(LayerNameID),1)}) gives me <missing> and LayerAttributes{@sum(@Value(LayerNameID),1)} give me LayerAttributes{7}

 

3 replies

bwn
Evangelist
Forum|alt.badge.img+26
  • Evangelist
  • August 20, 2024

Can’t comment if that is a bug or not, but a trick a long-time FME user taught me on the Forums was that List Attributes are in fact just regular Attributes with a {..} suffix in the way they are stored against the feature, and can be used in the workspace in some Transformers to switch them in and out of a “Regular name format” Attribute versus a “List name format” Attribute.

Would a workaround be instead to use BulkAttributeRenamer to “expose” a Query Result?

 

 

 

Otherwise inside AttributeCreator just use something like?
 

 

 


DanAtSafe
Safer
Forum|alt.badge.img+18
  • Safer
  • August 20, 2024

Hi @doug_herrick The change to move away from recursive evaluation of expressions was intentional in FME 2023, but will be restored in FME 2025 and 2024.2.  Check for builds 24732+ at https://fme.safe.com/downloads/#beta soonish.


doug_herrick
Contributor
Forum|alt.badge.img+2
  • Author
  • Contributor
  • August 20, 2024

Great workaround bwn.  Its a bit messy but a lot better than waiting for our IT team to install another FME version.


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