Skip to content

Please look into the error stream for more details. #5624

Closed

Description

@ron819

I'm using a python script to COPY/INSERT data from google storage to a table in big query:

uri = 'gs:// ....   .csv.gz'
load_job = client.load_table_from_uri(
    uri,
    dataset_ref.table('testtable'))  # API request

I'm getting:
google.api_core.exceptions.BadRequest: 400 Error while reading data, error message: CSV table encountered too many errors, giving up. Rows: 1; errors: 1. Please look into the error stream for more details.
But it doesn't say where is the error stream? I checked Job History in the UI and it does not list there.
How can I get access to this error stream?

When I'm doing auto detect from the UI for the file everything works and the data is loaded correctly.

Activity

  1. changed the title [-]google.api_core.exceptions.BadRequest: 400 Error while reading data, error message: CSV table encountered too many errors, giving up. Rows: 1; errors: 1. Please look into the error stream for more details.[/-] [+]Please look into the error stream for more details.[/+] on Jul 16, 2018
  2. added
    type: questionRequest for information or clarification. Not an issue.
    api: bigqueryIssues related to the BigQuery API.
    on Jul 16, 2018
  3. tseaver commented on Jul 16, 2018

    @tseaver
    Contributor

    The load_job instance has an errors property, which will return a list of the error mappings returned by the API call. See also troubleshooting errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

api: bigqueryIssues related to the BigQuery API.type: questionRequest for information or clarification. Not an issue.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions