KNOWLEDGE BASE

REST API 'Query View Image' Does Not Refresh View Cache


Published: 08 Feb 2019
Last Modified Date: 15 Feb 2019

Issue

When downloading a view image using the Tableau Server Client views.populate_image method, the view cache is not refreshed and an outdated view is returned.

Environment

  • Tableau Online
  • REST API
  • Tableau Server Client (Python)

Resolution

Use the maxAge URL parameter (?maxAge=<# of minutes>) to set the max age value of a view's image cache. This feature is available for REST API/Tableau Server Client in version 2019.1 and later.

Cause

The 'Query View Image' API endpoint is expected to pull from cache based on the vizportal.rest_api.view_image.max_age setting.
Did this article resolve the issue?