Alteryx Designer Knowledge Base

Definitive answers from Designer experts.
Andy Uttley, Alteryx ACE, makes music with Alteryx | Math + Music

How To: Connect to Redshift


How To: Connect to Redshift


Alteryx supports connecting to Amazon Redshift, a columnar database. Amazon Redshift Spectrum is a supported feature that allows running queries against unstructured data stored in Amazon S3.


Please note that your DBA can be an invaluable resources in configuring the database specific settings.




  • Product - Alteryx Designer
  • 3rd party product - Access to Redshift database
    • Version or newer
  • 3rd party product - Access to Amazon S3 to be able to use Amazon Redshift Bulk Connection. 
  • Redshift  ODCB driver.


Configure an ODBC Connection


To configure an ODBC connection to a Redshift database:



  1. Navigate to ODBC Data Source Administrator
  2. Select Redshift driver and click Configure
  3. Enter you connection settings and credentials
  4. Navigate to your Redshift Data Source and click "configure",
  5. Select Additional Options
  6. MichaelAd_0-1582890628038.png


  7. Check the option "Retrieve Entire Result Into Memory"
  8. MichaelAd_1-1582890672337.png


  9. Confirm with OK.


Configure an Amazon Redshift Bulk Connection


Write-only Bulk Load support is available for standard and in-DB workflows for Redshift. For Redshift Spectrum standard workflows writing is only supported through Bulk Load.


Please note that an S3 account is required for the below steps.


  1. In Designer draw an Output Data tool on the Canvas,
  2. Then, 
    • 2019.1 and earlier or when using Classic Mode for Input Data / Output Data tool.  This can be set under Alteryx - Options - User Settings - Edit User Settings - Defaults - "Use classic mode for the Input/Output tool menu options":
      • Click the Write to File or Database drop down menu and select Other Databases > Amazon Redshift Bulk
    • 2019.2 and later:
      • Alteryx displays the Data connections window. To create new connection click Data Sources and select Amazon Redshift - Bulk or Amazon Redshift Spectrum - Bulk



  3. Select a Data Source Name or create a new one in ODBC Data Source Admin
  4. 2020-02-28_12-36-02.jpg 
  5. Optionally enter User name and password
  6. Fill in AWS credentials to access data for upload
  7.  In the Secret Key Encryption drop down, select an encryption option:
    • Hide: Hide the password using minimal encryption.
    • Encrypt for Machine: Any user on the computer will be able to fully use the connection.
    • Encrypt for User: The logged in user can use the connection on any computer.
  8. The endpoint should be set to Default so that Amazon will automatically determine the endpoint to be used. The endpoint should be set manually if a specific endpoint is needed for either private S3 deployments or to select a specific region.
  9. Optionally, select Use Signature V4 for Authentication to use Signature Version 4 instead of the default Signature Version 2. This will increase security, but connection speeds may be slower. This option is automatically enabled for regions requiring Signature Version 4.
  10. Select a Server-Side Encryption method for uploading to an encrypted Amazon S3 bucket. For more information on Amazon S3 encryption methods, see the Amazon Simple Storage Service Developer Guide.
    • None (Default): No encryption method is used.
    • SSE-KMS: Use server-side encryption with AWS KMS-managed keys. Optionally provide a KMS Key ID. When you select this method, Use Signature V4 for Authentication is enabled by default.
  11. In Bucket Name, type the name of the AWS bucket in which your data objects are stored.
  12. Optionally select Use Redshift Spectrum to connect to Redshift Spectrum tables


Please note that the Output Options are described in greater detail in the  Amazon Redshift Database Developer Guide.




Common Issues


S3 Error - Wrong Endpoint for Bucket Used
The following error message occurs:
The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint.
The above error message typically occurs if the bucket selected is not in the region the specified endpoint is in.
Select the Default endpoint solve this issue.

Amazon Redshift: Check 'stl_load_errors' system table for error details

When writing to Amazon Redshift, the following error appears:

Data Stream In (x): The COPY failed with error: [Amazon][Amazon Redshift] (30) Error occurred while trying to execute a query: [SQLState XX000] ERROR: Load into table 'ayx1XXX' failed. Check 'stl_load_errors' system table for details.

Please refer to the following KB article for further information - Amazon Redshift: Check 'stl_load_errors' system table for details.

As always if you encounter difficulties with the above feel free to reach out to Alteryx Customer Support


Additional Resources