SAP Knowledge Base Article - Public

2536556 - Record Learning Events API Error

Symptom

If the completion status is not a valid status in the API request, the API does not say that it is not a valid completion status.

It returns 201 OK and when the admin checks the UI, they see that the record learning is not done.

Environment

SAP Successfactors Learning

Learning Management System (LMS)

Reproducing the Issue

Call the Record Learning Events API with a incorrect Completion Status.

The response returned from the API is 201 Created.

Resolution

Through an API call, user can pass in a list of learning records to process. Out of the list of records being passed, some records will get created successfully and some records might fail with errors.  The requirement is best efforts – process the good one and fail the bad ones with specific error. The response will not distinguish  the records for which it passed and for which it failed.Thus, 201 generally means that the API call is processed successfully. It is up to the calling client to parse the response and decide what to do next.

 This is an expected behavior.

See Also

Record Learning Events, API, completion Status incorrect, 201 created response,incorrect response,completion status,status

Keywords

KBA , LOD-SF-LMS-ODA , Web Services OData , Problem

Product

SAP SuccessFactors HCM Core 1702 ; SAP SuccessFactors Learning 1511 ; SAP SuccessFactors Learning 1602 ; SAP SuccessFactors Learning 1605 ; SAP SuccessFactors Learning 1608 ; SAP SuccessFactors Learning 1611 ; SAP SuccessFactors Learning 1702 ; SAP SuccessFactors Learning 1705 ; SAP SuccessFactors Learning 1708 ; SAP SuccessFactors Learning 1711 ; SuccessFactors Learning 1408 ; SuccessFactors Learning 1411 ; SuccessFactors Learning 1502 ; SuccessFactors Learning 1505 ; SuccessFactors Learning 1508