Report any technical problems you discover and discuss solutions.

SCORM 1.2 tracking requirement from external LMS

  • Roberto_Parras
  • Onderwerp Auteur
  • Offline
  • Nieuw lid
  • Nieuw lid
Meer
4 maanden 1 week geleden #9732 door Roberto_Parras
Beantwoord door Roberto_Parras in topic SCORM 1.2 tracking requirement from external LMS
Hi,

First of all, thank you for your help during the process — your guidance made it much easier to track down the issue.

The problem turned out to be related to the use of cmi.comments inside XTEnterPage() and exitInteraction().

My LMS serialises SCORM data into dynamically generated JavaScript, and the values written into cmi.comments contained unescaped newlines and free‑form text. That caused the LMS to produce invalid JavaScript during runtime, which then resulted in syntax errors and stopped the tracking process.

There was nothing wrong with Xerte’s logic itself — it was simply a case where the comments block (especially the generated lines like “entered page X: …” with a newline at the end) broke the LMS’s JavaScript parser.

To fix this on my side, I removed both comment‑writing blocks completely:
- the whole cmi.comments block in XTEnterPage(), and
- the equivalent one in exitInteraction().

After removing them, everything worked perfectly again.

All other SCORM data (score, completion, suspend_data, resume, interactions, etc.) continues to function exactly as expected.

If this is helpful for future versions: even a simple option in Xerte to disable comment writing, or escaping the newlines before sending them to the LMS, would avoid this type of problem in platforms that handle SCORM differently.

Thanks again for the support — happy to help you.

Roberto

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

Moderators: ronmjultenJohnSmith
Tijd voor maken pagina: 0.124 seconden
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo