Java Error "Failed to run query" Connecting to Athena

Published: 05 Feb 2018
Last Modified Date: 01 Mar 2018


When connecting to, or refreshing an extract from, an Amazon Athena data source, the following errors might occur:
com.tableausoftware.jdbc.TableauJDBCException: Exception in runQuery for query: [Query] Failed to run query
There was a Java error.



  • Tableau Desktop
  • Tableau Server
  • Amazon Athena


Option 1
Upgrade the Athena JDBC driver to the latest version.

Option 2
Work with your IT team to confirm that the AWS Identity and Access Management (IAM) Console is set to the most up-to-date policy. Check whether the Athena user is under a policy that has an explicit deny to the athena:RunQuery action.


The driver installed is not compatible with the current version of Java used by Athena, or the Athena user does not have the needed privilege to query the data source.
Did this article resolve the issue?