Issue: BigQuery Table Not Populating After Uploading Invoice
Description:
While running the fraud detection use case, I followed all the steps mentioned in the README. After uploading an invoice to the GCS bucket, I noticed that the BigQuery tables are not getting populated. I encountered the following error:
Error while reading data, error message: JSON table encountered too many errors, giving up. Rows: 1; errors: 1. Please look into the errors[] collection for more details.
Error while reading data, error message: JSON processing encountered too many errors, giving up. Rows: 1; errors: 1; max bad: 0; error percent: 0
Error while reading data, error message: JSON parsing error in row starting at position 0: No such field: invoice_date.
Steps to Reproduce:
Follow the README instructions to set up the fraud detection use case.
Upload an invoice file to the specified GCS bucket.
Observe that BigQuery tables are not populated and the error message above is displayed.
What I’ve Tried:
Uploaded multiple invoice files to ensure the issue isn’t with the specific file.
Identified that the problem seems to be related to schema updates not happening as expected.
I suspect the issue lies with the ALLOW_FIELD_ADDITION option in the BigQuery load job configuration. The schema does not seem to update based on the input data. Below is the relevant code that seems to be causing the issue:
Request for Help:
Could anyone help me resolve the issue with the schema update? Specifically, the ALLOW_FIELD_ADDITION option doesn't seem to be functioning as expected, and the table is not accepting new fields from the uploaded JSON data.
Issue: BigQuery Table Not Populating After Uploading Invoice
Description:
While running the fraud detection use case, I followed all the steps mentioned in the README. After uploading an invoice to the GCS bucket, I noticed that the BigQuery tables are not getting populated. I encountered the following error:
Steps to Reproduce:
What I’ve Tried:
I suspect the issue lies with the
ALLOW_FIELD_ADDITION
option in the BigQuery load job configuration. The schema does not seem to update based on the input data. Below is the relevant code that seems to be causing the issue:Request for Help: Could anyone help me resolve the issue with the schema update? Specifically, the
ALLOW_FIELD_ADDITION
option doesn't seem to be functioning as expected, and the table is not accepting new fields from the uploaded JSON data.