Skip to content
This repository was archived by the owner on Feb 7, 2026. It is now read-only.
This repository was archived by the owner on Feb 7, 2026. It is now read-only.

Load table from csv file: response error when works fine #329

@JSAURAJ

Description

@JSAURAJ

Environment details

  • OS: Ubuntu 18.04 LTS
  • Node.js version: 8.14.0
  • npm version: 6.4.1
  • @google-cloud/bigquery version:@google-cloud/[email protected]

Steps to reproduce

We start from a CSV that has 2 incorrect lines and we want to load in a bigquery table.

  1. When maxBadRecords=0, the job returns an error and the data is not inserted into the table. Expected response. Ok

  2. When maxBadRecords=(>=2), the job returns the same error, but the data in the destination is inserted correctly. It is an unexpected response according to the official documentation

Documentation says:
maxBadRecords | (Optional) The maximum number of bad records that BigQuery can ignore when running the job. If the number of bad records exceeds this value, an invalid error is returned in the job result. The default value is 0, which requires that all records are valid

Thanks

Metadata

Metadata

Assignees

Labels

🚨This issue needs some love.api: bigqueryIssues related to the googleapis/nodejs-bigquery API.priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions