Symptom
Passing the "okToRehire" field in an EmpEmployment upsert request returns an ERROR with the following message:
<d:message>Property okToRehire is not upsertable. Please check the property setting in Admin Center > OData API Data Dictionary or the entity metadata.</d:message>
Sample request
Response
NOTE: Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.
Environment
SAP SuccessFactors HXM Suite
Cause
"okToRehire" is a field that's associated to an employee's termination, therefore it is available as read-only in the EmpEmployment entity and cannot be upserted.
Resolution
If you wish to change this field (and other information related to termination), you must perform an upsert to the EmpEmploymentTermination entity.
Please refer to this page from the Employee Central OData API Reference Guide: EmpEmploymentTermination
Keywords
<d:message>Property okToRehire is not upsertable. Please check the property setting in Admin Center > OData API Data Dictionary or the entity metadata.</d:message>, upsert, payload, message, error, response, integration, change, modify, edit, call, request, insert, post, employee, central, employment, rehire, termination, terminate
Product
SAP SuccessFactors HXM Suite all versions