<@U04S8PLJWMT> We setup syncs from SQL server to S...
# ask-ai
f
@kapa.ai We setup syncs from SQL server to Snowflake and the initial sync works. However incremental syncs do not transfer any records where they should have been transferred. Logs do not show any errors
k
Thanks for the details. Based on similar reports and docs, here are the most common causes and checks when initial sync works but incremental emits 0 records without errors: 1) Confirm whether you’re using cursor-based Incremental vs CDC - Cursor-based incremental relies entirely on a cursor field filter like: SELECT * FROM table WHERE cursor_field >= last_sync_max_value If updates don’t change the cursor field (e.g., updated_at not bumped), the changes won’t be picked up. Verify your chosen cursor is monotonically increasing and updated on every change; otherwise consider switching to CDC. [[Incremental limits](https://docs.airbyte.com/platform/using-airbyte/core-concepts/sync-modes/incremental-append#known-limitations); [1.7 Incremental limits](https://docs.airbyte.com/platform/1.7/using-airbyte/core-concepts/sync-modes/incremental-append#known-limitations)] - For CDC-based incremental (SQL Server), ensure the log position/state can be found and there’s enough time to resume from it. A recent similar issue on Postgres CDC showed “successful” runs with 0 records until increasing the Initial Waiting Time in Seconds (Advanced) so the connector can find the WAL/log resume position; the same class of problem can manifest as silent no-op if the source can’t resume quickly. Try increasing the initial waiting time significantly. [[PG CDC no records](https://github.com/airbytehq/airbyte/issues/50435)] 2) Check timestamp precision/cursor rounding issues - There’s a known issue where datetime precision can be truncated (e.g., milliseconds rounded to seconds) causing the saved cursor to be lower precision than the source values. On the next run, all records can be considered greater than the stored cursor or, conversely, nothing advances as expected. Validate whether your SQL Server cursor column has sub-second precision and whether Snowflake/raw tables show the same precision. If you see rounding (e.g., .263 → .000), pick a different cursor (e.g., a strictly increasing integer) or switch to CDC. [[MSSQL precision issue](https://github.com/airbytehq/airbyte/issues/10262)] 3) Inspect raw tables vs normalized tables - If normalization is enabled, verify whether records are present in the _airbyte_raw_ tables in Snowflake. If raw has updates but the final table doesn’t, the issue could be in normalization, not extraction/transfer. This helped narrow a similar Snowflake case. [[JSON not copied](https://discuss.airbyte.io/t/2727)] 4) Validate that state advanced after initial sync - If the connection’s state didn’t update (or was invalid), the source might be querying from an unexpected position and returning nothing. Resetting the state and re-running can help confirm. This pattern showed up in MySQL-to-Snowflake where state/catalog size also caused Temporal message size issues on subsequent runs; upgrading fixed it for that user. [[MySQL→Snowflake fails](https://discuss.airbyte.io/t/2740); [follow-up fix](https://discuss.airbyte.io/t/2740)] 5) Eliminate platform/installation side constraints (only if applicable) - For very large datasets, some users observed issues with abctl-based installs and had better results on Docker/Kubernetes. If you’re on abctl and moving significant volumes, consider Docker/Kubernetes to rule this out. [[Large MySQL table](https://github.com/airbytehq/airbyte/issues/53614)] Action checklist for your case (SQL Server → Snowflake): - If you’re using cursor-based incremental: - Ensure the cursor column is updated on every change and is strictly increasing; avoid fields with duplicate or unchanged values on update. [[Snowflake source guidance on cursors](https://docs.airbyte.com/integrations/sources/snowflake#incremental-sync); [Incremental limits](https://docs.airbyte.com/platform/using-airbyte/core-concepts/sync-modes/incremental-append#known-limitations)] - If the cursor is a datetime, verify sub-second precision isn’t being lost; if it is, switch to a higher-fidelity cursor or CDC. [[MSSQL precision issue](https://github.com/airbytehq/airbyte/issues/10262)] - If you’re using CDC: - Increase the Initial Waiting Time in Seconds (Advanced) substantially and retry. [[PG CDC no records](https://github.com/airbytehq/airbyte/issues/50435)] - Check Snowflake _airbyte_raw_ tables to see if records are arriving there. If yes, focus on normalization. [[JSON not copied](https://discuss.airbyte.io/t/2727)] - If nothing changes, reset the connection state and rerun an incremental sync to confirm behavior. [[MySQL→Snowflake fails](https://discuss.airbyte.io/t/2740)] If you can share: - Whether you’re using cursor-based incremental or CDC, - The cursor column type, - Whether raw tables show incoming records on incremental runs, I can help pinpoint the next step more precisely.
f
We are using airbyte cloud for this poc
@kapa.ai we are using airbyte cloud for this poc.
k
A message from kapa.ai
Thanks for confirming you’re on Airbyte Cloud. A few targeted checks to explain “initial sync works, incremental emits 0 rows with no errors” for SQL Server → Snowflake: - Verify your incremental mode type. If you’re using cursor-based Incremental (not CDC), Airbyte filters with a query like “WHERE cursor_field >= last_sync_value.” If your updates don’t change the cursor column (e.g., an updated_at that isn’t actually updated), nothing will be emitted. Choose a cursor that is monotonically increasing and updated on every change, or switch to CDC. [[Incremental append limits](https://docs.airbyte.com/platform/using-airbyte/core-concepts/sync-modes/incremental-append#known-limitations); [Append+Dedup limits](https://docs.airbyte.com/platform/using-airbyte/core-concepts/sync-modes/incremental-append-deduped#known-limitations)] - If you’re using a datetime cursor on SQL Server, check for precision loss. There’s a known issue where datetime values can be rounded (e.g., milliseconds dropped), which can break incremental logic. If you observe rounding, pick a different cursor (e.g., a strictly increasing numeric) or use CDC. [[MSSQL datetime precision](https://github.com/airbytehq/airbyte/issues/10262)] - Check whether raw data reached Snowflake. Look in the _airbyte_raw_<stream> tables. If raw tables have new records but final tables don’t, the issue is likely in normalization rather than extraction/transfer. This pattern has appeared in similar Snowflake cases. [[MySQL→Snowflake thread](https://discuss.airbyte.io/t/2740)] - Consider state issues. If the connection state didn’t advance after the initial sync, the next run may query an unexpected window and return 0 rows. A state reset and re-run helps confirm. This was a factor in a MySQL→Snowflake case and upgrading resolved related issues for that user. [[MySQL→Snowflake thread](https://discuss.airbyte.io/t/2740)] What I’d suggest next in Cloud: 1) Confirm whether the connection is Incremental (cursor) or CDC, and share the cursor column/type. [[Incremental append limits](https://docs.airbyte.com/platform/using-airbyte/core-concepts/sync-modes/incremental-append#known-limitations); [Append+Dedup limits](https://docs.airbyte.com/platform/using-airbyte/core-concepts/sync-modes/incremental-append-deduped#known-limitations)] 2) Inspect Snowflake _airbyte_raw_ tables for the affected streams to see if records arrived. [[MySQL→Snowflake thread](https://discuss.airbyte.io/t/2740)] 3) If using a datetime cursor, check for sub-second precision; if present, test a different cursor or CDC. [[MSSQL datetime precision](https://github.com/airbytehq/airbyte/issues/10262)] 4) If still stuck, try resetting the connection state and re-running a small incremental test. [[MySQL→Snowflake thread](https://discuss.airbyte.io/t/2740)] Share those details and I can help pinpoint the exact fix in your Cloud setup.