Alteryx Designer Knowledge Base

Definitive answers from Designer experts.

Error: "Failed to decrypt data: Key not valid for use in specified state" when connecting to Athena

blakecasey
Alteryx
Alteryx
Created

Issue

 

When trying to connect to an Athena database connection, the following error occurs:
 

 
ERROR: Failed to decrypt data: Key not valid for use in specified state.
 

Environment Details

 
  • Alteryx Designer / Alteryx Server
    • All versions
    • Input Data Tool
    • Output Data tool
  • Amazon Athena Database
    • All versions
  • Athena ODBC Driver
    • Simba 1.1.2.1000


Cause

 

The key used for connecting to Athena will not work when other users attempt to execute workflows if the worker machine does not have the ODBC authentication option configured to encrypt the password for all users of the machine.



 

Resolution

 

Enable the setting to encrypt passwords for all users of the machine.

 
  1. Open ODBC Data Source Administrator.
  2. Find the Athena Data Source in question.
  3. Click on Configure.
  4. Click on Authentication Options.
  5. Click on Password Options.
  6. Select the "All Users of this Machine" radio button and click OK.
  7. Re-test the connection.
image.png

Additional Resources

 
No ratings
Comments
ntobon
Alteryx
Alteryx

Same error could happen with HIVE connection: 

Tool 8 - Error SQLDriverConnect: [Hortonworks][DriverSuppport] (1030) Failed to decrypt data: Key not valid for use in specified state.{Microsoft][ODBC Driver Manager] Driver's SQLConnectAttr failed

 

The same solution works for HIVE connection.