I set up a directory watch in FME server to watch changed shape files in a directory. Since each shape file has 7 components, updating one shape file will trigger 7 notifications, causing the subscribing workspace to run 7 times. I would hope the directory watch publication has an option to watch only ".shp" files so that each shape file change only triggers one notification. Any work around about this?
This is a known limitation, I'm not aware of any easy way to circumvent this short of asking the users to zip their files before placing them in the watched folder.
There are at least two ideas for improvements, please consider voting:
https://knowledge.safe.com/content/idea/81501/add-file-type-filtering-on-directory-watch-in-fme.html
https://knowledge.safe.com/content/idea/39299/regexp-support-on-fme-server-directory-watcher.html
Hi @ag,
It is not currently possible to specify a single file type to watch, please consider upvoting this idea: https://knowledge.safe.com/content/idea/81501/add-file-type-filtering-on-directory-watch-in-fme.html.
To avoid your current predicament can I suggest reviewing Davids answer on this post: https://knowledge.safe.com/questions/21091/directory-watch-file-types.html to analyse the JSON message for the correct file type first.
@david_r and @hollyatsafe, I voted for both. For most cases file extension should be sufficient, but a wild card could be very useful.
@david_r and @hollyatsafe, I voted for both. For most cases file extension should be sufficient, but a wild card could be very useful.
Thanks for giving your vote. I share your opinion.