I'm trying to load the data of a csv
file that is saved in GCS
into BigQuery
. The csv file is in the UTF-8
format and it contains 7 columns. I've specified these columns in the data scheme (all strings and nullable) and I've checked the contents of the csv file which seems fine.
When I try to load the data I get the following error:
Too many errors encountered. (error code: invalid) gs://gvk_test_bucket/sku_category.csv: CSV table references column position 1, but line starting at position:1750384 contains only 1 columns. (error code: invalid)
The weird thing is that the file only contains 680228 rows.
When I check the allow jagged lines
options the table is being generated, but only the first column is filled with the entire comma separated string.
Can someone help me?
Example row
119470,Fashion,Fashion Own,Menswear,Menswear Brands Other,Formal Shirts,Long Sleeve Shirts