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?

  • May 21, 2021
  • 2 replies
  • 49 views

bhavyagandhi
Contributor
Forum|alt.badge.img+6
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+21
  • 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.