Hi there,
I have a data integration job using the OData Provider with delta replication. That means that when a request is made to the ERP, a filter like the following is appended to the URL:
$filter=lastDateTimeModified+gt+2025-10-27T21%3A15%3A29.000z
That's working really well when it works as it should and only returns rows since that date, which is the previous date and time the job ran successfully.
The implementation, however, has two flaws:
- It depends on the file JobName_lastrun.log that keeps track of the last date and time this job ran. When then the log file is deleted (due to cleanup for example), there's no date and therefore no filter which means all data is pulled back. Due to a stupid bug with log retention, this happens more often than I like.
- It depends on the previous run completing successfully. Here's a flow that's causing me issues:
- Job runs with data filter and completes successfully, date is written to log file
- Job runs again and uses date filter. However, the job fails (for example because the ERP is down).
- The job runs again; because of the previous failure no date filter is applied
Can this be solved in a different way?
Imar