IssueWhen using tabcmd to publish a workbook with references to a Tableau Data Extract (.tde) file, the following error might occur:
Tableau Data Engine Error: 4: Invalid Command: database: Path does not exist.
1. If all of the data source connections used in the workbook are live connections, you can publish as a .twb and Tableau will use the connection metadata in that file to maintain a connection to the data sources in the published version.
2. If any of the data source connections used in the workbook are extracts, then it needs to be published as a .twbx in order to include a copy of the extract. Without a copy of the extract, the published view wouldn't render.
3. The exception to 2 is if, prior to publishing the workbook, you separately publish the data sources themselves. When publishing the data source, a copy of that extract is posted separately to Tableau Server or Tableau Online, and then you can publish using a .twb because Tableau will use the metadata included in that file to maintain a connection to the published data source. Even if the published data source is an extract, Tableau is maintaining a live connection to that published extract, so another copy of the extract doesn't need to be included during publishing of the workbook.