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
SimmoSimmo 

Bulk API issue updating Autonumber field

I'm having issues when using the Bulk API to upsert records with an Autonumber field. The field in question is the Name field on a custom object, which has a datatype of Autonumber.

I wouldn't expect to have to pass a value for an Autonumber field but I get the following error:
MISSING_ARGUMENT:Name not specified:

If I pass a value for the autonumber field I get the following message:
INVALID_FIELD_FOR_INSERT_UPDATE:Unable to create/update fields

Any idea of what the issue might be, should I be passing a value at all?
Danish HodaDanish Hoda
Please check if there is any old method /Constructor which is still having Name parameter.
SimmoSimmo
This is just a custom object, there is no Apex class around it with a constructor?
 
Danish HodaDanish Hoda
Please share your code