You need to sign in to do that
Don't have an account?
Kseniya Bogoslavskaya
simple salesforce IndexError: list index out of range with bulk API
I am trying to pull the data from `Opportunity` object in SalesForce using bulk API. My query looks like this:
```
opportunity = sf.bulk.Opportunity.query('SELECT Id, Name, LeadSource, Probability from Opportunity')
print(opportunity)
```
It does return the data with no issues, however, if I want to select more columns it gives me:
```
IndexError: list index out of range
```
Help!
```
opportunity = sf.bulk.Opportunity.query('SELECT Id, Name, LeadSource, Probability from Opportunity')
print(opportunity)
```
It does return the data with no issues, however, if I want to select more columns it gives me:
```
IndexError: list index out of range
```
Help!
Regards
Andrew
Note: code is not compiled and is supplied as is , so there is no guaretee on syntax
I am using `simple salesforce` library with Python. Do you happen to have a solution with Python?
Thank you for your answer!
Bulk Query doesn't check for compound fields (https://github.com/simple-salesforce/simple-salesforce/issues/182)
reference:
https://github.com/simple-salesforce/simple-salesforce/issues/182
Are you trying to query a compound field like Address?
Regards
Andrew