Connector Name source-Hubspot Connector Version v5...
# ask-ai
y
Connector Name source-Hubspot Connector Version v5.8..8 What step the error happened? During the sync Relevant information I’m encountering multiple critical issues while syncing from HubSpot to BigQuery using Incremental – Append + Dedup mode in Airbyte. The first sync works fine. The second sync fails with: - AsyncStreamConsumer errors due to incomplete stream statuses. - A BigQueryException triggered by an invalid date, possibly from a HubSpot record or Airbyte transformation. This combination results in replication failures, timeouts, and retry loops. Relevant log output
Copy code
2025-07-02 18:30:49 destination ERROR sync-operations-6 i.a.i.b.d.t.TyperDeduperUtil(executeTypeAndDedupe):223 Encountered Exception on unsafe SQL for stream HUBSPOT contacts with suffix _ab_soft_reset, attempting with error handling com.google.cloud.bigquery.BigQueryException: Query error: Invalid date: '-80697600000' at [2:16]
	at com.google.cloud.bigquery.Job.reload(Job.java:471) ~[google-cloud-bigquery-2.42.2.jar:2.42.2]
	at io.airbyte.integrations.destination.bigquery.typing_deduping.BigQueryDestinationHandler.execute(BigQueryDestinationHandler.kt:147) ~[io.airbyte.airbyte-integrations.connectors-destination-bigquery.jar:?]
	at io.airbyte.integrations.base.destination.typing_deduping.TyperDeduperUtil.executeTypeAndDedupe(TyperDeduperUtil.kt:219) ~[airbyte-cdk-typing-deduping-0.48.8.jar:?]
	at io.airbyte.integrations.base.destination.typing_deduping.TyperDeduperUtil.executeSoftReset(TyperDeduperUtil.kt:267) ~[airbyte-cdk-typing-deduping-0.48.8.jar:?]
	at io.airbyte.integrations.destination.bigquery.operation.BigQueryStorageOperation.softResetFinalTable(BigQueryStorageOperation.kt:135) ~[io.airbyte.airbyte-integrations.connectors-destination-bigquery.jar:?]
	at io.airbyte.integrations.base.destination.operation.AbstractStreamOperation.prepareFinalTable(AbstractStreamOperation.kt:291) ~[airbyte-cdk-typing-deduping-0.48.8.jar:?]
	at io.airbyte.integrations.base.destination.operation.AbstractStreamOperation.<init>(AbstractStreamOperation.kt:67) ~[airbyte-cdk-typing-deduping-0.48.8.jar:?]
	at io.airbyte.cdk.integrations.destination.staging.operation.StagingStreamOperations.<init>(StagingStreamOperations.kt:29) ~[airbyte-cdk-s3-destinations-0.48.8.jar:?]
	at io.airbyte.integrations.destination.bigquery.BigQueryDestination.getSerializedMessageConsumer$lambda$2(BigQueryDestination.kt:469) ~[io.airbyte.airbyte-integrations.connectors-destination-bigquery.jar:?]
	at io.airbyte.integrations.base.destination.operation.DefaultSyncOperation.createPerStreamOpClients$lambda$4$lambda$3(DefaultSyncOperation.kt:81) ~[airbyte-cdk-typing-deduping-0.48.8.jar:?]
	at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?]
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?]
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?]
	at java.base/java.lang.Thread.run(Thread.java:1583) [?:?]

Stack Trace: com.google.cloud.bigquery.BigQueryException: Query error: Invalid date: '-80697600000' at [2:16]
	at com.google.cloud.bigquery.Job.reload(Job.java:471)
	at io.airbyte.integrations.destination.bigquery.typing_deduping.BigQueryDestinationHandler.execute(BigQueryDestinationHandler.kt:147)
	at io.airbyte.integrations.base.destination.typing_deduping.TyperDeduperUtil.executeTypeAndDedupe(TyperDeduperUtil.kt:219)
	at io.airbyte.integrations.base.destination.typing_deduping.TyperDeduperUtil.executeSoftReset(TyperDeduperUtil.kt:267)
	at io.airbyte.integrations.destination.bigquery.operation.BigQueryStorageOperation.softResetFinalTable(BigQueryStorageOperation.kt:135)
	at io.airbyte.integrations.base.destination.operation.AbstractStreamOperation.prepareFinalTable(AbstractStreamOperation.kt:291)
	at io.airbyte.integrations.base.destination.operation.AbstractStreamOperation.<init>(AbstractStreamOperation.kt:67)
	at io.airbyte.cdk.integrations.destination.staging.operation.StagingStreamOperations.<init>(StagingStreamOperations.kt:29)
	at io.airbyte.integrations.destination.bigquery.BigQueryDestination.getSerializedMessageConsumer$lambda$2(BigQueryDestination.kt:469)
	at io.airbyte.integrations.base.destination.operation.DefaultSyncOperation.createPerStreamOpClients$lambda$4$lambda$3(DefaultSyncOperation.kt:81)
	at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1583)
k
Your issue syncing HubSpot to BigQuery with Airbyte (source-hubspot v5.8.8) in Incremental – Append + Dedup mode, where the second sync fails with a BigQueryException about an invalid date (e.g., Invalid date: '-80697600000'), is a known class of problem in Airbyte. ### Key Points from Knowledge Sources 1. Invalid Date Errors in BigQuery This type of error is often caused by a malformed or out-of-range date value being sent to BigQuery. For example, a timestamp like
-80697600000
is not a valid date in BigQuery and will cause the sync to fail. This can originate from: - HubSpot records with unexpected or null date values. - Airbyte transformations that incorrectly parse or convert date fields. - Legacy or custom properties in HubSpot with problematic data. Similar issues have been reported, where BigQuery rejects invalid or incorrectly formatted dates, causing the sync to fail and sometimes leading to retry loops or incomplete stream statuses. See, for example, [this issue](https://github.com/airbytehq/airbyte/issues/39502) and [this forum post](https://discuss.airbyte.io/t/1532). 2. AsyncStreamConsumer and Incomplete Stream Statuses Errors like "AsyncStreamConsumer errors due to incomplete stream statuses" are often a downstream effect of a source or destination error, such as the invalid date problem. When a stream fails partway, Airbyte may not emit the expected terminal status messages, leading to these errors and further retries or timeouts. This is also documented in [this issue](https://github.com/airbytehq/airbyte/issues/62467). 3. Recent Fixes and Recommendations - There have been fixes for date parsing issues in recent versions of the HubSpot connector (see [this issue](https://github.com/airbytehq/airbyte/issues/60879)), but some users still report problems even on newer versions. - If you have many custom properties in HubSpot, especially on the Contacts stream, this can exacerbate issues due to the complexity and length of generated queries. One workaround is to deselect unnecessary properties in your Airbyte stream configuration, as suggested in [this comment](https://github.com/airbytehq/airbyte/issues/62090). - Upgrading to the latest BigQuery destination connector (3.0.1+) is recommended, as it uses a new loading paradigm that may avoid some of these issues. Review the [BigQuery Migration Guide](https://docs.airbyte.com/integrations/destinations/bigquery-migrations) before upgrading. ### What You Can Do - Identify Problematic Fields: Try to narrow down which property or record is causing the invalid date. This may require reviewing your HubSpot data for null, negative, or out-of-range timestamps, especially in custom properties. - Reduce Selected Properties: Deselect non-essential properties in your Airbyte connection to reduce the risk of problematic data and long queries. - Upgrade Connectors: Ensure both your source-hubspot and destination-bigquery connectors are at the latest versions, as fixes are released frequently. - Check for Open Issues: If the problem persists on the latest versions, check for open issues or report your case with detailed logs to the Airbyte team. ### Summary Your error is a known issue related to invalid date values being sent to BigQuery, often from problematic HubSpot data or transformation logic in Airbyte. The best immediate steps are to reduce the number of selected properties, upgrade your connectors, and review your HubSpot data for invalid dates. If the issue persists, further investigation with Airbyte support may be necessary, as some edge cases are still being addressed in ongoing development. If you need more targeted help, please provide a sample of the problematic data or the full error logs for deeper analysis. --- References were integrated directly above as per your instructions.