https://slingdata.io logo
What might be the reason for this error
# sling-help
n
What might be the reason for this error? I am moving data from Postgres to BigQuery. The data I have checked and it's not corrupted.
Copy code
execution failed  fatal: ~ failure running replication (see docs @ https://docs.slingdata.io/sling-cli) --------------------------- public.core_user ---------------------------   ~ Error in Import Task {Location: \"\"; Message: \"Error while reading data, error message: CSV processing encountered too many errors, giving up. Rows: 16623; errors: 1; max bad: 0; error percent: 0\"; Reason: \"invalid\"}  ~ Error importing to BigQuery ~ Error in Import Task {Location: \"\"; Message: \"Error while reading data, error message: CSV processing encountered too many errors, giving up. Rows: 16623; errors: 1; max bad: 0; error percent: 0\"; Reason: \"invalid\"}
f
@nishorgo could you try with
target_options.format = parquet
? since BQ is rejecting the CSV, not sure why.
n
@flarco didn't work. There's a json column, which parquet doesn't support. I tried with json too and failed
f
if it's not a big file, you can try
target_options.use_bulk = false
also, you could run the original way with
SLING_KEEP_TEMP=true
and inspect the temp CSV file to see what's happening at the error line number
n
Where is the CSV file stored? I can't find it and the log doesn't tell anything about it.
f
@nishorgo if you run it with debug mode (env var
DEBUG=true
), you'll see the path