KNOWLEDGE BASE

Extract Refresh for Workbook Fails with "No Tableau Server user found" After Publishing with Tabcmd


Published: 07 Dec 2016
Last Modified Date: 29 Jun 2017

Issue

After publishing a workbook containing published data sources with Tabcmd, the following error may occur when performing an extract refresh:

com.tableausoftware.nativeapi.dll.DataSourceException: No Tableau Server user found.
class DataSourceException
Unable to connect to the server "<hostname or IP address>". Check that the server is running and that you have access privileges to the requested database.

Environment

  • Tableau Server
  • tabcmd

Resolution

When publishing with tabcmd, ensure the username and password of the tableau server user is passed and saved on the tabcmd command by using the "--save-db-password" flag.

Example:
tabcmd  publish <path to workbook\workbookname> -n "workbookpublishname -r "projectname" --db-user "tableauserveruser" --db-password "userpassword" --save-db-password -o

Cause

The workbook publisher's permission to access the published data sources was not saved during the publish operation.
Did this article resolve the issue?