Skip to main content
Solved

CSV Reader: can source file can be parametrized?


Forum|alt.badge.img

Hi all,

I am doing my first steps with FME.

I am trying to parametrize a CSV reader as follow:

But parameter is replaced by its value:

How to do this?

Many thanks for your help!

Best answer by erik_jan

The parameter shows the default value of the WorkingFolder parameter.

But at runtime, the parameter is used.

View original
Did this help you find an answer to your question?

3 replies

erik_jan
Contributor
Forum|alt.badge.img+18
  • Contributor
  • Best Answer
  • March 19, 2018

The parameter shows the default value of the WorkingFolder parameter.

But at runtime, the parameter is used.


redgeographics
Celebrity
Forum|alt.badge.img+50

Normally if you add a reader FME will automatically add a parameter for the source file(s), this can then be used to parameterize your input.

If you want to keep one part of the path in a different parameter you may want to consider creating a private one (Workingfolder) and referencing that in the Source dataset parameter, like this:

First I create the private parameter, then added the reader which came with the automatically generated parameter SourceDataset_CSV2, pointing to the full path of the csv file used to create the reader. Then I edited that parameter to use my Workingfolder parameter and added the wildcard.


Forum|alt.badge.img
  • Author
  • March 19, 2018

Dear redgeographics, dear erik_jan,

Many thanks for your help!

Even if the parameter is replaced in the editor, it is well used on runtime.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings