simplify-scorm icon indicating copy to clipboard operation
simplify-scorm copied to clipboard

throwSCORMError : 104: Content Instance Terminated

Open sureshmariadass opened this issue 5 years ago • 3 comments

Hi @gabrieldoty

In SCORM 2004, when i click next page like previous or continue it have terminated. How to fix this issues? Please help me.

image

Advance thanks for your valuable reply.

sureshmariadass avatar Feb 03 '20 05:02 sureshmariadass

It appears that your SCO is trying to initialize the API after terminating it.

As per the SCORM 2004 API specifications, REQ_4.4:

If the communication session has been terminated and the Initialize() API method is invoked, the LMS shall set the error code to Content Instance Terminated (104) and return false.

The API is designed to be used by only one SCO. To change to another SCO (which I assume is what your previous and continue buttons do), you would have to instanciate a new API as well.

xob avatar Feb 10 '20 00:02 xob

Thanks @xob for your reply. SCORM 2004 unable to return the score

sureshmariadass avatar Feb 27 '20 11:02 sureshmariadass

SCORM 2004 unable to return the score

I believe that if the API is unable to return the score, it may be that the SCO has not set it., or maybe you are not looking at the correct path.

In SCORM 2004, the score is located in cmi.score.raw but in SCORM 1.2 it is located in cmi.core.score.raw

xob avatar Feb 27 '20 13:02 xob