All Apps and Add-ons

Why are we getting the error "TypeError: mvc.createService is not a function"?

luisalonso
New Member

When loading the Palo Alto Networks App on the Theat -> All Inicidents dashboard I am getting this error:

TypeError: mvc.createService is not a function

It happens when calling the var service = mvc.createService() in the dashboard.js:40:17 file. Any ideas?

Labels (1)
0 Karma

splunkian
Path Finder

This is an old issue, but people may still be experiencing it.

If this app has been upgraded from a previous version then there may be a legacy file called `dashboard.js` that was removed after version `7.0.2` of the app, but may still exist after upgrade.

The point of this file appears to have been to provide a warning if the associated Palo TA is not installed.

What makes this extra difficult to debug is the `dashboard.js` file will be automatically loaded into each dashboard within the PaloAlto app context. This means that even if the dashboard includes no JavaScript, this error will persist.

The reason its breaking looks to be incompatibility between it and the newer jQuery version (3.5) that is used by default when setting a dashboards version to 1.1.

Alternatively, setting the dashboards to version 1.0 will also make this warning go away, but I would advise against it as it will make the dashboards dependent on an outdated version of jQuery.

Ultimately, removing the dashboard.js file should fix this error.

0 Karma

annacaylar11
New Member

Has this been issue fixed? I am also having the same error. App version is 7.0.4

0 Karma

_smp_
Builder

I am also seeing this error in Splunk Cloud with the latest version of this app (7.0.1). In Splunk Cloud, it produces a javascript popup error on every dashboard.

0 Karma
Get Updates on the Splunk Community!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...