Based on the knowledge sources, even when the CDC retention is set to 72 hours and the sync frequency is every 6 hours, this error can still occur due to several possible reasons: 1.
No Data Changes (No LSN Advancement): If there are no changes in the tracked tables during the retention window, the commit_lsn (the offset Airbyte uses) may not advance. SQL Server’s CDC cleanup job can remove older entries, and if Airbyte’s last saved offset points to an LSN that has been purged (because no new data was written and thus no new LSN was committed), the next sync will fail with this error. This scenario is described in detail in [this issue](
https://github.com/airbytehq/airbyte/issues/37772): > When no rows are transported the "commit_lsn" won’t be updated. This leads to the "commit_lsn" being out of range after the third day. 2.
CDC Cleanup Job and LSN Mapping: Even if the retention period and sync frequency seem sufficient, the way SQL Server manages LSNs and the CDC cleanup job can result in the required LSN being purged if there is no data movement. The Airbyte connector relies on the presence of the commit_lsn in the CDC tables, and if it’s missing, the error is triggered. 3.
Other Environmental or Configuration Issues: There could be other factors such as clock drift, misconfigured jobs, or issues with how Airbyte tracks state, but the most common cause (as seen in the linked issue) is the absence of data changes leading to the offset being purged.
Summary: Even with a 72-hour retention and 6-hour syncs, if there are periods with no data changes, the commit_lsn may not advance and can be purged by the CDC cleanup job, causing this error. To mitigate, ensure there is at least some data movement within the retention window, or consider increasing the retention period further if long periods of inactivity are expected. [See discussion and technical details](
https://github.com/airbytehq/airbyte/issues/37772).