2268713 - LMS OData API Error when searching by courseCategory

SAP Knowledge Base Article - Public

2268713 - LMS OData API Error when searching by courseCategory

Symptom

  • The following error is returned when searching the catalog by courseCategory
    • {"error":{"code":null,"message":"while trying to invoke the method com.plateausystems.elms.client.javabean.StudentJB.getCurrentStudentID() of an object loaded from local variable 'studentJB'********"}}

Environment

  • SuccessFactors Learning Management System

Reproducing the Issue

Cause

  • The error indicates that the backend server is unable to obtain the user information for the request. It must be able to determine the student for the request.

Resolution

  • In the original token request for this API call the userType defined was 'admin'. This API must be sent from the perspective of a student and not an admin. Based on that in order for the call to work correctly you must change the userType in the token request from admin to user. See below for the example.
    • {
         "grant_type":"client_credentials",
         "scope":{
            "userId":"userSF",
            "companyId":"DEFAULT",
            "userType":"user",
            "resourceType":"learning_public_api"
      } }

Keywords

KBA , LOD-SF-LMS , SuccessFactors Learning , Problem

Product

SAP SuccessFactors Learning 1511