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

Problem using get_view_data_dataframe() #104

Open
alejandro-anzu opened this issue Nov 21, 2022 · 2 comments
Open

Problem using get_view_data_dataframe() #104

alejandro-anzu opened this issue Nov 21, 2022 · 2 comments

Comments

@alejandro-anzu
Copy link

Hi, I'm trying to get data from a view using the get_view_data_dataframe() function but I'm getting an empty text in the response. No idea what can be happening because the view id is ok and the response has code 200

@divinorum-webb
Copy link
Owner

Hey @alejandro-anzu I just tested the function and am getting the expected results, for example:
image

First possible issue that comes to mind: are you referencing the view ID for a dashboard rather than for an actual sheet? This is often the cause of receiving unexpected (and incomplete) results when querying a view ID for its underlying data.

I would also confirm your user permissions against the view you are querying, but the first thing to check is whether you are querying a dashboard or an actual sheet which exists within a dashboard.

@therealbmills
Copy link

This may be related but I have been using your wonderful script to burst PDFs by looping through filter values, but we upgraded our Tableau Server back in October and our API version went from 3.14 to 3.15 and now if I try and export an entire workbook (with multiple dashboards) it fails with the error:

dashboard_view_id = views[views['name'] == DASHBOARD_VIEW_NAME]['id'].values[0]

IndexError: index 0 is out of bounds for axis 0 with size 0

Strangely, if I reference just one dashboard within that workbook (which itself contains multiple views) it works just fine but not if I try to export the entire workbook as a PDF which it would do successfully with API version 3.14. Might this be related? Or is there something in the API that changed that would cause this or something else altogether?

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

No branches or pull requests

3 participants