Skip to main content
Solved

Gap in system-versioned data

  • December 19, 2022
  • 2 replies
  • 82 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.

View original
Did this topic help you find an answer to your question?
This topic has been closed for comments

2 replies

Anne Buit
Community Manager
Forum|alt.badge.img+5
  • Community Manager
  • 637 replies
  • 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
  • 149 replies
  • 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. 😎


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