:rotating_light: [ HubSpot Schema Change Causing C...
# replication-troubleshooting
d
🚨 [ HubSpot Schema Change Causing Column Type Mismatches in BigQuery ] Hello, We have several dashboards built using HubSpot data, available in BigQuery through Airbyte Cloud. However, over the past two days the HubSpot schema was updated, and a large number of columns that were previously cast as numeric or string are now being cast as JSON. This change has broken all of our dashboards. 🐛 The bug seems related to the issue mentioned HERE. Is anyone else experiencing the same problem? Is there an active thread discussing this? I haven’t been able to find one. Thanks!
cc : @[DEPRECATED] Marcos Marx I allow myself to tag you since you seem to be quite reactive. Thanks a lot !
k
Thanks for flagging this — you’re not alone. Recent HubSpot connector updates have introduced schema/type changes that can impact downstream analytics, especially in BigQuery, and we’ve seen similar reports where fields that used to be typed (number/string) are now arriving as JSON-like structures. What we know from the knowledge sources: - Airbyte treats certain connector changes (schema, field types, stream behavior) as breaking; these require a version bump and can affect existing queries and dashboards. [[Breaking changes](https://docs.airbyte.com/platform/connector-development/testing-connectors/connector-acceptance-tests-reference#breaking-changes-and-backwards-compatibility)] - The HubSpot connector has had multiple breaking migrations over time that changed schemas or data types for specific streams (e.g., marketing_emails, property history). These migrations require a schema refresh and often a stream reset to align types. [[HubSpot migrations](https://docs.airbyte.com/integrations/sources/hubspot-migrations); [3.0.0](https://docs.airbyte.com/integrations/sources/hubspot-migrations#upgrading-to-300); [4.0.0](https://docs.airbyte.com/integrations/sources/hubspot-migrations#upgrading-to-400); [2.0.0](https://docs.airbyte.com/integrations/sources/hubspot-migrations#upgrading-to-200); [6.0.0](https://docs.airbyte.com/integrations/sources/hubspot-migrations)] - When schemas change, Airbyte recommends: refresh the source schema, review changes, and reset affected streams to ensure consistent typing in the destination. [[Schema change mgmt](https://docs.airbyte.com/platform/using-airbyte/schema-change-management)] - There are open issues around HubSpot property typing problems (e.g., values that look numeric but aren’t consistently numeric, multi-valued fields), which can trigger cast failures or necessitate fallback-to-string behavior. While these aren’t the exact JSON-casting you described, they show active work on type handling within HubSpot streams. [[Ticket IDs typing issue](https://github.com/airbytehq/airbyte/issues/60971); [contacts cast issue](https://github.com/airbytehq/airbyte/issues/62473)] About the specific PR you linked: - I’m sorry, but the knowledge sources provided don’t include details of PR 65947, so I can’t confirm its content or whether it specifically changes HubSpot field typing to JSON. If that PR indeed changes typing behavior, it could explain your BigQuery breakages, but I don’t have direct confirmation here. What you can do now: 1. Identify the connector version change window in Airbyte Cloud for your HubSpot source and check its migration notes. If a breaking migration applied, follow the migration steps: refresh schema and reset affected streams. [[HubSpot migrations](https://docs.airbyte.com/integrations/sources/hubspot-migrations); [Schema change mgmt](https://docs.airbyte.com/platform/using-airbyte/schema-change-management)] 2. If you’re using BigQuery Destination 3.0.1+ (Direct Load), be aware it changes how data is materialized and may interact differently with JSON-typed fields. For extremely wide HubSpot objects (lots of custom properties), BigQuery typing and merge behavior can be sensitive; some teams temporarily deselect problematic properties to stabilize. [[BigQuery sync limits](https://github.com/airbytehq/airbyte/issues/62090)] 3. If you see specific fields that flipped to JSON and broke dashboards, consider: - Temporarily casting/JSON-extracting in your SQL as a stopgap. - Deselecting non-essential properties in the affected streams. - Opening an issue with examples of fields that changed, including source/destination versions and sample records, so maintainers can verify expected typing. [[Ticket IDs typing issue](https://github.com/airbytehq/airbyte/issues/60971)] If you can share: - Your HubSpot source version in Airbyte Cloud, - BigQuery destination version, - A couple of example columns that flipped to JSON and which streams they’re in, I can map them against the published migration notes and known issues to suggest the minimal reset or field selection changes needed. As of now, the knowledge sources don’t explicitly document a broad change that retypes “a large number of columns” to JSON, so I can’t confirm a platform-wide incident from these docs alone. [[HubSpot migrations](https://docs.airbyte.com/integrations/sources/hubspot-migrations); [Schema change mgmt](https://docs.airbyte.com/platform/using-airbyte/schema-change-management)]
a
Copy code
/airbyte/integration_code/source_declarative_manifest/components.py", line 437, in transform_function
    transformed_value = target_type(original_value.replace(",", ""))
Testing a revert of the docker image for the hubspot connector to 6.0.1. You can do the same in the UI from the sources list if you suspect that release as the cause of your problem. Once confirm, it looks like this can be safely reverted. We could request that.
d
But since I am using Airbyte Cloud, I saw no option of reverting the connector version. Do I need to call the support for this ?
But the 1st I would love to understand if this behavior is a bug or an expected thing from the airbyte team actually... It seems strange to me
a
Ahh, we pivoted from cloud to self-hosted ourselves so I'm not sure for the cloud interface. I think reaching out to support is a good call, if you don't have an agreement with them though they can take a few days in my experience. 🤷
d
Thanks for the heads up man, indeed ! I am gonna keep an eye on this Github Issue.