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
RamanaRamana 

Bulk API InvalidJob Error

Hello All,

 

I am trying to create a Bulk API job doing 'UPSERT' to a custom object and getting the following error.

 

job = new JobInfo();

job.setObject("Publication__c");

job.setOperation(OperationEnum.upsert);

job.setContentType(ContentType.CSV);

job.setExternalIdFieldName("External_ID__c ");

 

InvalidJob : Field name provided, External_ID__c is not readable for Publication__c

 

Any help with more details on the error or how to solve is greately appreciated.

 

Thanks in advance.

Ramana Maddikunta

Best Answer chosen by Admin (Salesforce Developers) 
dkadordkador

The error indicates the user you're using with the API does not have access to the external_id__c field.  Check your profile and FLS settings.

All Answers

dkadordkador

The error indicates the user you're using with the API does not have access to the external_id__c field.  Check your profile and FLS settings.

This was selected as the best answer
RamanaRamana

Thanks! dkodar.