<@U04S8PLJWMT> I have connection from Google Analy...
# ask-ai
s
@kapa.ai I have connection from Google Analytics to S3. The sync mode is incremental append and the cursor is just a date column without timestamp. The data is having duplicates with different _airbyte_raw_id_
k
The issue you're experiencing—duplicate records when syncing from Google Analytics to S3 using incremental append with a date-only cursor—is a known limitation in Airbyte's incremental sync logic. When the cursor field is just a date (without a timestamp), Airbyte cannot distinguish between records within the same day. As a result, during each sync, it may re-fetch all records for the last synced date, leading to duplicates with different
_airbyte_raw_id
values in your destination. This is because Airbyte provides an "at least once" guarantee, and with a date-only cursor, it cannot precisely track which records have already been synced within that day. This behavior has been observed and discussed by other users as well, especially with connectors like Google Analytics where the cursor granularity is limited to the day level and not more fine-grained (e.g., including a timestamp) [Incremental Syncing Issues on Several Connectors](https://discuss.airbyte.io/t/504), [Universal analytics connector issue](https://discuss.airbyte.io/t/3552). How to address this: - If possible, use a more granular cursor field (such as a timestamp) to reduce or eliminate duplicates. However, with Google Analytics, this may not be possible if the API only provides a date. - If you cannot change the cursor granularity, you will need to handle deduplication downstream, for example, by using the primary key fields in your data to identify and remove duplicates after loading. - Alternatively, consider using the "Incremental | Append + Deduped" sync mode if your destination supports it, as this mode will keep only the latest record per primary key and cursor value, reducing duplicates in the final table [Incremental Sync - Append + Deduped](https://docs.airbyte.com/platform/using-airbyte/core-concepts/sync-modes/incremental-append-deduped). Unfortunately, this is a limitation when working with date-only cursors, and unless the source provides a more granular field, some level of duplication is expected in incremental append mode. You may need to implement deduplication logic in your data pipeline to ensure data quality. For more details, see the related discussions and documentation: - [Incremental Sync - Append](https://docs.airbyte.com/platform/using-airbyte/core-concepts/sync-modes/incremental-append) - [Universal analytics connector issue](https://discuss.airbyte.io/t/3552) - [Incremental Syncing Issues on Several Connectors](https://discuss.airbyte.io/t/504)