howdy :wave: the `target-bigquery` throws and `OB...
# troubleshooting
f
howdy 👋 the
target-bigquery
throws and
OBJECT is not a valid value
error when data from
hubspot-tap
is piped into it.
Copy code
cat hubspotdata | meltano --log-level=debug invoke target-bigquery
how do I debug somehting like this? any idea what causes this?
Copy code
INFO Appending to t_test-contact_lists_0ca392f6d2a24f889f52fcad32ca20c1
INFO loading t_test-contact_lists_0ca392f6d2a24f889f52fcad32ca20c1 to BigQuery
ERROR failed to load table t_test-contact_lists_0ca392f6d2a24f889f52fcad32ca20c1 from file: 400 POST <https://bigquery.googleapis.com/upload/bigquery/v2/projects/warehouse-310706/jobs?uploadType=resumable>: Invalid value for type: OBJECT is not a valid value
CRITICAL 400 POST <https://bigquery.googleapis.com/upload/bigquery/v2/projects/warehouse-310706/jobs?uploadType=resumable>: Invalid value for type: OBJECT is not a valid value
From here I'd try to narrow down your output file, it looks like it's contact-list specefic, so maybe update your
meltano.yml
to just pull contact-list information. Verify you can production the issue. Then If you still don't see the issue, I'd slap some print ln's in target-bigquery around wherever that error is happening. Since there's not a stack trace it makes this a little harder
e
Hey @finn_frotscher . So from looking at the contact_lists schema, it seems like there are 2 potentials fields causing the issue for bigquery. Either
filters[*][*]
or
metaData
. So within
hubspotdata
you might wanna look for strange values of those that are not actual JSON objects.
f
thank you. so far no progress 😞 i will keep you posted
its not the contacts. its
contact_lists
. the contacts sync fine, but are in some kind of nested structure.
Copy code
select:
      # - contacts.*
      - contact_lists.*
since i am getting the data i need for now, i wount investiage further. should i open a ticket ?
e
If you're willing to, yes please. The issue tracker for tap-hubspot is https://github.com/singer-io/tap-hubspot/issues