Skip to main content
Question

I want to write the output in csv in the format "csvname_timestamp", but when i am doing it, fme is writing all features into different csv files, why its doing like that? I want just 1 csv file with all the accumulated info, please help?


bhavyagandhi
Contributor
Forum|alt.badge.img+1
I want to write the output in csv in the format "csvname_timestamp", but when i am doing it, fme is writing all features into different csv files, why its doing like that? I want just 1 csv file with all the accumulated info, please help?

2 replies

caracadrian
Contributor
Forum|alt.badge.img+23
  • Contributor
  • May 21, 2021

Use a Creator followed by DateTimeStamper and join/merge the timestamp with your data via FeatureMerger/FeatureJoiner (1 to 1)unique time stamp


DanAtSafe
Safer
Forum|alt.badge.img+17
  • Safer
  • June 3, 2021

You could also set the timestamp with a scripted Python parameter.  See Example 2 here.

import fme
from datetime import datetime
curTime = datetime.now().strftime("%Y%m%d_%H%M%S")
return curTime

Then set the name of the CSV feature type to the published parameter.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings