Repository navigation
Description
I am trying to refresh a workbook on the server and am running the following commands and receiving the following errors. I am using the list.py sample code and the refresh.py sample code to do this. I have not been able to determine what I am doing wrong and the tableau server logs are not displaying anything of use.
The first thing I am doing is finding my workbook id by using the list command. That portion is working great.
python3 list.py --server 'http://tableau.abc.edu' --username BISTableau workbook | grep TestingRefresh
Password:
14cb41f0-efcc-43d8-b134-f962582fffe4 TestingRefresh
Then I try to pass that ID into the refresh and I get an error 404006 Resource not Found. I have gone into the postgres database and tried all the different IDs for this workbook and they all return the same error.
python3 refresh.py --server 'http://tableau.abc.edu' --username BISTableau workbook 14cb41f0-efcc-43d8-b134-f962582fffe4
Password:
Traceback (most recent call last):
File "refresh.py", line 54, in
main()
File "refresh.py", line 50, in main
print(refresh_func(resource))
File "/usr/lib/python3.4/site-packages/tableauserverclient-0.6.3-py3.4.egg/tableauserverclient/server/endpoint/endpoint.py", line 108, in wrapper
File "/usr/lib/python3.4/site-packages/tableauserverclient-0.6.3-py3.4.egg/tableauserverclient/server/endpoint/workbooks_endpoint.py", line 58, in refresh
File "/usr/lib/python3.4/site-packages/tableauserverclient-0.6.3-py3.4.egg/tableauserverclient/server/endpoint/endpoint.py", line 78, in post_request
File "/usr/lib/python3.4/site-packages/tableauserverclient-0.6.3-py3.4.egg/tableauserverclient/server/endpoint/endpoint.py", line 43, in _make_request
File "/usr/lib/python3.4/site-packages/tableauserverclient-0.6.3-py3.4.egg/tableauserverclient/server/endpoint/endpoint.py", line 55, in _check_status
tableauserverclient.server.endpoint.exceptions.ServerResponseError:
404006: Resource Not Found
Workbook '<tableauserverclient.models.workbook_item.WorkbookItem object at 0x7f5ab28cd470>' could not be found.
Any help on this work be greatly appreciated.
Activity
t8y8 commentedon Jul 27, 2018
It looks like the sample and the method are a little mismatched:
The endpoint expects an id:
But the sample takes the id, gets the workbook object, then passes the object to the refresh call.
rjk24 commentedon Jul 30, 2018
Thank you. This helped and I was able to get it to work. I appreciate the quick response.
t8y8 commentedon Aug 1, 2018
Glad to hear it! We'll get the sample fixed up as well.
srirammedavaram commentedon Oct 12, 2018
For the benefit of others: Replace
results = server.workbooks.refresh(resource)withresults = server.workbooks.refresh(workbook_id=args.resource_id)saketdabi commentedon Nov 16, 2018
I am getting an error like this This endpoint is not available in API version 2.3. Requires 2.8, please help.
my script is simple
import tableauserverclient as TSC
tableau_auth = TSC.TableauAuth(user, password)
server = TSC.Server('Address')
server.version = '2.3'
resource_id= 6109
with server.auth.sign_in(tableau_auth):
print('connection made')
print(server.version)
#resource = server.workbooks.get_by_id(resource_id)
server.workbooks.refresh(workbook_id='6109')
server.auth.sign_out()
print('connection closed')
t8y8 commentedon Nov 19, 2018
6109isn't a valid workbook ID.The workbook ID should be something like
"dd9a137f-30f2-4afb-b733-9e850d133c57"and is what is returned in a regulargetcall for workbooks.saketdabi commentedon Nov 19, 2018
that worked but now i am getting .EndpointUnavailableError: This endpoint is not available in API version 2.3. Requires 2.8 error. how is solve for this ?
edwardsbt03 commentedon Jan 9, 2019
Try setting your server class to use the server version. This worked for me.
server = TSC.Server('Address', use_server_version=True)
shinchris commentedon Jan 30, 2019
Sample fixed: #342
ananthcj commentedon Oct 30, 2020
I was troubleshooting the issues in sequence,
requests.exceptions.SSLError: HTTPSConnectionPool(host='servername.com', port=443): Max retries exceeded with url: /api/2.4/serverInfo (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:777)'),))