You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Having a similar issue here - trying to use Bulk 2.0 upsert, my csv file is definitely encoded in utf-8 but I get an error messagesaying 'is not valid Latin-1.
UnicodeEncodeError: 'latin-1' codec can't encode character '\u2019' in position 3307: Body ('’') is not valid Latin-1. Use body.encode('utf-8') if you want to send it encoded in UTF-8.
Even though the data is utf-8 encoding in the file, the job fails and returns a non-friendly message:
<h1>Bad Message 400</h1><pre>reason: Illegal character VCHAR=', '</pre>
I'd tried inserting
json.dumps
in the request to upload the data:This is the original code:
Adding the
json.dumps
method:This, however, makes the code to not fail, but the job does not upload anything.
The text was updated successfully, but these errors were encountered: