Dashboard breaks on loading with browser console error: TypeError: SNC.canvas is undefined

The localhost logs contain a NullPointerException as in the following example:

2017-07-05 03:36:50 (480) Default-thread-13 13958FC94F33FEC093713C728110C7E7 SEVERE *** ERROR *** java.lang.NullPointerException
org.mozilla.javascript.JavaScriptException: java.lang.NullPointerException
at org.mozilla.javascript.Context.makeJavaScriptException(
at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(
at org.mozilla.javascript.MemberBox.invoke(
at org.mozilla.javascript.FunctionObject.doInvoke(
at org.mozilla.javascript.ScriptRuntime.doCall(
at org.mozilla.javascript.optimizer.OptRuntime.call2(
at org.mozilla.javascript.gen.plugin___com_glideapp_dashboards_ui_jtemplates_dashboards_page_setup_xml_8_15861._c_script_0(plugin://com.glideapp.dashboards/ui.jtemplates/dashboards_page_setup.xml.8:82)

Steps to Reproduce


  1. On an instance, switch to a domain like TOP/Standard/mySubDomain
  2. Open a PA dashboard and give permissions to a user from the parent Domain. For details on sharing dashboard to users, see Sharing a Dashboard
  3. Open a dashboard for that sub domain.

Actual Result: Observe that the page does not render, and elements like the dashboard selector remain empty as well as the rest of the page. The browser console displays the error TypeError: SNC.canvas is undefined

Expected Result: The dashboard opens without any issues




The issue appears because the dashboard is shared with a user that does belong to the same domain the dashboard resides in.

As a workaround, remove the permissions to the dashboard for the user in a different domain and this change allows the dashboard to load normally.

Related Problem: PRB1094659

Seen In

There is no data to report.

Fixed In

Istanbul Patch 10
Jakarta Patch 5

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2019-05-21 11:35:10