Question

Script to update reader feature types

  • 20 September 2022
  • 2 replies
  • 10 views

I use a python script to set up project directories for specific tasks, The script also copies the workbenches and needed and uses some regex to adjust the paths in the fmw's. Sometimes the schema of the files changes, so I would like the readers to update feature types when opening FME without having to re-import them. I'd appreciate any shared experience and hopefully an example. Thanks!


2 replies

Badge +10

Hi @bradosav​, could you use a feature reader and parameterize the feature types portion in the feature reader settings? Alternatively, you could read the data contents before the feature reader, and use a field to populate the feature types to read setting in the feature reader.

Thanks @carmijo​ I will try that!

Reply