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

tableau_tools apis failing on newer version of Tableau Server - when using fields=_all_ #113

Open
math77j opened this issue Oct 14, 2021 · 0 comments

Comments

@math77j
Copy link

math77j commented Oct 14, 2021

After upgrading Tableau Server to the newest version 2021.3.1 (20213.21.0917.1006) the site/workbooks REST API endpoint is failing when selecting "fields=all"

The tableau_tools internally requests the "all" fields when we invoke several workbook APIs, for example - workbooks.add_tags_to_workbook

Please let us know if there is a workaround or fix available.

Here is the stack trace:
File "add_tags_to_workbooks.py", line 169, in addTags
tag_e = dest_connection.workbooks.add_tags_to_workbook(wb_name_or_luid=wbname, tag_s=tags, proj_name_or_luid=project_name)
File "/Library/Python/3.8/site-packages/tableau_tools/tableau_rest_api/methods/workbook.py", line 471, in add_tags_to_workbook
wb_luid = self.rest.query_workbook_luid(wb_name_or_luid, proj_name_or_luid)
File "/Library/Python/3.8/site-packages/tableau_tools/tableau_rest_api/methods/rest_api_base.py", line 1186, in query_workbook_luid
workbooks_with_name = self.query_elements_from_endpoint_with_filter('workbook', wb_name)
File "/Library/Python/3.8/site-packages/tableau_tools/tableau_rest_api/methods/rest_api_base.py", line 420, in query_elements_from_endpoint_with_filter
elements = self.query_resource("{}s?filter=name:eq:{}&fields=all".format(element_name, name_or_luid))
File "/Library/Python/3.8/site-packages/tableau_tools/tableau_rest_api/methods/rest_api_base.py", line 392, in query_resource
self._request_obj.request_from_api()
File "/Library/Python/3.8/site-packages/tableau_tools/tableau_rest_api/rest_xml_request.py", line 262, in request_from_api
self.__make_request(page_number)
File "/Library/Python/3.8/site-packages/tableau_tools/tableau_rest_api/rest_xml_request.py", line 194, in __make_request
self._handle_http_error(e.response, e)
File "/Library/Python/3.8/site-packages/tableau_tools/tableau_rest_api/rest_xml_request.py", line 246, in _handle_http_error
raise e
File "/Library/Python/3.8/site-packages/tableau_tools/tableau_rest_api/rest_xml_request.py", line 167, in __make_request
response.raise_for_status()
File "/Library/Python/3.8/site-packages/requests/models.py", line 943, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: for url: http://server/api/3.5/sites/eacee4a3-d52e-4a6c-96b8-6b1855d6c830/workbooks?filter=name:eq:Subscriber%20Growth&fields=_all_&pageNumber=1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant