Skip to main content

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}

 

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?
 

 

 


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.


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


Reply