KNOWLEDGE BASE

Error "Uncaught Cannot cast object to type Object" Viewing Workbook Embedded with Javascript API


Published: 05 Aug 2016
Last Modified Date: 02 Dec 2016

Issue

When opening a Tableau Online view embedded using the Javascript API, the view does not load and an error is seen:

An unexpected error occurred. If you continue to receive this error please contact your Tableau Server Administrator.

Uncaught Cannot cast object to type Object

Environment

  • Tableau Online
  • 10az and 10ax pods

Resolution

Option 1

Embed using the generated 'Share' link or embed code to embed the view. See Share Views.

Option 2

Reference the "minified" javascript source file in your embed code: tableau-2.min.js
Did this article resolve the issue?