Skip to main content
Solved

Multiple (dynamic) readers with prompt


Forum|alt.badge.img

Dear FME community,

I have data from several districts. Each district has different data sources. I'd like to use the same workbench for every district. Therefore, I'd like to set up a workbench with multiple (dynamic) readers, where the user would choose the district and the source of the corresponding feature types at the beginning of the translation (feature types to read, when run with prompt is enabled).

So far I've only been able to do this if there is only one dynamic reader. Is it possible to use more than one dynamic reader? If not, is there a workaround for non-dynamic readers to be able to let the user choose the corresponding feature type?

I appreciate your help,

Vincent

Best answer by takashi

I believe that you can simply add any number of readers with single merged feature type (so-called dynamic reader) to the workspace and run it with prompting their datasets and feature types to read, as shown below. Could you please explain your issues more specifically?

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

4 replies

takashi
Influencer
  • Best Answer
  • April 8, 2018

I believe that you can simply add any number of readers with single merged feature type (so-called dynamic reader) to the workspace and run it with prompting their datasets and feature types to read, as shown below. Could you please explain your issues more specifically?


Forum|alt.badge.img
takashi wrote:

I believe that you can simply add any number of readers with single merged feature type (so-called dynamic reader) to the workspace and run it with prompting their datasets and feature types to read, as shown below. Could you please explain your issues more specifically?

The single merged feature type was what I was looking for. Thank you!

 


Forum|alt.badge.img

A related question: Every month I get updated files for every district. If I define a folder as a source for the District A Datasets, do I have to add a new reader and delete the old one every time I add a new file to the folder? @takashi


takashi
Influencer
  • April 12, 2018
vincenthischier wrote:

A related question: Every month I get updated files for every district. If I define a folder as a source for the District A Datasets, do I have to add a new reader and delete the old one every time I add a new file to the folder? @takashi

If you use the wildcard (*) to specify the source dataset within the folder specific to a district, you don't need to replace the reader with new one even if the name of the updated file is different from the previous one. Of course, assume that the data format and source schema should be identical always.

 

Note: the ? symbol shown on Japanese Windows is equivalent to a backslash.

 

 


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