BASE DE CONNAISSANCES

Error "An unexpected error occurred ... Script Error" Accessing Embedded View


Date de publication : 13 Jul 2016
Date de dernière modification : 04 Jul 2019

Problème

When using Internet Explorer 11 to view an embedded Tableau Public, Tableau Server or Tableau Online view, the following error might occur:

'An unexpected error occurred. If you continue to receive this error please contact your Tableau Server administrator.
Script error
Script error'
Or
An unexpected error occurred. If you continue to receive this error please contact your Tableau Server Administrator.
Object doesn't support property or method 'matchMedia'
Exception thrown and not caught.

The error does not occur in Google Chrome or Firefox.

Environnement

  • Tableau Online
  • Tableau Public
  • Tableau Server 10 and later
  • Embedded view
  • Internet Explorer 11

Résolution

Work with your IT team or website administrator to ensure that the Compatibility Mode is disabled in Internet Explorer 11. code for the webpage/site is updated to a newer version, or beyond IE 8.

Additionally, if the error occurs while using the revert button of an embeded vizulation, using the following tsm command  should resolve the issue with IE: 
tsm configuration set -k vizqlserver.protect_sessions false

Cause

Starting with Tableau Server 10, compatibility with versions of Internet Explorer prior to 11 is no longer supported. Compatibility Mode settings within Internet Explorer 11, and those in the HTML code for the webpage or website, ensure compatibility with older versions of Internet Explorer and may cause the error to occur by forcing the webpage to load in an unsupported Compatibility Mode.

Informations supplémentaires

The Compatibility Mode settings for the page may also be found in the HTML meta tags, e.g. '<meta http-equiv=”X-UA-Compatible” content=”IE=EmulateIE7” />'. Updating the tag to EmulateIE10, or removing the tag, resolves the error and allows the view to render successfully in Internet Explorer 11.
Cet article vous a-t-il permis de résoudre le problème ?