KNOWLEDGE BASE

Error "Uncaught ReferenceError: $ is not defined" Viewing Workbooks


Published: 16 Apr 2014
Last Modified Date: 25 Apr 2016

Issue

When you try to view a workbook on Tableau Server, the following error might occur:

Uncaught ReferenceError: $ is not defined vqlweb.js:294
Uncaught TypeError: Cannot read property 'startup' of undefined

Environment

Tableau Server 8.1

Resolution

 

  1. On the computer running Tableau Server, open the Command Prompt window as an administrator, and run one of the following commands:
    • On a 32-bit computer: cd "C:\Program Files\Tableau\Tableau Server\<version>\bin"
    • On a 64-bit computer: cd "C:\Program Files (x86)\Tableau\Tableau Server\<version>\bin"
  2. At the command prompt, run the following commands in order:
    • tabadmin stop 
    • tabadmin set vizqlserver.jquery.path https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js 
    • tabadmin configure
    • tabadmin start 

Cause

Tableau Server relies on Google to service AJAX API files. If the network security does not allow https access to the required AJAX API files, the jquery will not succeed.

Additional Information

The error might not occur for all users, and can affect more users over time. Web browsers maintain a local cache lifetime for script files and images. These cached files expire after a browser-dependent period of time. Then they are reloaded and cached again.
Did this article resolve the issue?