Loading

Downloading a Published Extract Using Tabcmd

Дата публикации: Feb 20, 2025
Задача
How to download a published extract using the tabcmd get option. 
Действия

Step 1: Download the extract .tdsx file using tabcmd

  1. On the computer running Tableau Server, open the Command Prompt window as an administrator and run the following command:

           cd "C:\Program Files\Tableau\Tableau Server\packages\bin.<version>"

        2.  At the command prompt, run the following commands in order:

tabcmd login -s http://<server name> -u <username> -p <password> 
tabcmd get "/datasources/<extract name>.tdsx"

Step 2: Extract the .tde from the .tdsx file

  1. Right-click the .tdsx file and then extract all contents.
  2. Open the extracted folder and open the Data folder to locate the extract (.tde).

Example Scenarios

1. Downloading Workbooks with IDs

  • Two workbooks named "myworkbook" are published in different projects "Default" and "Project1".
  • Their URLs appear as follows:
    http://<server-name>/#/site/<site-name>/views/myworkbook/Sheet1
    http://<server-name>/#/site/<site-name>/views/myworkbook_16191394020850/Sheet1
  • The IDs of the workbooks are used in the tabcmd command to download them:
     
    tabcmd get "/workbooks/myworkbook.twb"
    tabcmd get "/workbooks/myworkbook_16191394020850.twb"
  • Both commands will download the workbook as "myworkbook.twb" (not "myworkbook_16191394020850.twb").

2. Downloading Data Sources with IDs

  • Two data sources named "myds" are published in different projects "Default" and "Project1".
  • The URLs do not display the ID:
     
    http://<server-name>/#/site/<site-name>/datasources/23/connections
    http://<server-name>/#/site/<site-name>/datasources/24/connections
  • The following command can be used to download one of the data sources:
     
    tabcmd get "/datasources/myds.tdsx"
  • To download the other data source, retrieve the ID from the .tds file:
    <repository-location derived-from='http://<server-name>/datasources/myds?rev=1.0' id='myds_16190859777910' path='/t/<site-name>/datasources' revision='1.0' site='<site-name>' />
  • Use the extracted ID in the command:
    tabcmd get "/datasources/myds_16190859777910.tdsx"
  • The data source is downloaded as "myds.tdsx".

Final Important Note

If there are multiple files with the same name, tabcmd get replaces the existing file without notification. To prevent overwriting, specify a unique download path in the command:

tabcmd get "/datasources/myds.tdsx" -f "C:\Downloads\myds_project1.tdsx"
Номер статьи базы знаний

001458254

 
Загрузка
Salesforce Help | Article