LMSSetValue Error

I have created SCORM files using Lectora and uploaded it to Moodle. When I access the modules it throws up the following error messages:



LMSSetValue Error:cmi.core.lesson_location not initialized

I am not certain if this is an error that needs to be fixed in Lectora before publishing or is a Moodle setting issue. I am not a programmer and need it explained in simple, non programming language.

Comments

  • tomljagogo
    tomljagogo Community Member Posts: 28
    I have a similar issue to you but mine is:



    LMSSetValue Error: cmi.core.lesson_status to [Complete]Incorrect data type
  • bewarethegeek
    bewarethegeek Community Member Posts: 5
    Me too, but mine is saying suspend value and that persistent data can't be saved.
  • omote28
    omote28 Community Member Posts: 1
    @FatimaMaharaj 60758 wrote:
    I have created SCORM files using Lectora and uploaded it to Moodle. When I access the modules it throws up the following error messages:



    LMSSetValue Error:cmi.core.lesson_location not initialized

    I am not certain if this is an error that needs to be fixed in Lectora before publishing or is a Moodle setting issue. I am not a programmer and need it explained in simple, non programming language.




    The same thing with me. I also get this: 'Persistent data not stored'. Is there any explanation and solution to this?
  • shannon7305
    shannon7305 Community Member Posts: 12
    When you get the LMSSetValue Error: cmi.core.lesson_status to [Complete]Incorrect data type that means that the lesson status action that you have in Lectora is incorrect.  The value is normally set to completed (all lower case letters) and make sure that you have the target set to AICC_Lesson_Status

    On: Show
    Action: Modify Variable
    Target: AICC_Lesson_Status
    Value: (this value is set by your LMS and it varies, please consult your LMS)  usually this value is set as:  completed
    Leave everything else at defaults.
  • shannon7305
    shannon7305 Community Member Posts: 12
    The ‘Persistent data not stored’  error gets displayed when the course sends suspend data back to the LMS and the LMS doesn't return it in the exact same way back to the course.  The Persistent Data error is caused because the amount of data that needs to be stored in your LMS has exceeded the allowed amount (Most default 4,096 bytes). There are a few ways to fix this issue.

    The most common fix it to contact you LMS and get directions on how to increase the amount of Persistent Data that can be stored in you LMS.

    The second way is to turn off the error on the course side by going into the Trivantis.JS file in your published content and change the “var bDisplayErr” to false. However this only turns off the error and you LMS server may not retain the variables.

    The last way is long and tedious. Each course question would have to be edited, to have single letter answers. So, answer 1 would be A, answer 2 would be B, and so on. Then you can hide the text block the displays the single letter answer, by going into the text block properties, and uncheck Initially Visible. Then you will want to make a new text blocks with you possible choices. This will decrease the amount of data that would be saved to you LMS.
    Probably the easy way would be to go to the test properties and deselect "retain variables between sessions", and make sure this is done at the test section and questions level.

    Alternatly, You would go to the question properties and change all your answers to be a one letter answer A, B, C and so on. The you would press finish in the question wizard. you could then go to the properties of the text blocks and make sure you have "initially visible" deselected. then you can make text blocks with your real answers in them. It wipes the answer if they leave the course, but the score and status will be retained.
  • mascott
    mascott Community Member Posts: 9
    Hi:  I have an error with the course in Chrome not Internet Explorer.  The audio does not work in Chrome.

    I double checked my mod variable settings (screenshot):

    On: Show
    Action: Modify Variable
    Target: AICC_Lesson_Status
    Value: completed

    The LMSValue Error indicates embedded media (audio I assume) is not working.

    What can I do if all the settings are correct and it works in Internet Explorer and not Chrome.

    It's urgent.

    Thank you.
  • klaatu
    klaatu Community Member Posts: 986 ☆ Roadie ☆
    Mascot, the SCORM API requires that a call LMSInitialize first be sent to the LMS. This prepares the LMS to receive and accept communications. The cmi.core.lesson_location is the data element that is used to bookmark the students location in the lesson. I believe, from your attachment which in part says "Not Initialized", that the error indicates that the lesson_location call was sent before the LMS received the LMSInitialize call (or it failed).

    Another thing to be cognizant of is suspend_data. This is where all the information from the lesson, including which pages have been viewed, is stored. You must make sure that the lesson settings in the LMS are set to allow reading and writing of suspend data. Also, I'm pretty sure the limit for SCORM 1.2 is 4,096 bytes of suspend data. If the lesson is big and a lot of information is being retained you might be exceeding the amount of data that can be stored.

    How big is the lesson? How many questions/survey's are there and do you need to track everything?

    Make sure the lessons Suspend Data settings on the LMS are allowing the reading and writing of Suspend Data.

    I'd also try to publish with the HTML Option "Convert page names to short ID-based names" selected.
  • timk
    timk Community Member Posts: 1,235 ✭ Legend ✭
    The error refers to cmi.core.lesson_location. This variable contains the bookmark. I can't find a reference to media / audio files? The error says "embedded page" which should be the course page (embedded in a frame provided by the LMS). "Not intialized" means the course tries to set the bookmark before the connection to the LMS was established.

    Sorry, I'm not sure how to solve it. If you deactivate the bookmarking feature, it should be solved, but in case you need it... I'd usually advise my learner to close and reopen the training.