question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

List workbooks error when Personal Space workbooks exist (missing project_id)

See original GitHub issue

Describe 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:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
TomKlotzProcommented, Oct 11, 2021

Hello @bcantoni, thanks for the fix! When do you plan to release this fix?

3reactions
adeturckheimcommented, Sep 23, 2021

Hi there, facing this problem too. No issue with Projects, Users and Views

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found