Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not download datasources that are not in project #785

Open
DaniilBalabanov33N opened this issue Jan 28, 2021 · 4 comments
Open

Can not download datasources that are not in project #785

DaniilBalabanov33N opened this issue Jan 28, 2021 · 4 comments
Labels

Comments

@DaniilBalabanov33N
Copy link

DaniilBalabanov33N commented Jan 28, 2021

A duplication of #293 but it was closed by the author with no solution provided

For some reason datasources in workbooks can only be found by ID and can not be downloaded

ds = server.datasources.get_by_id("d5c9def5-61f0-49ce-a860-d688edf28f6e")
server.datasources.populate_connections(ds)
ds 
>>> <tableauserverclient.models.datasource_item.DatasourceItem object at 0x000001D587581BB0>
path = server.datasources.download(ds.id)
>>>tableauserverclient.server.endpoint.exceptions.ServerResponseError:
>>>   404004: Resource Not Found
>>>            Datasource "d5c9def5-61f0-49ce-a860-d688edf28f6e" could not be found

Also, if I retrieve all datasources from the server it's not there

temp_list = [ds for ds in TSC.Pager(server.datasources.get) if ds.id == "d5c9def5-61f0-49ce-a860-d688edf28f6e"]:
temp_list
>>> []
@bcantoni bcantoni added the needs investigation Issue needs to be looked at by Tableau label Feb 22, 2021
@m4n1-code
Copy link

I am facing the same issue. Has there been any solution to this?
Thanks

@henrihapponen
Copy link

henrihapponen commented Jun 16, 2022

Facing the same issue:

  • Datasource exists
  • Permissions are set correctly (for example ExtractXml=Allow)
  • Still getting error 404004 "Data source not found"

Any updates on this?
Thanks

@jacalata
Copy link
Contributor

I think this question is asking about embedded data sources. These are published as part of the workbook, and cannot be downloaded separately - you have to download the workbook as a complete twbx file.

@jacalata jacalata added wontfix and removed needs investigation Issue needs to be looked at by Tableau labels Feb 14, 2023
@SathyanarayanaGowda
Copy link

Hi @jacalata , Can you please check this again. Since as per the Tableau REST API documentation for Download Data Source, this method should download the datasource in .tdsx format and not twbx file.

Tableau REST API URL - https://help.tableau.com/current/api/rest_api/en-us/REST/rest_api_ref.htm#download_data_source

tdsx zip file contains the datasource extract which contains all the data extracted from backend database for that specific workbook.

Also the tableauserverclient method below is the python wrapper for the above API and its documentation also state the same.

tableauserverclient URL - https://tableau.github.io/server-client-python/docs/api-ref#datasourcesdownload

Downloads the specified data source in .tdsx or .hyper format..

but it is not working as per the REST API specification.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants