Skip to main content
Solved

How to Use a Single Main Folder Parameter While Allowing Different Subfolders for Each Reader in FME Workbench ?

  • May 1, 2026
  • 3 replies
  • 49 views

gogopotter90
Contributor
Forum|alt.badge.img+14

Hello ,

FME Workbench, I am trying to set up a workspace where multiple readers use a common main folder path.

I created a user parameter for the main directory (root folder), and my goal is for each reader to use this main path while only specifying its own subfolder.

However, when I add a new reader and configure its dataset path, it changes the same user parameter used by the other readers. As a result, all readers end up pointing to the same path, which is not what I want.

How can I configure my workspace so that:

  • One user parameter defines the main folder path, and
  • Each reader can independently define its own subfolder without affecting the others?

FME 2021 

thanks in advance 

Best answer by nielsgerrits

Sure :) 

3 replies

nielsgerrits
VIP
Forum|alt.badge.img+66

I never use classic readers so I’m not sure how this is done using those, but this is very easy to set up using FeatureReaders. Have you tried that?

Update:

Turns out not to be that hard using classic readers. Steps I followed:

  • Create user parameter $(Folder) type Folder.
  • Drag file to canvas and configure as needed.
  • Remove automatically generated parameter.
  • Correct reader source parameter using the created folder parameter to something like $(Folder)\a\test.csv
  • Repeat for every reader.

I still prefer the FeatureReaders but it does work fine.


gogopotter90
Contributor
Forum|alt.badge.img+14
  • Author
  • Contributor
  • May 1, 2026

In FME Workbench, I tried to store the file path (without the main folder) in an attribute, and then use feature reader dataset include  a user parameter for the main folder.

My idea was:

  • The user parameter defines the main folder path
  • The attribute contains the remaining part of the file path (subfolder + file name)
  • Then I combine both to read the data

 

but also does not work in feature reader .i got error 

 

could u please upload working fme workbench to have a look ,what i did wrong .thanks 


nielsgerrits
VIP
Forum|alt.badge.img+66

Sure :)