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 administrators checks the UI, they see that the record learning is not done.
Environment
SAP SuccessFactors Learning
Reproducing the Issue
- Call the Record Learning Events API with an incorrect Completion Status >
- The response returned from the API is 201 created.
Resolution
Through an API call, a 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
lms, learning, sf, successfactors, record, events, API, completion, status, incorrect, 201 created, response, call, error
Keywords
KBA , LOD-SF-LMS-ODA , Web Services OData , LOD-SF-LMS , Learning Management System , Problem