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

Gigex
New Member

Continuing to get this error on Palo Alto Networks application v. 8.1.3.

TypeError: mvc.createService is not a function

at eval (eval at _runScript (dashboard_1.1.js), <anonymous>:40:21)

I removed the dashboards.js file and still experiencing. Any ideas?

Tags (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!

Updated Data Type Articles, Anniversary Celebrations, and More on Splunk Lantern

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

A Prelude to .conf25: Your Guide to Splunk University

Heading to Boston this September for .conf25? Get a jumpstart by arriving a few days early for Splunk ...

4 Ways the Splunk Community Helps You Prepare for .conf25

.conf25 is right around the corner, and whether you’re a first-time attendee or a seasoned Splunker, the ...