KNOWLEDGE BASE

Javascript API getSummaryDataAsync() Results in a "500 Internal Server Error" When No Data is Returned


Published: 28 Sep 2017
Last Modified Date: 29 Sep 2017

Issue

When calling the getSummaryDataAsync() Javascript API function on a view that contains no data, the following error might occur: 

500 Internal Server Error

Environment

Tableau Server 10.0 and later versions

Resolution

As a Tableau Server Administrator, upgrade to Tableau Server 10.4. For more information, see Upgrading Tableau Server in Tableau Help.

Cause

getSummaryDataAsync was not handling the exception or the state of no data. Error handling is updated to address this scenario. 

This behavior is related to a known issue (ID: 647084) which has been fixed in a recent release of Tableau Server. 

Additional Information

getUnderlyingDataAsync() does not break when no data is returned.
Did this article resolve the issue?