Errors with responses containing % symbol

Topics: Developer Forum, User Forum
Feb 8, 2011 at 12:14 PM

Whenever a user submits a response containing % characters (or selects any respoinse for a question where the correct response contains % characters), the associated intereaction is not committed to the SLK database.  Whilst debugging from within the quiz I see that the following dialog is taking place between my quiz and the SLK

321:Tue Feb 8 11:56:06 UTC 2011 - SCORM2004_CallSetValue strElement=cmi.interactions.1.learner_response, strValue=30%_correct
322:Tue Feb 8 11:56:06 UTC 2011 - In SCORM2004_GrabAPI
323:Tue Feb 8 11:56:06 UTC 2011 - Grab API, returning, found API = true
324:Tue Feb 8 11:56:06 UTC 2011 - Calling SetValue
325:Tue Feb 8 11:56:06 UTC 2011 - strResult=false
326:Tue Feb 8 11:56:06 UTC 2011 - Detected Failed call to SetValue
327:Tue Feb 8 11:56:06 UTC 2011 - In SCORM2004_SetErrorInfo
328:Tue Feb 8 11:56:07 UTC 2011 - intSCORM2004Error=406
329:Tue Feb 8 11:56:07 UTC 2011 - strSCORM2004ErrorString=Data Model Element Type Mismatch
330:Tue Feb 8 11:56:07 UTC 2011 - strSCORM2004ErrorDiagnostic=The value 30%_correct is not valid for data model element cmi.interactions.1.learner_response.
331:Tue Feb 8 11:56:07 UTC 2011 - Error calling SetValue:
332:Tue Feb 8 11:56:07 UTC 2011 - strElement=cmi.interactions.1.learner_response
333:Tue Feb 8 11:56:07 UTC 2011 - strValue=30%_correct
334:Tue Feb 8 11:56:07 UTC 2011 - Error Number=406
335:Tue Feb 8 11:56:07 UTC 2011 - Error String=Data Model Element Type Mismatch
336:Tue Feb 8 11:56:07 UTC 2011 - Diagnostic=The value 30%_correct is not valid for data model element cmi.interactions.1.learner_response.
337:Tue Feb 8 11:56:07 UTC 2011 - Returning false

It looks like SLK is not allowing % symbols in the interaction cmi.interactions.1.learner_response item - any ideas why?  I have tried the same test in the Scorm cloudm and using the same debugger I see that the interaction is saved without error.  I have also tried a different quiz authoring tool in SLK and I get the same issue, so I dont think it is down to the quiz quthoring tool (articulate quizmaker). Any thoughts? 

Cheers,

Dave.

Coordinator
Feb 10, 2011 at 10:49 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.
Coordinator
Feb 10, 2011 at 10:51 AM

I've just tried this with the Solitaire package and haven't any problem with %. Please can you create a minimal test showing the problem (i.e. one question) and attach to the workitem [workitem:27873].

Richard

SLK Coordinator

http://blog.salamandersoft.co.uk