Auguste ROCA
03/03/2026, 8:27 AMkapa.ai
03/03/2026, 8:27 AM_ab_cdc_deleted_at and _ab_cdc_updated_at, but these columns are created with the VARCHAR(MAX) data type, which SQL Server does not allow as index key columns. [Github Issue]
The specific error reported is:
> Column '_ab_cdc_deleted_at' in table 'catalogServiceDb.newRestaurants' is of a type that is invalid for use as a key column in an index.
This causes the destination process to exit with code 1 and the sync to fail entirely. [Github Issue]
Key points from the issue:
⢠The root cause is that _ab_cdc_* columns (and potentially _airbyte_raw_id) are created with incompatible types (e.g., VARCHAR(MAX)) that cannot be used as index keys in MSSQL.
⢠Manually changing the column type to datetime2 or datetimeoffset also causes errors (No enum constant io.airbyte.integrations.destination.mssql.v2.convert.MssqlType.DATETIME2 or index dependency conflicts).
⢠Indexes are not automatically recreated after changing column data types and restarting the job.
⢠A community comment notes that ideally the destination column type should be derived from the source column definition rather than defaulting to VARCHAR(MAX). [Github Issue]
As of the knowledge available, this is an open, unresolved bug in the MSSQL destination connector when used with a MongoDB CDC source. There is no confirmed fix or workaround documented in the provided sources. If you are running this setup on self-hosted Airbyte 2.0 on Kubernetes, you are likely to encounter this issue.
I'd recommend tracking or commenting on the GitHub issue to stay updated on any resolution. š 0 button š 0 button ā¹ļø Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.Auguste ROCA
03/03/2026, 8:28 AMAuguste ROCA
03/03/2026, 8:28 AMkapa.ai
03/03/2026, 8:28 AMString)
⢠`_airbyte_emitted_at`: a timestamp for when the event was pulled from the source (type: Timestamp)
⢠`_airbyte_data`: a JSON blob with the event data (type: Object)
There is no mention of Airbyte creating indexes on MongoDB destination collections as part of the sync process. Index management on the MongoDB destination would need to be handled manually by you outside of Airbyte.
If you have a specific error or behavior you're encountering with your custom source ā MongoDB destination setup, please share more details and I'll do my best to help based on available information. š 0 button š 0 button ā¹ļø Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.