LMSSetValue Error: Data Model Element Type Mismatch

wee
wee Community Member Posts: 71
I get this message right before it goes to my last page = LMSSetValue Error: Data Model Element Type Mismatch



On my last page I have 2 actions (below) to set completion status for my SCORM 2004 course. Why am I getting this message? Thank you so much for any suggestions.



Show, Modify Variable, AICC_Lesson_Status, Value: completed

Show, Modify Variable, CMI_Completion_Status, Value: completed

Comments

  • renekoppes
    renekoppes Community Member Posts: 1
    Hi,

    I have the same problem. The module was published in SCORM 2004. If you publish to Scorm 2004 you need two action at laste page or page where the module would be set to completed.

    We used the two actions advised by Trivantis:

    <span class="wysiwyg-font-size-medium">Completion Status</span>

    On: Show
    Action: Modify variable
    Variable: CMI_Completion_Status
    Value: completed

    <span class="wysiwyg-font-size-medium">Success Status</span>

    On: Show
    Action: Modify variable
    Variable: AICC_Lesson_Status
    Value: passed

    Could you someone explain to me why this error occurs?  Please let me know.

    René
  • brainnoduif
    brainnoduif Community Member Posts: 4
    Did someone solve this issue? I have the same problem

    LMSSetValue Error: Data Model Element Type Mismatch
  • timk
    timk Community Member Posts: 1,222 ♦ Idol ♦
    As far as I know CMI_Completion_Status is Scorm 2004 and AICC_Lesson_Status is Scorm 1.2, both doing the same, i.e. sending the status a user has achieved for the module. The Scorm versions use different Data Models, so you could try to remove one of the actions depending on which Scorm version you publish to.
  • mnotermans5114
    mnotermans5114 Community Member Posts: 916 ☆ Roadie ☆
    Scorm2004 is infamous for errors and buggy behaviour. Do use Scorm1.2 or if you really need the extra benefits use xApi. Skip 2004, most of the industry does.
  • agibson6580
    agibson6580 Community Member Posts: 1
    I am getting the same error: LMSSetValue Error: Data Model Element Type Mismatch

    Does anyone have a solution for it?

    I have a check box on the last page of the e-learning.

    Trigger : Select

    Action: Modify variable

    Target: AICC_Lesson_Status

    Value: completed.

    Thanks in advance.
  • carlfink
    carlfink Community Member Posts: 1,102 ✭ Legend ✭
    It's mentioned up higher in this thread: SCORM 2004 doesn't use AICC_Lesson_Status. Use CMI_Completion_Status instead.
  • fcioanca7805
    fcioanca7805 Community Member Posts: 12
    Hi, We are testing a potential new LMS, and I am encountering an error on the SCORM 2004 files that we currently use with no errors on a different LMS. This comes up when I try to exit the course:

    LMSSetValue Error: cmi.session_time to [PT0H0M14S] Data Model Element Type Mismatch.

    When closing the error popup message, an additional error message is displayed:

    LMSSetValue Error: adl.nav.request to [exit] Data Model Element is Read Only.

    Any suggestions on how to fix these errors would be greatly appreciated.

    Thank you,

    Flavia

     
  • carlfink
    carlfink Community Member Posts: 1,102 ✭ Legend ✭
    I'm not an expert, but the message:

    LMSSetValue Error: cmi.session_time to [PT0H0M14S] Data Model Element Type Mismatch.

    would seem to say that you're trying to set a time value to the odd string value "PToHoM14S". I think I see that Ho would be hours, M minutes, and S seconds, but what would P or To be? I wonder if that's a format type that your new LMS does not recognize but the old one did.

    Then the second message:

    LMSSetValue Error: adl.nav.request to [exit] Data Model Element is Read Only.

    That seems to indicate that the new LMS just plain won't let you set the session time--it can only be set automatically by the LMS, if I am guessing correctly. Are you changing that SCORM variable with an action, or is it something Lectora generated?
  • fcioanca7805
    fcioanca7805 Community Member Posts: 12
    Hi,

    I am not making any changes to the variable - this is just generated by Lectora Online when publishing to SCORM 2004.

    Flavia
  • jking4853
    jking4853 Community Member Posts: 1 ☆ Roadie ☆
    Hi Flavia,

     

    I wonder if you got an answer regarding the LMSSetValue Error: cmi.session_time to [PT0H0M14S] 

    In debugging a SCORM 2004 course that is not sending time values to the LMS I am finding the same issue.

    Hope you were able to resolve.

     
  • timk
    timk Community Member Posts: 1,222 ♦ Idol ♦
    [PT0H0M14S]

    This seems to be a correctly formatted value of cmi.session_time for Scorm 2004. It means 0 Hours, 0 Minutes, 14 seconds. P could be followed by values for Years, Months and Days.

    Data Model Element Type Mismatch

    This means that the formatting does not match the Scorm version. In Scorm 1.2 for example the same time should be formatted as "00:00:14.0"

    Are you sure, you publish to the same Scorm version the LMS expects?