Symptom
"learningEvent/v1/recordLearningEvents" API returns an error message: "Missing replacement for place holder in message ''%1$s' can not be mapped as a property or an annotation.' for following arguments '[]'!".
Sample BODY:
{
"@odata.type": "#recordLearningEvents",
"recordLearningEvents": [
{
"componentTypeID": "COURSE",
"componentID": "TEST ITEM",
"revisionDate": 1701678840000,
"studentID": "USER1",
"completionStatusID": "COMPLETED",
"completionDate": 1428506077000,
"completionTimeZoneID": "UTC",
"grade": "100",
"revisionNumber": "1",
"creditHours": null,
"cpeHours": null,
"contactHours": null,
"totalHours": null,
"instructorName": null,
"scheduleID": null
}
]
}
"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 Learning
Cause
There's a space between the container and its value (ex.: "componentTypeID": "COURSE").
Resolution
Removing the space should solve the problem.
Sample BODY:
{
"@odata.type":"#recordLearningEvents",
"recordLearningEvents": [
{
"componentTypeID":"COURSE",
"componentID":"TEST ITEM",
"revisionDate":1701678840000,
"studentID":"USER1",
"completionStatusID":"COMPLETED",
"completionDate":1428506077000,
"completionTimeZoneID":"UTC",
"grade":"100",
"revisionNumber":"1",
"creditHours":null,
"cpeHours":null,
"contactHours":null,
"totalHours":null,
"instructorName":null,
"scheduleID":null
}
]
}
See Also
Keywords
api, error, learning, lms, odata, call, body, missing, replacement, for, place, holder, annotation, recordLearningEvents , KBA , LOD-SF-LMS-ODA , Web Services OData , Problem
SAP Knowledge Base Article - Public