thousands-library-17999
12/17/2020, 7:02 PMripe-musician-59933
12/17/2020, 8:38 PMtap-outbrain (out)
prefix. The one(s) printed just before the error are the likely culprits 🙂thousands-library-17999
12/17/2020, 8:42 PMripe-musician-59933
12/17/2020, 8:42 PMthousands-library-17999
12/17/2020, 8:43 PMtarget-postgres | ERROR Exception writing records
target-postgres | Traceback (most recent call last):
target-postgres | File "/home/ubuntu/meltano-projects/taboola2bigquery/.meltano/loaders/target-postgres/venv/lib/python3.8/site-packages/target_postgres/postgres.py", line 295, in write_batch
target-postgres | written_batches_details = self.write_batch_helper(cur,
target-postgres | File "/home/ubuntu/meltano-projects/taboola2bigquery/.meltano/loaders/target-postgres/venv/lib/python3.8/site-packages/target_postgres/sql_base.py", line 834, in write_batch_helper
target-postgres | batch_rows_persisted = self.write_table_batch(
target-postgres | File "/home/ubuntu/meltano-projects/taboola2bigquery/.meltano/loaders/target-postgres/venv/lib/python3.8/site-packages/target_postgres/postgres.py", line 609, in write_table_batch
target-postgres | self.persist_csv_rows(cur,
target-postgres | File "/home/ubuntu/meltano-projects/taboola2bigquery/.meltano/loaders/target-postgres/venv/lib/python3.8/site-packages/target_postgres/postgres.py", line 563, in persist_csv_rows
target-postgres | cur.copy_expert(copy, csv_rows)
target-postgres | psycopg2.errors.NotNullViolation: null value in column "campaignonair" violates not-null constraint
target-postgres | DETAIL: Failing row contains (00e5cac90872acdff6e41d66fc63cd4ed6, ES_BMG_BLOG_ART2, null, null, f, 006d1f4f4dc46dfd9b02934416355f6883, ES_BMG_BLOG_ART2, f, 30, EUR, null, null, 2020-04-22 09:46:01+00, 2020-05-06 11:48:20+00, 2020-04-22, 2021-05-31, f, DAILY, SPEND_ASAP, null, null, 0.1, 2020-12-17 00:13:32.7786+00, 1608165459, null, 2020-12-17 00:37:39.9168+00).
target-postgres | CONTEXT: COPY tmp_0c7ed48b_b33b_4ad1_8f70_80812500d2a8, line 1: "00e5cac90872acdff6e41d66fc63cd4ed6,ES_BMG_BLOG_ART2,NULL,NULL,False,006d1f4f4dc46dfd9b02934416355f68..."
target-postgres |
target-postgres | CRITICAL ('Exception writing records', NotNullViolation('null value in column "campaignonair" violates not-null constraint\nDETAIL: Failing row contains (00e5cac90872acdff6e41d66fc63cd4ed6, ES_BMG_BLOG_ART2, null, null, f, 006d1f4f4dc46dfd9b02934416355f6883, ES_BMG_BLOG_ART2, f, 30, EUR, null, null, 2020-04-22 09:46:01+00, 2020-05-06 11:48:20+00, 2020-04-22, 2021-05-31, f, DAILY, SPEND_ASAP, null, null, 0.1, 2020-12-17 00:13:32.7786+00, 1608165459, null, 2020-12-17 00:37:39.9168+00).\nCONTEXT: COPY tmp_0c7ed48b_b33b_4ad1_8f70_80812500d2a8, line 1: "00e5cac90872acdff6e41d66fc63cd4ed6,ES_BMG_BLOG_ART2,NULL,NULL,False,006d1f4f4dc46dfd9b02934416355f68..."\n'))
ripe-musician-59933
12/17/2020, 8:44 PMcampaignOnAir
column should hold a non-null boolean value: https://github.com/singer-io/tap-outbrain/blob/a111e43b64047219eacd70d8920f3d431c0b62b2/tap_outbrain/schemas.py#L98, but the target is receiving a record from the tap where it is null anywaythousands-library-17999
12/17/2020, 8:47 PMripe-musician-59933
12/17/2020, 8:48 PMthousands-library-17999
12/17/2020, 8:51 PMripe-musician-59933
12/17/2020, 8:52 PMnull
anywaythousands-library-17999
12/17/2020, 8:54 PMripe-musician-59933
12/17/2020, 8:54 PMpip_url
for tap-outbrain
in your project, don't forget to reinstall it using meltano install extractor tap-outbrain