Another thing based on code in case of smth wrong ...
# integrate-tableau-datahub
s
Another thing based on code in case of smth wrong with pairs of auth attributes: username+password / token_name+token_value (one of pair item is missing) -
"No valid authentication was found"
error should be generated however even none of 4 attributes are set i’l get
Copy code
NotSignedInError: Missing authentication token. You must sign in first.
seems like default values are passed somehow and authentication is made with some unpredictable values and silently fails
b
To generate the token, on the tableau server I follow these steps: - After logging into the server, go to the top right, on the user's photo and select the option "My Account Settings" - In the "Settings" tab look for "Personal access tokens" - Enter the "token name" and click "Create new token", but ATTENTION! After clicking create, copy the "token_value" because it will no longer be displayed. In case you don't copy, just delete the token and create it again.
@rich-policeman-92383 try this 👆
e
and FYI, tokens expire. I don't see any documentation in Tableau's docs about it, but if you try to run an ingest later and find you can't connect, log in to Tableau and check your account, you'll probably find your token is gone. They seem to last about a week.
r
Okay let me try again after generating a new token. Default timeout: https://help.tableau.com/current/server/en-us/cli_configuration-set_tsm.htm#refresh
Does not work. same error However if i use the same token in tableau scripts , it works fine. https://help.tableau.com/current/api/rest_api/en-us/REST/rest_api_concepts_auth.htm#python_example_sign_in_sign_out_json
So the authentication finally worked. In case of tableau server to specify default site you need '' for site key in tableau.yaml Problem now is that datahub did not ingest anything.