Skip to main content
Question

Exposing attributes with User Parameter doenst work

  • July 22, 2026
  • 1 reply
  • 27 views

jonathan_vru
Contributor
Forum|alt.badge.img+9

I am trying to make a workspace that generates information reports, but the featureReader give me unexpected output. Sometimes it works, but sometimes it gives me "stale caches”, where it should work. 

I am trying to let the user choose which attributes to expose by using a UserParameter, so they can choose what information attributes they want to use or not, but it gives me weird results. 

 

If i run it, it might do it and give me the required information, but if i run it another time, with other attributes selected to expose, it gives me the result that was asked before. Or, if i run it again with the same configuration it gives me the "stale or incomplete cached data”. since Users can select multiple layers out of the 500 we have, i think i have to use the generic port, and let the users choose what attributes they want, because they dont need everything and their needs change from time to time. 

How do i change this process so that it will be reliable? That my users can get any attributes at any time without getting the previous request in place of the new request? I already tried to use the button pruge temporary files, but that doenst change anything.

Thanks for the help!

Settings of the FeatureReader
Parameters of the Feature Reader
Settings of UserParameter

 

1 reply

hkingsbury
Celebrity
Forum|alt.badge.img+73
  • Celebrity
  • July 22, 2026

Unfortunately that's not quite how attribute exposing works. It's more complicated than this, but broadly speaking, manually exposing attributes can be thought of as more for the developer to use when building the process.

For a situation like this, you’d want to build out a dynamic workspace where the chosen value is used to directly influence the schema being passed to the writer.

This example here gives some guidance: Dynamic Workflows: Advanced Example - Modifying the Schema Feature – FME Support Center

There is some more information on dynamic workflows here: Tutorial: Dynamic Workflows – FME Support Center