Skip to main content
Question

how to upload new csv file to database via fme

  • Mar 12, 2024 7:27 AM UTC
  • 9 replies
  • 226 views

sunita22
Contributor
Forum|alt.badge.img+2

I need to upload new csv file each day with there is date on file each day

9 replies

redgeographics
VIP
Forum|alt.badge.img+63

If you have the workspace that does the translation you can use that in an Automation: start with a FME Form Schedule trigger and then add a Run Workspace action


sunita22
Contributor
Forum|alt.badge.img+2
  • Author
  • Contributor
  • Mar 13, 2024 9:40 AM UTC

If I want to add translation which one need to use?


redgeographics
VIP
Forum|alt.badge.img+63

Can you explain what you are trying to do?


sunita22
Contributor
Forum|alt.badge.img+2
  • Author
  • Contributor
  • Mar 13, 2024 10:24 AM UTC

I have each day with date stamp CSV file data, I need to upload SQL Server via FME, what transformer I need to use in order to pick up new CSV file data automatically from  folder and load to SQL server via FME.

 


redgeographics
VIP
Forum|alt.badge.img+63

Does the CSV filename contain the date or is it always the same filename?


sunita22
Contributor
Forum|alt.badge.img+2
  • Author
  • Contributor
  • Mar 13, 2024 10:34 AM UTC

CSV filename contain the date of each day 

and each day their is new file with each day date.


redgeographics
VIP
Forum|alt.badge.img+63

Right, so use a Creator and a DateTimeStamper to get the current date (DateTimeConverter if you need to format it in a specific way), then FeatureReader to read csv and construct the filename with that timestamp.


sunita22
Contributor
Forum|alt.badge.img+2
  • Author
  • Contributor
  • Mar 13, 2024 11:20 AM UTC

same file name with everyday data stamp

 


redgeographics
VIP
Forum|alt.badge.img+63

Yes, so you need to construct the final filename in the text editor of the FeatureReader. E.g. filename_@Value(date).csv where date is your date attribute.