If you login to tableau using a browser are you able to download a png using the URL provided?
This should also work
1 of 1 people found this helpful
I don't believe siteid in the url above (http://22.214.171.124/t/<SiteID>/views/Regional/Obesity.png) will work. This needs to be contenturl.
In Tableau 10.2/ API version 2.5, there's a new method there for getting high res: http://onlinehelp.tableau.com/current/api/rest_api/en-us/help.htm#REST/rest_api_ref.htm#Query_View_Image%3FTocPath%3DAPI…
Hope this helps.
Hi Hugh Nguyen,
I was trying new API 2.5 with our upgraded Tableau version from 10.0 to 10.2.
But facing issue and always getting error as following.
<?xml version='1.0' encoding='UTF-8'?>
<detail>There was a problem querying the image for view 'view-id'.</detail>
Looks like the query was for a literal value of "view-id." That needs to be replaced with the id of the view. You would need to query for server/api/2.5/sites/site-id/views first to see the view-ids.
I do know about all the call details. I have been working with it since a month now.
I have several calls in working state. But. I need to show now image for quicker loading and if only integration happens wants to load the tableau interface.
My call details are correct as par the api references.
Yeah I only have the error to go by, and the detail section of the response indicates "view-id" was queried. So I'd check that section of the code and make sure it's actually getting piped in with the expected value. You can also check vizportal logs to see if there's anything helpful in there. If not, turn on debug mode and reproduce the error.
Changing log level: http://onlinehelp.tableau.com/current/server/en-us/logs_debug_level.htm