Unexpected Error Opening Published Workbook that Uses TabPy

Published: 11 Jun 2018
Last Modified Date: 18 Aug 2020


When you try to open a published workbook that uses TabPy, the following error occurs: 

An unexpected error occurred. If you continue to receive this error please contact your Tableau Server administrator. 
Tableau Server encountered an error while working with this worksheet. Would you like to reset the view?

Additionally, you may notice that an Error 502 appears in the logs.


  • Tableau Server 2018.1
  • TabPy


Option 1: 

Upgrade to Tableau Server 2018.1.5 or a newer version. Click here for downloads of current and previous versions of Tableau Server: Tableau Server Downloads and Release Notes. For more information on current releases, see Upgrade Tableau Server and Server Upgrade.

Option 2: 

As a workaround, set a non zero value to vizqlserver.extsvc.connect_timeout_ms
For example, tabadmin set vizqlserver.extsvc.connect_timeout_ms 1000

For additional details about the above workaround, please refer to the following GitHub issue #106: Tabpy not working in 2018.1  


This behavior is related to a known issue with ID 785912 which is fixed in more recent versions.
Did this article resolve the issue?