Forum Discussion

Sampark's avatar
Sampark
Community Member
13 days ago

Issue with Tracking Rise SCORM Progress on LMS

I'm currently working on integrating a SCORM 2004 course titled "employee-health-and-wellness-sample-course-scorm2004_2-YVpCR5M_.zip" on my LMS panel. However, when I try to track the learner's progress, no data is being returned.

Also when i am try other SCORM File then that's file Return Error.

Error => Warning: Course was unable to find the LMS API for CommitData. Course may have been launched from scormcontent/index.html, or the course package is not within an LMS. Saving of student data will not occur.
index.html:236


Same error return for all API methods.

I have a mock script in place for tracking SCORM activity, but it seems that progress data isn't being captured. Here's the script I'm using:

<script>

    function onIframeLoad() {

        console.log("SCORM iframe loaded SJ");

    }

 

    const iframe = document.getElementById('scormIframe');

    if (iframe) {

        iframe.addEventListener('load', onIframeLoad);

    }

 

    window.API_1484_11 = {

        dataModel: {},

 

        Initialize: function(param) {

            console.log("SCORM 2004 Initialize called SJ with:", param);

            return "true";

        },  

 

        Terminate: function(param) {

            console.log("SCORM 2004 Terminate called SJ with:", param);

            console.log("Final SCORM 2004 Data Model SJ:", this.dataModel);

            return "true";

        },

 

        GetValue: function(element) {

            console.log("SCORM 2004 GetValue called for SJ:", element);

            return this.dataModel[element] || "";

        },

 

        SetValue: function(element, value) {

            console.log("SCORM 2004 SetValue called for SJ:", element, "with value:", value);

            this.dataModel[element] = value;

 

            if (element === "cmi.completion_status") {

                console.log("Completion status updated SJ:", value);

            }

 

            return "true";

        },

 

        Commit: function(param) {

            console.log("SCORM 2004 Commit called SJ");

            return "true";

        },

 

        GetLastError: function() {

            return "0"; // No error

        },

 

        GetErrorString: function(errorCode) {

            return "No error";

        },

 

        GetDiagnostic: function(errorCode) {

            return "No diagnostic information SJ";

        }

    };

</script>

 u please let me know how can i track the progress of RISE SCORM file.


1 Reply

  • Hello Sampark,

    Happy to help!

    It looks like you added a custom script to your course's published output. Your Rise 360 published course should be able to track progress without it. Have you tried testing your course in SCORM Cloud without the tracking script to see what kind of progress gets reported? If you can replicate the issue in SCORM Cloud without the custom JavaScript code added to the published output, please open a case with our support team here so we can request a copy of your course for testing.