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!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...