KNOWLEDGE BASE

REST API "Query View Data" Call Fails with Error 502 for Large Data Sets


Published: 27 Feb 2019
Last Modified Date: 15 Apr 2019

Issue

When downloading large CSV files (60+ MB) via the REST API call "Query View Data", the call fails with an HTTP 502 status.

Environment

Tableau Server 2018.2.5

Resolution

Work with your Tableau Server Administrator to increase the Java heap space on the cluster by modifying the key: vizportal.vmopts

For example (change the information underlined in bold):
tsm configuration set -k vizportal.vmopts -v "-XX:+UseConcMarkSweepGC -Xmx1024m -Xms256m -XX:+CrashOnOutOfMemoryError -XX:-CreateMinidumpOnCrash"

For more information about TSM commands, see the following Tableau Help articles: 

Cause

The issue was caused by a Java heap space error.
Did this article resolve the issue?