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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...