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

Not able to connect newly created sites other than Default #1552

Closed
nhk-1992 opened this issue Jan 7, 2025 · 6 comments
Closed

Not able to connect newly created sites other than Default #1552

nhk-1992 opened this issue Jan 7, 2025 · 6 comments
Labels
help wanted A user needs help, may be a mistake, a bug or a feature request

Comments

@nhk-1992
Copy link

nhk-1992 commented Jan 7, 2025

Defining Tableau Server connection details

SERVER_URL = 'https://tableau.com/'
TOKEN_NAME = 'Tabprod'
TOKEN_VALUE = 'Mbg7GBi9Pq'
SITE_ID = '5acf3be579eb' # mentioned LUID
WORKBOOK_ID = '-9990379668b8'
DOWNLOAD_DIR = 'C:/Users/Documents/Tableau TWBX/Python/'

Create Tableau Server authentication object using personal access token

auth = TSC.PersonalAccessTokenAuth(token_name=TOKEN_NAME, personal_access_token=TOKEN_VALUE, site_id=SITE_ID)

@nhk-1992
Copy link
Author

nhk-1992 commented Jan 7, 2025

Error message:
tableauserverclient.server.endpoint.exceptions.NotSignedInError: (b'

Signin ErrorError signing in to Tableau Server', 'https://tableau.prod.ph.unobank.asia//api/3.21/auth/signin')

Note: The permissions are same for all the sites and I'm the server admin.

Can anyone help me to fix the issue.

@jorwoods
Copy link
Contributor

jorwoods commented Jan 7, 2025

You should use the content url for the site, not the LUID.

Pasting in the image link didn’t work. Here’s a link to an article with a screenshot demonstrating the value required.

https://github.com/jorwoods/tableau_articles/blob/main/download_from_view_name.md#using-the-personal-access-token

@nhk-1992
Copy link
Author

nhk-1992 commented Jan 7, 2025

You should use the content url for the site, not the LUID.

Pasting in the image link didn’t work. Here’s a link to an article with a screenshot demonstrating the value required.

https://github.com/jorwoods/tableau_articles/blob/main/download_from_view_name.md#using-the-personal-access-token

If I use site URL ID also getting the error:
image

@jorwoods
Copy link
Contributor

jorwoods commented Jan 7, 2025

Those logs look like you're still passing in LUID

@nhk-1992
Copy link
Author

nhk-1992 commented Jan 7, 2025

Sorry, the current code will display List of site LUIDs.
It will check if the LUID is matching with SITE_ID = 'prod', then it will run the code.

Now, I'm able to connect with the different site.
Thanks Jor

@jacalata
Copy link
Contributor

jacalata commented Jan 7, 2025

glad he could help :D

@jacalata jacalata closed this as completed Jan 7, 2025
@jacalata jacalata added the help wanted A user needs help, may be a mistake, a bug or a feature request label Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted A user needs help, may be a mistake, a bug or a feature request
Projects
None yet
Development

No branches or pull requests

3 participants