Knowledgebase: For Administrators
API Error 201 - Invalid Argument Error - Invalid Data Type
Posted by Brian Kleeman on 03 August 2007 04:46 AM
Updated by Jessica D'Apice on 26 January 2018 at 4:07 PM
While viewing a lesson you receive the following error:
API ERROR (trace call # xx):
201 - Invalid argument error : Invalid data type

Please notify the LMS administrator regarding this error.
The lesson has attempted to set a SCORM data element to an invalid value.
Each of the SCORM data elements may only contain certain values (such as real numbers or specific text strings) in accordance with the SCORM specification. If the lesson attempts to set the value of a data element incorrectly you will see this error.
Examples that will cause this error include but are not limited to...
  1. Setting "cmi.core.lesson_status" to "complete" rather than "completed".
  2. Setting "cmi.core.lesson_status" to "Completed" rather than "completed" (data element value restrictions are case-sensitive).
  3. Setting "cmi.score.min" or "cmi.score.max" to a value that is a non-real number such as "" (empty string).
Modify your lesson so that it sets the data element values according to the SCORM restrictions.
To find out what data element may be causing this error, create a test user, enroll that user in the course, log in as that user, and launch the content. When the content launches in a new window, click back into the parent window with "Running Courseware" in it, and either hit F12 (if you are using Internet Explorer) or Control + Shift + i (if you are using Chrome). Click the "Console" tab, and look for errors as they appear. Any red errors that appear in the tab will tell you which SCORM API calls are causing the error.
For the correct data elements corresponding to each SCORM API call, please refer to Rustici's reference material on the matter here:
(2 vote(s))
Not helpful