SAP Knowledge Base Article - Public

2792720 - Unable to find an API adapter Error while launching content.

Symptom

Few self hosted content throws below error while launching: Unable to find an API adapter. "No Scorm environment detected: all tracking activities will be ignored" and "Not Initialized".

Error as shown below:

scrom error.PNG

Environment

Successfactors Learning , Learning Management System.

Reproducing the Issue

Step 1: Assign online Item

Step 2: Launch item to complete learning

Step 3: Content API error messages : Unable to find an API adapter. "No Scorm environment detected: all tracking activities will be ignored" and "Not Initialized"

Cause

Because below script in the proxlet.js file would continue even if the API was not initialized on that window, therefore returning an error.

if (window.API != null || window.document.API != null || top) {

some of our SCORM courses could not esablish an API connection with the application after the update. Need to modify the proxlet.js file's code to correct this.

Resolution

Open proxlet.js file from the Proxlet zip

changed line 187 in the proxlet.js file as shown below , which will resolved the issue

Fixed code = if (window.API != null || window.document.API != null || (top && top.API != null)){

B8B84788.PNG

See Also

https://community.successfactors.com/t5/Learning-Resources-Blog/Cross-Domain-Proxlet-Upgrade-Process/ba-p/204961

Keywords

Unable to find an API adapter. "No Scorm environment detected: all tracking activities will be ignored" and "Not Initialized" , self hosted content , content , launch issue, error. , KBA , LOD-SF-LMS-CNT , Content , Problem

Product

SAP SuccessFactors Learning all versions