Christian Malan
08/21/2025, 12:41 PMkapa.ai
08/21/2025, 12:41 PMINSERT, UPDATE, or DELETE. Schema changes or operations like `TRUNCATE`/`ALTER` are not captured. - Newly added columns or tables are not automatically tracked by CDC. You must snapshot them first and ensure CDC is enabled on those objects. Otherwise, changes to these columns/tables may not be captured until a refresh is performed and CDC is re-enabled for them. - CDC incremental sync is only supported for tables with primary keys. Tables without primary keys are only supported in Full Refresh mode. - If the CDC log retention period is shorter than the time required for the initial sync, some changes may be missed, especially for large tables or slow initial loads. This can result in missing records until a refresh is performed, as described in user reports and forum discussions. - Airbyte uses at-least-once delivery for change records, which can sometimes result in missed or duplicate records in rare cases, especially if there are failures or restarts during syncs. - Reported Issues: Users have reported that missing records are often resolved by refreshing the stream or performing a full refresh. This is consistent with the need to snapshot new schemas/columns or re-enable CDC tracking after schema changes. For example, if a new column is added to a table, it will not be tracked by CDC until CDC is disabled and re-enabled for that table, and a refresh is performed in Airbyte to pick up the schema change. Otherwise, records for that column may be missing in the destination until these steps are taken. [See: Troubleshooting MSSQL CDC](https://docs.airbyte.com/integrations/sources/mssql/mssql-troubleshooting#adding-columns-to-existing-tables-with-cdc), [CDC Limitations](https://docs.airbyte.com/platform/understanding-airbyte/cdc#limitations) - Mitigation Steps: 1. Monitor Schema Changes: Always refresh the source schema in Airbyte after making schema changes (adding tables/columns) and ensure CDC is enabled on new objects. 2. CDC Retention: Ensure the CDC log retention period in SQL Server is long enough to cover the duration of your initial syncs, especially for large tables. 3. Regular Refreshes: If you suspect missed records, perform a stream refresh or full refresh to re-snapshot the data. 4. Review CDC Setup: After schema changes, disable and re-enable CDC on affected tables to ensure new columns are tracked. 5. Upgrade Airbyte: Some issues have been resolved in newer versions of Airbyte and connectors. If you are on an older version, consider upgrading. If you continue to experience issues after following these steps, it may be worth opening a GitHub issue with detailed logs and version information, as some edge cases may still exist in specific connector versions or deployment scenarios. References: - [MSSQL CDC Documentation](https://docs.airbyte.com/integrations/sources/mssql#change-data-capture-cdc) - [CDC Limitations](https://docs.airbyte.com/platform/understanding-airbyte/cdc#limitations) - [Troubleshooting MSSQL CDC](https://docs.airbyte.com/integrations/sources/mssql/mssql-troubleshooting#adding-columns-to-existing-tables-with-cdc)