Skip to main content
Solved

Multiple (dynamic) readers with prompt

  • April 6, 2018
  • 4 replies
  • 24 views

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?

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

4 replies

takashi
Celebrity
  • 7843 replies
  • 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

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
Celebrity
  • 7843 replies
  • April 12, 2018

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.