+ Start a Discussion
thomasmorganthomasmorgan 

Bulk api InvalidBatch : Field name not found

Hello,

Hello,

I am using the bulk upload code described at http://www.salesforce.com/us/developer/docs/api_asynch/.

 

The only difference is that i am <a href="http://paydayloansonlineget.com/">instant payday loan</a> uploading a custom object type.  I can access Employee_c. But now i get a different error

 stateMessage='InvalidBatch : Field name not found : First Name'

 

First Name is the first column in the csv.

 

While debugging i can see that the temp csv is being created correctly. However i get this error when  checkResults executes. The code is exactly the same as in the sample java code for bulk api using REST.

 

I am using the free developer version of salesforce. I did check permissions of fields in employees. They are all at max visibility and read/write

 

Any pointers would be appreciated

 

Thanks

SFDC0539SFDC0539

As you are working with a custom object __c needs to be appended. Try FirstName__c

Andy BoettcherAndy Boettcher

If you're working with a standard object (Contact, Lead) - it's FirstName...no spaces.

 

-Andy