Skip to main content
Question

Set date using log

  • October 10, 2023
  • 1 reply
  • 28 views

Forum|alt.badge.img

I have created a parameter that allows the user to extract records between 2 chosen dates.

The problem is that if the user forgets when they last ran the FME, the next time it is run, they may get some duplicate records if the "From Date" chosen is a date earlier than the last time FME was run.

As usually the "To date" is always the day the FME is run, ideally I would like FME to take the date and time from the log file. That way the user will always get the latest data since FME was last run.

But I do not know to get FME to read the logfile and set this up.

image

1 reply

david_r
Celebrity
  • October 10, 2023

My personal preference would be to save the timestamp(s) in a small SQLite database alongside the workspace, and use a combination of FeatureReader and FeatureWriter to retrieve/store the values.


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