Welcome to the Alteryx Knowledge Base
Troubleshooting AWS Athena Connections
Created/Edited -
How To
Troubleshoot AWS Athena Connections
Issues
During the run time of workflow, one of the following errors is received:
Error: Input Data (1): Error SQLExecute: [Simba][Athena] (1040) An error has been thrown from the AWS Athena client. Athena Error No: 99, HTTP Response
Code: 1759505392, Error Message: Unable to connect to endpoint [Execution ID: e7fe279d-f39b-4872-b37d-8ad49d49f3f5]
After running for a long time:
Error: Input Data (1): Error SQLExecute: [Simba][Athena] (1040) An error has been thrown from the AWS Athena client. Athena Error No: 99, Error Message: curlCode: 28, Timeout was reached [Execution ID: 20693ba6-2968-4155-9981-8f8c028a79d9]
Environment
- Alteryx Designer
- Amazon Athena Environment
- Windows Operating System
- Amazon Athena ODBC Driver (found here)
Procedure
Cause
In version 1.0.3 and greater of the ODBC Driver, Result Set Streaming is enabled by default which has extra requirements. More info on the requirements is here.
Solution A - Connection String (DSN-less)
If connecting via a Connection String:
- Add UseResultsetStreaming=0 to your connection string
- Example string:
odbc:Driver={Simba Athena ODBC Driver};AwsRegion=[Region];S3OutputLocation=[S3Path];AuthenticationType=IAM Profile;AWSProfile=[YourAccessKey];PWD=[YourSecretKey];UseResultsetStreaming=0OR (If using a Profile Name)odbc:Driver={Simba Athena ODBC Driver};AwsRegion=[Region];S3OutputLocation=[S3Path];AuthenticationType=IAM Profile;AWSProfile=[YourProfileName];UseResultsetStreaming=0 - Use this string with your standard tools (Input Data, Output Data) or with a Connect In-DB Tool.
Solution B - DSN Connection
If you are connecting to your Amazon Athena environment with a DSN connection (via ODBC Admin):
- Open up ODBC Data Source Administrator
- Find your Athena connection and select it
- Hit "Configure..."
- Hit "Advanced Options..."
- Uncheck the "Use Resultset Streaming" box
- Hit OK to save the Advanced Options
- Hit OK again to save your connection
Was this article helpful?