Question

User parameter for reader path


My workflow regularly compares files stored at path X with prefix Y with files stored at path Z with prefix Y. I'd like to set up the workbench in such a way that I'd copy the workbench for a project and only have to edit the Y parameter for it to read in the required files, i.e.

Read: $(Path_to_X)/($Prefix_Y)*.csv

Read: $(Path_to_Z)/($Prefix_Y)*.csv

 

Can this be done, and if so, how?

Thanks!


2 replies

Userlevel 4
Badge +25

Yes, pretty much exactly as you have described.

 

When FME adds readers it will automatically create user parameters for them. By unlinking those and then editing the paths used by the readers to use my own parameters I got it to work:

Schermafbeelding 2022-07-06 212844So this reader will read C:\\FMEData2021\\Data\\Emergency\\Crime.csv

 

@redgeographics Thanks for your reply!

Reply