KNOWLEDGE BASE

Old Data Returned Using Query View Data Rest API Method


Published: 17 Sep 2019
Last Modified Date: 27 Sep 2019

Issue

When using Query View Data REST API method, data is stale even though the view within the web user interface is up-to-date.

Environment

  • Tableau Online
  • Tableau Server 
  • REST API 

Resolution

This behavior is caused by a known issue, ID 983378, which is currently under investigation.

As a workaround, use the Query View Image method and maxAge parameter. For more information on Query View Image and the maxAge parameter, see API Reference—All Methods --> Query View Image. 

Additional Information

The maxAge parameter allows you to set the maximum number of minutes a view image will be cached before being refreshed. To prevent multiple image requests from overloading the server, the shortest interval you can set is one minute. There is no maximum value, but the server job enacting the caching action may expire before a long cache period is reached.
Did this article resolve the issue?