Skip to main content

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 

 

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

https://support.safe.com/hc/en-us/articles/25407764152973-Run-a-Workspace-When-Data-Arrives-in-a-Directory


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

https://docs.safe.com/fme/html/FME-Form-Documentation/FME-Form/Workbench/Merging_Similar_Datasets.htm

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