Kevin Lefevre
08/13/2025, 7:32 AMFailure in source: Saved offset no longer present on the server. Please reset the connection, and then increase binlog retention and/or increase sync frequency.
The log retention is currently defined at 3 days.
What is the root cause of this error with concrete explanations and how can I fix it ?kapa.ai
08/13/2025, 7:33 AMFailure in source: Saved offset no longer present on the server. Please reset the connection, and then increase binlog retention and/or increase sync frequency. Root Cause: This error occurs because the saved offset (the last position Airbyte read from the SQL Server Change Data Capture (CDC) log) is no longer available on the server. In SQL Server, CDC data is retained for a configurable period (by default, 3 days). If Airbyte tries to resume syncing from an offset that has already been purged by SQL Server's CDC cleanup job, the sync fails. This situation is especially likely if: - The sync frequency is too low (not frequent enough), so the offset is lost before the next sync. - There are periods of inactivity (no changes in the source tables), so the commit LSN (log sequence number) is not updated, and after the retention period, the offset is out of range. - The CDC retention period is too short for your sync schedule. This is confirmed by user reports and logs, where the sync fails after the retention period if no data changes have occurred, causing the commit_lsn to be out of range after the third day. The cleanup job removes old CDC entries, and Airbyte cannot find the offset it needs to continue incremental syncs, resulting in this error [source-mssql] sync fails with CDC and no changes. How to Fix: 1. Increase CDC Retention Period: Extend the retention period of CDC data in SQL Server to ensure that the required log entries are available when Airbyte runs its sync. For example, you can set the retention to 10 days (14,400 minutes): sql EXEC sp_cdc_change_job @job_type='cleanup', @retention = 14400; EXEC sys.sp_cdc_stop_job @job_type = 'cleanup'; EXEC sys.sp_cdc_start_job @job_type = 'cleanup'; [Setting up CDC for MSSQL](https://docs.airbyte.com/integrations/sources/mssql#4-extend-the-retention-period-of-cdc-data) 2. Increase Sync Frequency: Run Airbyte syncs more frequently so that the offset is always within the CDC retention window. 3. Reset the Connection: If the error has already occurred, you must reset the Airbyte connection to perform a full refresh and re-establish a valid offset. Summary: The error is caused by the CDC log entries being purged before Airbyte can read them, due to a short retention period or infrequent syncs. Increase the CDC retention period and/or sync more frequently to prevent this issue in the future [source-mssql] sync fails with CDC and no changes, [Setting up CDC for MSSQL](https://docs.airbyte.com/integrations/sources/mssql#4-extend-the-retention-period-of-cdc-data).Kevin Lefevre
08/13/2025, 7:35 AMkapa.ai
08/13/2025, 7:36 AMkapa.ai
08/13/2025, 7:36 AMKevin Lefevre
08/13/2025, 7:39 AMkapa.ai
08/13/2025, 7:39 AMkapa.ai
08/13/2025, 7:39 AMKevin Lefevre
08/13/2025, 7:41 AMkapa.ai
08/13/2025, 7:41 AMkapa.ai
08/13/2025, 7:41 AM