KNOWLEDGE BASE

"Unexpected Error" When Loading Embedded View on a Mobile Device


Published: 15 Jan 2014
Last Modified Date: 22 May 2017

Issue

When you try to load an embedded view on a mobile device, the following error might occur:
 
Unexpected Error
An unexpected error occurred.

Script error.

Environment

  • Tableau Server
  • Tableau Online
  • Embedded View
  • Mobile Device

Resolution

Add the following parameter to the <iframe> tag in the source code:
:embed=yes

The following is an example of embedding the view:

<iframe src="http://myserver/t/Sales/MyCoSales/SalesScoreCard?:embed=yes&:tabs=yes&:toolbar=yes" width="800" height="600"></iframe>

Cause

The embed source code does not include the :embed=yes parameter.
Did this article resolve the issue?