Jean-Denis COSTA
07/15/2025, 9:35 AMkapa.ai
07/15/2025, 9:36 AMJean-Denis COSTA
07/15/2025, 9:42 AMkapa.ai
07/15/2025, 9:43 AMkapa.ai
07/15/2025, 9:43 AMsp_cdc_change_job stored procedure as described in the [Airbyte documentation](https://docs.airbyte.com/integrations/sources/mssql#4-extend-the-retention-period-of-cdc-data): sql -- Example: Set retention to 10 days (14400 minutes) 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'; This should help prevent the error by ensuring the required LSNs are available when Airbyte attempts to sync, even for tables with infrequent changes. For more details, see the [Airbyte MSSQL CDC setup guide](https://docs.airbyte.com/integrations/sources/mssql#4-extend-the-retention-period-of-cdc-data).Jean-Denis COSTA
08/25/2025, 8:42 AMkapa.ai
08/25/2025, 8:42 AMJean-Denis COSTA
08/25/2025, 8:42 AMkapa.ai
08/25/2025, 8:42 AMkapa.ai
08/25/2025, 8:42 AMFail sync, Output Log is: > > Saved offset is before replication slot's confirmed lsn. Please reset the connection, and then increase WAL retention and/or increase sync frequency to prevent this from happening in the future. > > In case Invalid CDC position behavior (Advanced) Property is Re-sync data, Output Log is: > > Saved offset is before Replication slot's confirmed_flush_lsn, Airbyte will trigger sync from scratch > [GitHub Issue #49802](https://github.com/airbytehq/airbyte/issues/49802) So, if you want Airbyte to automatically clear and re-sync data when this CDC offset issue occurs, setting "Invalid CDC position behavior" to "Re-sync data" is the correct approach. Just be aware that this will result in a full refresh of your data, which may have performance and cost implications, especially for large datasets.