I have network based resource folder, that folder si on fme flow When file arrive in that folder, i need to write that file on other location, i just need help i don t know what parameter or what pointer should i send to my reader that it knows which file should write
Page 1 / 1
I would suggest using Form with creator and feature reader > Directory and File Path reader format
In the parameters of the reader, there is even a path filter to ensure only *.csv are read in. Then there will be output attributes like file_name and windows_path. Use the windows_path on the writer
Then in Flow you set up an automation with File * Directory watcher, then a run workspace, pointing it to the above Form workspace
I will try this and give back to you my results, thank you !
My only question is how i get reader like this but instead of Shape reader, i want CSV reader Because for this shape reader i dont have to enter source file to read, because flow tells it what file to read I need exactly like that , just with CSV type
@j.botterill
So you want to read up on Merging / reading many datasets at once
Add CSV reader and click on the “Single Merged feature type”
Be sure to always go into reader parameters. NB. by automatic it will read each csv schema separately. So what I mean here is, you assume all csv’s have 5 columns named exactly as per the preview
If they are named something else, then you will need AttributeExposer followed by AttributeRenamer for example