Skip to content

Problem with downloading datasources. Datasources exist in workbook, but not in project #293

Closed

Description

@marijanp

Hello, my problem is that I have a project on my Tableau Server, which displays that it has no datasources. But the containing workbooks do have some datasources, which are also shared by some of them.

I've managed to download these workbook datasources by populating the connection-ids and then downloading them:

server.workbooks.populate_connections(workbook)
connection_item = workbook.connections[0] 
datasource = server.datasources.get_by_id(connection_item.datasource_id)
datasources.download(datasource.id)

But it doesn't work when I directly want to download the datasources of the project due to the problem that the download function only searches for datasources in the project-level.

I'ld be thankful if there is anyone who could help me with that!

EDIT: I would generally like to operate on workbook-level than on project-level.

Activity

  1. omer-farooq1 commented on Nov 22, 2019

    @omer-farooq1

    I am having similar issue. I am trying to download a datasource hyper file that is in the project. Code below:

    server.datasources.populate_connections(my_dataset) server.datasources.download(my_dataset.connections[0].id)

    It is not working. it says resource not found. But I can clearly see that it's a valid Id when I print it. Did you figure this out?

  2. martinsuijs commented on Apr 1, 2020

    @martinsuijs

    Have the same issue:

            ds = server.datasources.get_by_id('c90daa61-49bf-4a64-bfd4-b6daace6cbf4')
            server.datasources.populate_connections(ds) 
            path = server.datasources.download(ds.id)
    

    tableauserverclient.server.endpoint.exceptions.ServerResponseError:

        404004: Resource Not Found
                Datasource 'c90daa61-49bf-4a64-bfd4-b6daace6cbf4' could not be found
    

    datasource does exist
    Is this a bug?
    Please fix.
    It's needed to setup CI/CD

  3. m4n1-code commented on Apr 14, 2021

    @m4n1-code

    Has this been resolved? I'm facing the same exact issue and not sure how to fix this.

  4. jonathan-dufault-kr commented on May 4, 2022

    @jonathan-dufault-kr

    facing the same issue. data source exists and I can't download it using the client

  5. SathyanarayanaGowda commented on Feb 8, 2024

    @SathyanarayanaGowda

    I am facing the exact issue, datasource does exist. But I am not able to download the datasource using tableauserverclient version 0.29.

    server.workbooks.populate_connections(workbook)
    for datasource in workbook.connections:
    ds = server.datasources.get_by_id(datasource.datasource_id)
    server.datasources.populate_connections(ds)
    file_path = server.datasources.download(ds.id)

    Can someone please fix this ASAP.

    If anyone have able to do this successfully, please let me know.

  6. jesshitchcock commented on Feb 23, 2024

    @jesshitchcock

    Running into this exact same issue. I guess I will have to use a different method to download data sources.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions