function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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