List workbooks error when Personal Space workbooks exist (missing project_id)
See original GitHub issueDescribe the bug Listing all existing workbooks is failing with an error.
We usually run the following code to find dashboards by name for refresh operations. Since yesterday its failing with a ValueError exception. After some investigation it looks like a workbook in a “Personal Space” is causing it as it doesn’t have a project_id nor a project_name. It can be circumvented by patching the code with:
if not project_id:
continue
to workbook_item.py line 278 and additionally ignoring the server error
tableauserverclient.server.endpoint.exceptions.ServerResponseError:
400006: Bad Request
Invalid page number '7'
following it.
Versions Details of your environment, including:
- Tableau Online
- Python v3.9.4
- tableauserverclient-0.16.0
To Reproduce Here is the code. It worked fine before the user added the personal workbook:
import tableauserverclient
tableau_auth = tableauserverclient.TableauAuth(...)
server = tableauserverclient.Server(server_address='https://dub01.online.tableau.com/', use_server_version=True)
with server.auth.sign_in(tableau_auth)
refresh_objs = [o for o in tableauserverclient.Pager(server.workbooks)]
Results
ValueError: project_id must be defined.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Idea: Ability to publish a workbook across projects within Site
The ability to publish a single workbook to multiple projects at once is not ... pop up "dependencies" listing project folders where this...
Read more >Tableau commands
204, Error, The server is configured to use Active Directory ... Project ID, Enter the ID of the datasource, workbook, or project to...
Read more >Workgroups Database - Tableau Open Source
asset_list_items, Contains the individual list entries that correspond to the ... workbooks, Each record represents a workbook that exists on the server.
Read more >Excel process doesn't get closed
The only thing missing here is if you're editing Cell's in a workbook via the Primary Interop, you also need to Marshal.ReleaseComObject on...
Read more >MicroStrategy Office User Guide
Documentation were developed at private expense, that no part is public domain, and that the ... Deleting reports from workbooks, presentations, and Word....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hello @bcantoni, thanks for the fix! When do you plan to release this fix?
Hi there, facing this problem too. No issue with Projects, Users and Views