KNOWLEDGE BASE

Unable to Specify Whether to Download .twb or .twbx With Rest API


Published: 26 Jul 2017
Last Modified Date: 27 Jul 2017

Issue

When attempting to use REST API to download a .twb of a published .twbx with "IncludeExtract=False", .twbx is still downloaded.

Environment

  • Tableau Server 
  • Rest API

Resolution

If a .twbx is downloaded when a .twb is desired,
If a .twb is downloaded when a .tbwx is desired,
  1. Right-click the data source and select Create Local Copy.
  2. Extract the data source.
  3. Package the workbook from Tableau Desktop.

Cause

IncludeExtract=false does not determine the format in which the workbook is downloaded. The format is dependent on the data connections of the workbook:
  • .twb will be downloaded for live connections and published connections
  • .twbx will be downloaded for extracted connections 

Additional Information

Since an embedded extract is not present on Tableau Server outside of the workbook, a workbook with an embedded extract must be downloaded as a .twbx so that the data source is present and the workbook will function as expected.
Did this article resolve the issue?