bryanthowell-tableau / tableau_tools

Package containing Tableau REST API, XML modification, tabcmd and repository tools
Other
215 stars 86 forks source link

“CreateRefreshMetrics” is not a capability in REST API or Server. #115

Open andcsie opened 2 years ago

andcsie commented 2 years ago

Hello,

We are using the tableau-tools==5.2.1 version with the TableauRestApiConnection35 connection. Lately we started to receive errors such as: "“CreateRefreshMetrics” is not a capability in REST API or Server. " for the query_project method of the connection object. Can you please check what is going on?

teejay416 commented 2 years ago

We were able to fix this by adding these two permissions to the dict server_to_rest_capability_map in tableau_tools/tableau_rest_api/permissions.py

            'Explain Data': 'RunExplainData',
            'Create/Refresh Metrics': 'CreateRefreshMetrics'