cancel
Showing results for 
Search instead for 
Did you mean: 

SF LMS API Errors

0 Kudos

Good day,

We currently integrating SF LMS with another 3rd party LMS tool which will manage all our scheduled offerings, however when running some of the api we getting errors like below

1. "message": "while trying to invoke the method com.plateausystems.elms.client.javabean.StudentJB.getCurrentStudentID() of a null object loaded from local variable 'studentJB'"

2. "message": "The property 'maxRowNum', used in a query expression, is not defined in type 'com.sap.lms.odata.criteria'."

3. "message": "The property 'revisionDate', used in a query expression, is not defined in type 'com.sap.lms.odata.criteria'."

Have anyone have came across such errors before and did you resolve them.

Best Regards,

Helmon.

Niladri_B_Nayak
Active Contributor
0 Kudos

Hi ,

For 1st error:

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.

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"
} }

Refer this KBA for details

For 2nd & 3rd error:

It seems currently we don't have an API to retrieve the entity details. Connect with an Integration Consultant or create an enhancement request.

Regards,

Niladri

Accepted Solutions (0)

Answers (0)