We have extended our Early Bird Tickets for Inspire 2023! Discounted pricing goes until February 24th. Save your spot!

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 data source

blakecasey
Alteryx Alumni (Retired)
Created

Issue

 

When trying to connect to a data source, 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
    • Apache Hive
      • All versions
    • Cloudera ODBC Driver for Apache Hive
      • Version 2.06.11.1011


    Cause

     

    The key used for connecting to the data source 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.
     

    A. Amazon Athena Database Connection

     
    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
     

    B. Apache Hive Data Connection

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


    Additional Resources

     
    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.