Skip to main content
Question

Script to update reader feature types

  • Sep 20, 2022 9:48 AM UTC
  • 2 replies
  • 99 views

Forum|alt.badge.img+1

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

carmijo
Supporter
Forum|alt.badge.img+12
  • Supporter
  • Sep 22, 2022 3:13 PM UTC

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.


Forum|alt.badge.img+1
  • Author
  • Oct 20, 2022 1:50 PM UTC

Thanks @carmijo​ I will try that!