[destination-postgres] org.postgresql.util.PSQLException: ERROR
: column "properties_hs_line_..." specified more than once
#36968
-
Connector Namehubspot Connector Version0.51.0 What step the error happened?During the sync Relevant informationAfter the update, my connector got broken with a bizarre error on connecting Hubspot to Postgres: I believe the issue is related to Hubspot's handling of nested data, which creates additional columns in the temporary table. At least 3 people in Slack has reported the same issue over the last 20 days [1] [2] [3] |
Beta Was this translation helpful? Give feedback.
Replies: 12 comments 2 replies
-
Hello we have exactly the same error on our side when we try to synchronize Hubspot in PostgreSQL. Caution Synchronization fails with the following error Failure reason: java.lang.RuntimeException: org.postgresql.util.PSQLException: ERROR: column > "properties_hs_line_item_global_term_hs_recurring_billing_period" specified more than once For our part, we have identified that the issue comes from the We are currently using Airbyte version 0.50.56. We have tested different versions of the Hubspot connector. But we get the same error every time.
|
Beta Was this translation helpful? Give feedback.
-
I reported this tot he connector team take a look asap. Thanks for reporting the issue @zkid18 |
Beta Was this translation helpful? Give feedback.
-
@zkid18 @marinBlobr what version of Postgres Destination are you using? |
Beta Was this translation helpful? Give feedback.
-
Some user reported downgrading the Destination version to 2.0.1 worked as a workaround. I'm waiting for the connector team to check the issue. |
Beta Was this translation helpful? Give feedback.
-
For our part we use version |
Beta Was this translation helpful? Give feedback.
-
@marinBlobr the connector version not the Postgres version. Can you share the complete log file to analyze? |
Beta Was this translation helpful? Give feedback.
-
I was able to reproduce the issue using Sandbox credentials from Hubspot to local Postgres 2.0.4 |
Beta Was this translation helpful? Give feedback.
-
@marcosmarxm I tried with |
Beta Was this translation helpful? Give feedback.
-
In the stream, there are 2 columns that look sus:
I think is the case that column names in postgres have a max of 63 chars. The first 63 chars of |
Beta Was this translation helpful? Give feedback.
-
Made some investigation and confirm what @evantahler is saying. Getting this when run the query manually:
I think this problem should be solved for postgres destination. |
Beta Was this translation helpful? Give feedback.
-
Hey @marcosmarxm Should I create a new issue here or edit the initial topic since the problem is not with Hubspot? |
Beta Was this translation helpful? Give feedback.
-
@zkid18 I moved this to become a discussion as it is a limitation of Postgres handle large field names. |
Beta Was this translation helpful? Give feedback.
In the stream, there are 2 columns that look sus:
properties_hs_line_item_global_term_hs_recurring_billing_period
properties_hs_line_item_global_term_hs_recurring_billing_period_enabled
I think is the case that column names in postgres have a max of 63 chars. The first 63 chars of
properties_hs_line_item_global_term_hs_recurring_billing_period_enabled
would happen to beproperties_hs_line_item_global_term_hs_recurring_billing_period
... leading to a duplicate.