Symptom
When attempting to create a job requisition via SFAPI via UPSERT, getting the following response:
UPSERT operation status; Job Status:{ERROR}, Message:{}
UPSERT operation FAILED; Total:1, Successful:0, Failed:1, Not Processed:0
Index:{0}, Edit Status:{NOEDIT}, Error Status:{ERROR}, Message:{Job requisition status is invalid}
Environment
SAP SuccessFactors Recruiting Management
Cause
The guid in the SFAPI payload is causing the issue as that guid already exists. Since it already exists in the system, the UPSERT tries to update that entry instead of creating a new one. That GUID refers to an existing job requisition, which is in the closed status, so it's not possible to update the status.
Resolution
For creating the job requisition, to avoid this issue, it is advised to use the INSERT operation instead so that this operation would indicate what is the real root cause: that guid already exists in the system.
When using a valid guid which is not associated to another job requisition, the INSERT/creation of the job requisition is successful.
Keywords
sf, api, job, requisition, sfapi, upsert, insert, operation, error, invalid, status, jobreqstatus, guid, req, id. , KBA , LOD-SF-RCM-API , Webservices & APIs , Problem