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
Revathi SriRevathi Sri 

Error when doing "Upsert" operation in bulk API from client app(javacode) into salesforce.

I am getting error when trying to "UPSERT" the records from client app(java code) into salesforce using BULK API. Please find the following error " [AsyncApiException  exceptionCode='Invalid Job'  exceptionMessage='External ID was blank for Account. An External ID must be specified for upsert'].Even though after setting the external id field in account object.Please help me in this.
used the below code:
https://developer.salesforce.com/docs/atlas.en-us.api_asynch.meta/api_asynch/asynch_api_code.htm
RAM AnisettiRAM Anisetti
Hi Revathi,

The External ID field allows you to store unique record IDs from an external system, typically for integration purposes.you need to intiate your batch with External ID field values too.

please refere below link for your reference

http://salesforce.stackexchange.com/questions/14740/how-to-perform-upsert-in-salesforce-bulk-api
Revathi SriRevathi Sri
Hi RAM,

Thanks for your reply, I have created External ID in Account Object and given in CSV file as well. But still I am facing the same error. I have created my client application using Web Service Toolkit(WSC 36.0 with the dependent jars) and generated Partner jar using Partner WSDL. Kindly help me to solve this issue.