BIGQUERY CSV LOAD
Prepare a UTF-8 CSV with the right delimiter for BigQuery
When BigQuery rejects a CSV load, inspect the failing value alongside its header. A date landing in the amount column calls for a delimiter or quote check. A date in the intended column calls for a schema check.
Find which column received the failing value
A BigQuery CSV load can fail because bytes are not decoded as expected, fields are separated incorrectly, or the parsed values do not fit the destination schema. LocaCSV handles the first two layers; the table schema and type coercion remain BigQuery decisions.
- Invalid characters: convert the confirmed source encoding to UTF-8.
- Columns shift: set the field delimiter and quote behavior to match the export.
- Load parses but types fail: inspect the destination schema, date format, and null values.
Check the load job settings before editing rows
In a test row with the customer name “Jones, Ana”, the quoted comma belongs to the name. If the amount shifts one column right, fix how the CSV is read before changing the destination table’s field types.
- Do not assume comma because the file extension is .csv; inspect the first rows.
- Keep identifiers such as account codes as text when the destination schema requires them.
- A UTF-8 conversion does not remove a BOM or change a header unless you explicitly choose that format.
Prepare a small CSV for a test load
LocaCSV is a pre-load check for files within its browser limit. It does not replace BigQuery Storage Write API, Cloud Storage, or a large-scale load job.
- Copy the export and open it in LocaCSV's format conversion workspace.
- Select the source encoding and delimiter that keep the preview aligned.
- Set UTF-8 and the delimiter expected by the BigQuery load job, then save a separate CSV.
- Use the converted sample to validate the load schema before moving to the full export.
Reconcile rows before and after loading
- Load a small sample into a test table. Check the row count and compare a record containing a quoted comma with the original name, date and amount.
- Quoted commas stay inside their field and do not create extra columns.
- The load preview matches the expected schema and header-skip setting.
- The job's output row count and rejected-row report are recorded with the source filename.
Handle BigQuery errors after parsing
If parsing succeeds but the job rejects rows, review schema mode, required fields, date formats, and numeric precision. If the extract is too large for a browser pre-check, create bounded samples rather than claiming the whole load was validated locally.
Keep the CSV settings with the load job
Keep the encoding, delimiter, header, schema version, and reconciled row count beside the load job configuration for the next refresh.
Official documentation
Limits and import formats can change. Use the official documentation below as the final check for your account and plan.