SAP Knowledge Base Article - Preview

2659412 - External employee / staff - OData API EmpJOB upsert error - WorkOrder for contingent worker does not exist

Symptom

You are trying to upsert the following JobInfo (EmpJob) fields and you get an error:

POST https://apixxxx.successfactors.com/odata/v2/upsert?purgeType=INCREMENTAL

Example payload:


"__metadata": {
"uri": "https://apixxxx.successfactors.com:443/odata/v2/EmpJob(seqNumber=2L,startDate=datetime'2018-02-21T00:00:00',userId='123')",
"type": "SFOData.EmpJob"
},
"userId":"123",
"jobCode":"CSXXX",
"startDate":"/Date(1519171200000)/",
"eventReason":"DTA",
"employmentType": "11",
"company":"1",
"standardHours": "40",
"position": "11111111",
"location": "2222",
"costCenter": "33333",
"managerId":"22222"

 

ERROR response:

<?xml version="1.0" encoding="utf-8"?>
<entry>
<content type="application/xml">
<m:properties>
<d:key>EmpJob/seqNumber=2,EmpJob/startDate=2018-02-21T00:00:00.000-05:00,EmpJob/userId=123</d:key>
<d:status>ERROR</d:status>
<d:editStatus m:null="true"></d:editStatus>
<d:message>WorkOrder for contingent worker 123 does not exist. Import the WorkOrder record for contingent worker 123 before importing Job History records.
</d:message>
<d:index m:type="Edm.Int32">0</d:index>
<d:httpCode m:type="Edm.Int32">500</d:httpCode>
<d:inlineResults m:type="Bag(SFOData.UpsertResult)"></d:inlineResults>
</m:properties>
</content>
</entry>
</feed>


Read more...

Environment

SuccessFactors Employee Central - OData API

Product

SAP SuccessFactors HCM Core all versions

Keywords

  • WorkOrder for contingent worker does not exist
  • OData API EmpJob upsert fail
  • External employee / staff
  • Job information interface fail
, KBA , LOD-SF-INT-ODATA , OData API Framework , LOD-SF-INT , Integrations , LOD-SF-INT-EC , Employee Central SFAPI & OData Entities , How To

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.