Resources

SCORM Troubleshooting · Knowledgebase

SCORM API not found: what to check when a course cannot connect to an LMS

A practical diagnostic for missing SCORM API adapter errors: check launch context, SCORM version, browser frames, and runtime calls.

Updated

Short answer: When a SCORM course reports that it cannot find the API or API adapter, its JavaScript may not be able to locate the object that the LMS provides for runtime communication. This can happen because the course was launched outside the LMS, the course and LMS expect different SCORM versions, or the launch window/frame environment prevents the course from reaching that object. The message alone does not establish whether the fault is in the course or the LMS.

What is the SCORM API?

SCORM content uses a JavaScript interface supplied by the learning management system (LMS) to initialize a session, report tracking information and finish the session.

The object name and method names depend on the version:

SCORM 1.2SCORM 2004
API objectAPIAPI_1484_11
Start a sessionLMSInitialize("")Initialize("")
Write a data-model valueLMSSetValue(name, value)SetValue(name, value)
Request persistenceLMSCommit("")Commit("")
End a sessionLMSFinish("")Terminate("")

The course normally finds the object in its parent window/frame hierarchy or through the window that opened it. A missing API message can therefore be about how the content was launched, not necessarily about the contents of the ZIP.

In the table above, name and value are placeholders, not literal values to copy. SetValue writes a named data-model element; Commit requests that the LMS persist communicated data. A successful Commit call should not be confused with proof that a particular report has updated.

Start with these checks

1. Confirm you launched the course through the LMS

Import the package into a SCORM-capable LMS or test environment and launch the assigned learning activity. Opening an extracted index.html file directly from a folder is not an equivalent test: the LMS-provided API will generally not be there.

2. Check the version on both sides

Identify the SCORM version the package expects and which version the LMS launch configuration supports. SCORM 1.2 content looks for API; SCORM 2004 content looks for API_1484_11. An LMS exposing only one interface may not satisfy content looking for the other.

Inspect the package's imsmanifest.xml, launch configuration and actual runtime calls. Do not rely on the ZIP filename as a version indicator.

3. Examine how the LMS opens the course

Determine whether the LMS uses an embedded frame, a separate window, or a custom launch wrapper. SCORM's API discovery depends on the parent/opener window context. Changes to the launch flow, browser window behavior, or cross-origin integration can affect that discovery.

Check the browser console for a meaningful error, including blocked frame access. Do not turn off browser security controls as a troubleshooting shortcut; resolve the underlying integration design instead.

4. Separate API discovery from initialization

An adapter can be present while the first runtime call still fails. Record whether the course finds the adapter and whether LMSInitialize("") (SCORM 1.2) or Initialize("") (SCORM 2004) succeeds. If calls reach the LMS, capture the returned values and relevant diagnostic/error information. SCORM's success/failure results are strings such as "true" and "false". Check LMSGetLastError() in SCORM 1.2 or GetLastError() in SCORM 2004 after a failed call rather than inferring success from the course screen.

A missing adapter and a completion not recorded are related but different symptoms. If the API is found and the course launches but status is not retained, follow the SCORM completion troubleshooting checklist.

5. Compare with a compatible test environment

Launch the same unmodified package in a second compatible SCORM environment, if available. Compare the launch method, browser behavior, initialization and reported errors.

A successful run elsewhere helps narrow the investigation; it is not proof that the package is universally conformant or that the original LMS is defective.

For SCORM 1.2, run the course in our free checker. Inspect whether LMSInitialize was called successfully. A successful simulated launch does not establish that your LMS exposes the API correctly.

Evidence to collect before changing anything

Record the exact package ZIP, claimed SCORM version, LMS and version, the launch method, browser version, expected behavior, actual error message, and any reproducible console or runtime errors. Use a test learner or redact personal information. Keep the original package unchanged so the issue remains reproducible.

This information helps distinguish a packaging issue from API discovery, runtime initialization, and LMS integration behavior.

When to involve a specialist

If the same package behaves differently across launch environments, a browser security boundary is involved, or API initialization fails without a clear cause, a targeted technical investigation may be more efficient than rebuilding the course.

Actyra provides SCORM troubleshooting and integration engineering. We can discuss the symptoms, available evidence and an appropriate first scope.

Technical reference

For API names, return values and runtime functions, see Rustici Software's SCORM Run-Time Environment reference. For parent/opener discovery, see its SCORM API discovery algorithms and Actyra's SCORM API glossary definition.

Related concepts

Terms used in this guide

Plain-language definitions of the standards and data involved in this issue.

All knowledgebase articles