<@U04S8PLJWMT> I'm having trouble with the increme...
# ask-ai
p
@kapa.ai I'm having trouble with the incremental sync of hubspot connector. When a deal, or a contact, is deleted or merged, this is not reflected in my database (the contact_id still appears). This forces me to make a full refresh from time to time, which is time consuming. Is there a possible fix for this?
k
The issue you're experiencing with the HubSpot connector's incremental sync not reflecting deletions (or merges) of deals or contacts is a known limitation. In Airbyte's standard incremental sync modes (including Incremental + Deduped), deletions in the source (HubSpot) are not automatically propagated to the destination database. This means that if a record is deleted or merged in HubSpot, it will still appear in your destination until you perform a full refresh, which, as you noted, can be time-consuming for large datasets. This limitation is due to how incremental sync works: it relies on a cursor field (like updated_at) to detect new or updated records, but it cannot detect deletions because deleted records are not returned by the source API during incremental syncs. As a result, deleted records remain in your destination unless you run a full refresh or use a different approach such as Change Data Capture (CDC), which is not available for HubSpot connectors at this time. This behavior is documented and discussed in several places: - "Standard incremental replication does not correctly transmit deletions from the source to the destination" [Explore Airbyte's Change Data Capture (CDC) synchronization](https://airbyte.com/tutorials/incremental-change-data-capture-cdc-replication) - "If a record at source got deleted, it should [be] cleaned up at destination as well... only CDC supports deletes" [Incremental + dedup is not cleaning up deleted records](https://github.com/airbytehq/airbyte/issues/10140) - "Records that I delete are not marked as deleted or archived or anything... we have too many companies, deals, contacts to be syncing this with a full refresh just to capture deletes" [Deleted Records aren't marked as deleted on Incremental Append Mode](https://github.com/airbytehq/airbyte/issues/47198) Possible Workarounds: - Periodic full refresh: As you are already doing, running a full refresh will ensure your destination matches the source, including deletions, but this is resource-intensive. - Custom logic: Some users implement a "soft delete" approach, where deletions are tracked in a separate table or a deleted flag is set, but this requires custom development and is not natively supported by the HubSpot connector. - Lookback window: One suggestion is to implement a configurable lookback window for incremental syncs, re-pulling recent data to catch missed changes, but this does not fully solve the deletion problem for records deleted outside the window [Schedule full refresh for incremental stream to reduce data inconsistencies over time](https://github.com/airbytehq/airbyte/issues/26513). Summary: Currently, there is no built-in fix in Airbyte's HubSpot connector to propagate deletions or merges during incremental syncs. This is a known limitation, and the only reliable way to ensure deletions are reflected in your destination is to perform a full refresh periodically. The Airbyte team is aware of this limitation, and there are discussions about possible improvements, but no immediate solution is available at this time. If you need deletions to be reflected automatically, you may want to follow or contribute to the relevant GitHub issues for updates and potential feature releases.