Skip to main content
Answer

Gap in system-versioned data

  • December 19, 2022
  • 2 replies
  • 88 views

Forum|alt.badge.img+13

Something seems to have gone wrong in a temporal table. There’s a gap between the current record and the previous record that’s now in the history table. This gap looks like this:

Query:

select *, tsf_valid_from, tsf_valid_to
from adres for system_time all
where adres_id = 51714

It’s as if the history data is no longer complete but we never manually deleted this data. This is a problem because we use this data for historical records such as invoices.

What could cause such a gap in temporal data?

Best answer by Anne Buit

Hi Roland, looks to me like the record was deleted for a while and then recreated.

This topic has been closed for replies.

2 replies

Anne Buit
Community Manager
Forum|alt.badge.img+5
  • Community Manager
  • Answer
  • December 20, 2022

Hi Roland, looks to me like the record was deleted for a while and then recreated.


Forum|alt.badge.img+13
  • Author
  • Hero
  • December 29, 2022

Hi Anne. Yes indeed. A procedure wrongly created a long list of records in this table that we deleted after we discovered the error. It turns out that this particular address id is now used again correctly and with entirely different data. Until now I just never realized that this would indeed create a gap in the history of that particular record. We keep learning. 😎