heroku / salesforce-bulk

Python interface to the Salesforce.com Bulk API
MIT License
207 stars 154 forks source link

getting the Null byte exception while running query #35

Closed santhoshch closed 7 years ago

santhoshch commented 7 years ago

recs = [r for r in records] File "/usr/local/lib/python2.7/dist-packages/salesforce_bulk/salesforce_bulk.py", line 419, in get_batch_results for i, line in enumerate(iterator): Error: line contains NULL byte

JackaDu commented 7 years ago

same issue

santhoshch commented 7 years ago

in salesforce_bulk.py i have to added 472 and 512 lines with iterator = csv.reader((x.replace('\0', '') for x in resp.iter_lines()), ...) to make it work for me

lambacck commented 7 years ago

Fixed in #40