Skip to content

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

Description

@math77j

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions