SAP Knowledge Base Article - Public

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>

Environment

SuccessFactors Employee Central - OData API

Reproducing the Issue

Run your OData POST (upsert) and observe the error

Cause

Missing permissions

Resolution

Your API user doesn't have permissions on work order . Please provide the permissions and check. 
Work Order related permissions are present in "Miscellaneous Permissions"

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-EC , EC SF API/OData Entities , LOD-SF-INT , SF Integrations - EC Payroll, Boomi/ HCI, API , How To

Product

SAP SuccessFactors HCM Core all versions