Skip to main content
Participant
October 10, 2022
Question

406 Errors Caused by cmi.score.scaled being set to 'NaN'

  • October 10, 2022
  • 1 reply
  • 1052 views

I've started noticing Captivate courses causing 406 errors because they are attempting to set cmi.score.scaled to 'NaN' which is not allowed.

 

According to SCORM specifications:
cmi.score.scaled: The scaled data model element is a number that reflects the performance of the learner. The value of the data model element is scaled to fit the range –1.0 to 1.0 inclusive.
 

  • Data Type: real (10,7) range (-1..1). 
  • Value Space: A real number with values that is accurate to seven
    significant decimal figures. The value shall be in the range of –1.0 to 1.0,
    inclusive.

 
If the SCO tries to set the cmi.score.scaled to a value that is not a real number, then the LMS shall set the error code to 406 - Data Model Element Type Mismatch. The LMS shall not alter the state of the data model element based on the request.

 

Was there a recent change that caused this or is there a setting that can be changed in Captivate to prevent them? 
 

 

 

    This topic has been closed for replies.

    1 reply

    Lilybiri
    Legend
    October 10, 2022

    Do you create a SCO, which means that you have quiz slides and/or scored objects in the project and did set up Reporting Can you mention the exact version you are using (see full number under Help, About Captivate)? 

    Some LMSs only accept SCOs. Other LMSs do also allow to upload a zipped package without having Reporting set up in Quiz Preferences.

    Participant
    October 11, 2022

    Hi, I had a similar issue, I'm downloading the latest version of Captivate to ensure the issue isn't there.

    I have 5 modules and an assessment module  the assessment module is working ok.

    In the other modules I have a did you know questions which are not scored, and the completion and success criteria are slide views 100%.

    Do you know what is causing the issue “From the SCORM debug logs we can see the course is attempting to set cmi.score.scaled to 'NaN' (Not a Number).
    That causes a 406 error because that element can only accept real numbers.

    Any help is appreciated.

    Lilybiri
    Legend
    October 11, 2022

    Personally I prefer avoiding the criterion '100% slide views'. For multiple reasons that is not always evaluated correctly by some LMSs. A workflow which will override but guarantee more success is to add one scored object which needs to be clicked by all learners. You can than use the Quiz score as criterion, set the passing score to 100%. No need to show the results slide to the learner.