rest-api-samples
rest-api-samples copied to clipboard
.twb that uses live connections
In the python publishing workbook script, it says:
Note: The REST API publish process cannot automatically include extracts or other resources that the workbook uses. Therefore, a .twb file with data from a local computer cannot be published. For simplicity, this sample will only accept a .twbx file to publish.
What happens if the .twb uses only live connections and there is no associated local data source? Shouldnt the code factor this in and give the ability to upload these type of .twb workbooks to Tableau Server?
Yes. Remember that these samples are intended just as the beginnings of code that you will edit on your own machine. If you remove the three lines at line 249 in the publish sample, you can try uploading a twb file. Remember that to publish successfully, the server needs to be able to access the embedded data connections.