General Exception Error

Topics: User Forum
Nov 9, 2006 at 8:23 PM
Thanks to the development team for the Beta release! One problem I am still having with the Beta involves a General Exception error thrown when calling the LMSSetValue API for the data model element cmi.interactions.n.studentresponse. I'm getting an Error 101 with the diagnostic message "The type of the data model element cmi.interactions.n.studentresponse cannot be determined." Any ideas on this one? Thanks!
Nov 9, 2006 at 9:34 PM
Did you set cmi.interactions.n.type before you set cmi.interactions.n.student_response?

I just tried the following in a SCO and it appeared to work just fine.

SetValue("cmi.interactions.0.id","test")
SetValue("cmi.interactions.0.type","fill-in")
SetValue("cmi.interactions.0.student_response","Hello World")

For others' reference this is for SCORM 1.2 data model, which uses cmi.interactions.n.studentresponse. SCORM 2004 uses cmi.interactions.n.learnerresponse.

Hope this helps.

-Mark