SAP Knowledge Base Article - Public

3090009 - EmpEmployment entity's "okToRehire" field is not upsertable - SAP SuccessFactors OData API

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 &gt; OData API Data Dictionary or the entity metadata.</d:message>

Sample request

POST https://apisalesdemo4.successfactors.com/odata/v2/upsert
 

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 &gt; 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
, KBA , LOD-SF-INT-EC , Employee Central SFAPI & OData Entities , LOD-SF-INT , Integrations , Problem

Product

SAP SuccessFactors HCM suite all versions