Alain De Bortoli
07/25/2025, 3:02 PMFailure in source: Saved offset no longer present on the server. Please reset the connection, and then increase binlog retention and/or increase sync frequency.kapa.ai
07/25/2025, 3:02 PMFailure in source: Saved offset no longer present on the server. Please reset the connection, and then increase binlog retention and/or increase sync frequency. means that the Change Data Capture (CDC) log entries required for incremental sync are no longer available on your MSSQL server. This typically happens when the retention period for CDC data is too short relative to your sync frequency, or if there are long periods without any data changes. Why does this happen? - MSSQL retains CDC data for a configurable period (default is 3 days). If Airbyte tries to resume from an offset that has already been cleaned up by the server, the sync fails with this error. - If there are no changes for a while, the commit LSN (log sequence number) may not be updated, and after the retention period, the saved offset is purged, causing the sync to fail on the next run [source-mssql sync fails with CDC and no changes](https://github.com/airbytehq/airbyte/issues/37772). How to resolve: 1. Reset the connection in Airbyte to allow a new initial sync. 2. Increase the CDC retention period on your MSSQL server to ensure that log entries are kept long enough for Airbyte to read them, even if there are sync delays or periods of inactivity. The recommended retention is 10 days (14400 minutes). You can set this with: 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'; [See the official Airbyte documentation for more details.](https://docs.airbyte.com/integrations/sources/mssql#4-extend-the-retention-period-of-cdc-data) 3. Increase sync frequency in Airbyte so that the connector reads the CDC logs before they are purged. If you are using Transaction Replication, you need to adjust the retention using different scripts, as described in the documentation. Summary: Increase your CDC retention period and/or sync more frequently to prevent this error in the future. After making these changes, reset your Airbyte connection to resume syncing. [Reference: source-mssql sync fails with CDC and no changes](https://github.com/airbytehq/airbyte/issues/37772) [Reference: Extend the retention period of CDC data](https://docs.airbyte.com/integrations/sources/mssql#4-extend-the-retention-period-of-cdc-data)