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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...