LMSGetValue(cmi.core.suspend_data) failed. Invalid argument error

1,390 views
Skip to first unread message

scormsayz

unread,
Nov 4, 2009, 11:29:22 AM11/4/09
to eLearning Technology and Development
After reading the post about using suspend_data to track lesson
completion (I have 6 lessons in my SCO)
It seemed exactly what I was after. If a series of .swf files (a
lesson) were complete, put a check mark in the complete column in my
menu.

I am using the SCORM Test Wrap by Click to learn and everything is
working great. Once my lesson is complete, A check mark shows up etc.
I thought I was home free!

I then uploaded my SCO to Test Track. On this LMS, I am getting the
above error. Obviously, something is wrong otherwise I wouldn't get an
error. I am out of ideas of what to debug though.

My get:
return doLMSGetValue('cmi.core.suspend_data');

My set:
return doLMSSetValue('cmi.core.suspend_data', data);

I pass into the LMS as a string, then use split() to turn it back into
an array at the Flash level. I appreciate everyone's help so far. It
has been a big help.

Ryan Meyer

unread,
Nov 4, 2009, 11:56:23 AM11/4/09
to elearning-technolo...@googlegroups.com
Could it be that your course is attempting to run as SCORM 2004 as opposed to SCORM 1.2? In SCORM 2004, this field was renamed to "cmi.suspend_data", so the property name you're passing in would be invalid. I can't tell whether the "Invalid argument error" you're seeing is a Javascript error, or a SCORM API error. Looking at the communication logs in Test Track should tell you if it's the latter.

-Ryan

Raymond Sugel Sr

unread,
Nov 4, 2009, 11:56:42 AM11/4/09
to elearning-technolo...@googlegroups.com

Your code is correct for SCORM 1.2

 

I’d ensure the API that is being found is 1.2 not 2004.  Some SCORM wrappers will find whatever API is available, but if the LMS supports both it’ll find the 2004 API and make your SCORM calls invalid.

 

Raymond Sugel Sr

eLearning Consultant
847.370.6163
rsug...@pivotpointelearning.com
www.pivotpointelearning.com

image001.png

scormsayz

unread,
Nov 4, 2009, 11:59:31 AM11/4/09
to eLearning Technology and Development
Ok cool. I am developing a SCORM 1.2 course, I was assuming that Test
Track leaned towards 2004? I will update my javascript to see if that
works on Test Track and take a closer look at the logs.
Thank you for your time to help me out.

On Nov 4, 10:56 am, Ryan Meyer <ryan.e.me...@gmail.com> wrote:
> Could it be that your course is attempting to run as SCORM 2004 as opposed
> to SCORM 1.2? In SCORM 2004, this field was renamed to "cmi.suspend_data",
> so the property name you're passing in would be invalid. I can't tell
> whether the "Invalid argument error" you're seeing is a Javascript error, or
> a SCORM API error. Looking at the communication logs in Test Track should
> tell you if it's the latter.
>
> -Ryan
>

scormsayz

unread,
Nov 4, 2009, 12:19:06 PM11/4/09
to eLearning Technology and Development
That is exactly what is happening. I updated the javascript for 2004
and everything is A-OK. I am running into a similar problem with
bookmarking, so maybe that's the same deal.
Thank you both for your reply, it was a big help.

Charles Parcell

unread,
Nov 4, 2009, 3:20:35 PM11/4/09
to eLearning Technology and Development
If you are developing for SCORM 1.2 then you need to adjust your API
code.

If you are using the pipwerks API then just hard code the SCORM
version you want to use.

// Add this before you call pipwerks.SCORM.init()
pipwerks.SCORM.version = "1.2";

Charles P.
Reply all
Reply to author
Forward
0 new messages