Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Knowledge Base

Definitive answers from Designer Desktop 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.

    Murugappan
    5 - Atom

    Hi, This same error occurs for google big query data connection while publishing the workflow. But there is no options in Simba Google big query driver for password encryption as it uses Service Authentication as OAuth authentication using the json file. 

     

    Kindly please help how to overcome this issue.

    Rekj
    5 - Atom

    Having error with Simba ODBC Driver for Google BigQuery using Service Authentication with email and .json key file.  It run successfully locally; I can also run it in Designer on the Gallery server, but receive error when publishing or attempting to run from Gallery. Thank you!