Skip to main content
Solved

Issue with AttributeValueMapper and Cached Values in FME

  • August 27, 2024
  • 1 reply
  • 130 views

gattogis
Contributor
Forum|alt.badge.img+2

Hi everyone,

I'm facing an issue with the AttributeValueMapper transformer in FME. My goal is to remap all values in the "abbreviazione" field using values I want to input manually. However, I've noticed that I'm unable to set the distinct values of the "abbreviazione" field as input values because the transformer doesn't seem to offer the option to read cached values.

The only option I'm given is to import the values from an external dataset, but I'd like to avoid adding too many steps, especially since in other cases, I was able to select the distinct values directly from the layer I'm working on (or at least I think so...).

Has anyone encountered a similar issue or have any suggestions on how to proceed? It would be really helpful to understand how I can retrieve and manage these distinct values within the workflow to use them in the remapping.

Thanks in advance for your help!

 

 

Best answer by bwn

If it is a long list that want to avoid typing in manually, then can temporarily write the list out with a FeatureWriter to the equivalent of a “cached” file format of “FME Feature Store (FFS)”.  This will be an exact replica of what is cached by the workspace.

https://docs.safe.com/fme/html/FME-Form-Documentation/FME-ReadersWriters/ffs/ffs.htm

 

To be honest though any format would work though as a temporary cache file: Parquet, CSV etc.

This can then be used to “Import” the list into AttributeVaueMapper

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.

1 reply

bwn
Evangelist
Forum|alt.badge.img+26
  • Evangelist
  • Best Answer
  • August 27, 2024

If it is a long list that want to avoid typing in manually, then can temporarily write the list out with a FeatureWriter to the equivalent of a “cached” file format of “FME Feature Store (FFS)”.  This will be an exact replica of what is cached by the workspace.

https://docs.safe.com/fme/html/FME-Form-Documentation/FME-ReadersWriters/ffs/ffs.htm

 

To be honest though any format would work though as a temporary cache file: Parquet, CSV etc.

This can then be used to “Import” the list into AttributeVaueMapper