Debugging JavaScript Library Interfaces

Solve common problems that may occur when configuring and using JavaScript Library Interfaces (JSLIs).

Note Most errors occur due to mismatches between the JSLI configuration and the functions in the JavaScript library. Mismatch errors may not occur at the exact time the JavaScript function call executes on the diagram.
Use the following table to resolve common errors.
Issue Solution
You receive a Function not found error.

Verify the JSLI uses the correct spelling and case sensitivity for the entry points you defined.

The JSLI node does not appear in the software palette on the diagram.

Check the Project Files tab and ensure that the JSLI document is in a web application document.

The changes you make to the HTML source panel do not take affect.

Verify your HTML is valid.

You do not get the results you expected from your entry point.

Verify that the parameters are in the correct order in the JSLI document.

Your function does not appear to be called.
Add temporary calls to console.log('my custom message') to your JavaScript code to print a custom message to the console when it is called.
Note To view messages printed to the console, see Debugging a WebVI.