Welcome to the Alteryx Knowledge Base
Error: Data source name not found and no default driver specified
Created/Edited -
How To
The Alteryx server is unable to run a workflow that runs properly on the user’s local machine where the workflow was created.
[ODBC Driver Manager] Data source name not found and no default driver specified
This error can be encountered when running an app or workflow on a Gallery:
Or when uploading a workflow during validation:
Users will also receive the following error when opening a shared workflow where the Data Source Name does not exist on the user’s local machine:
Environment
Alteryx Designer
Alteryx Server
Procedure
Diagnosis
Confirm if your database connection is a DSN connection or a DSN-less connection.
- If you are using a DSN connection, your connection string looks like:
odbc:DSN=SQLServerODBC
The DSN referenced in the workflow must be listed under either User DSN or System DSN tabs. On your local machine, search for ODBC Data Sources (64 bit):
- If you are using a DSN-less connection, your connection string looks like:
odbc:Driver={SQL Server Native Client 11.0};DATABASE={Database_name};SERVER={Database_Host}
Cause
The workflow is not able to successfully run because the tool cannot reach the database in the following scenarios:
- The workflow creator sends a workflow with a database connection to a colleague who does not have the same exact DSN or Driver/driver version on their computer.
- The workflow gets sent to the Alteryx server to run on a scheduled frequency where the DSN or Driver/driver version does not exist on the Server machine.
Solution
- Install the driver. For both DSN and DSN-less connections, you must have the driver installed on the machine. The download links to many of the drivers can be found here.
- Additionally, for DSN connections, ensure the DSN is also set up.
- In ODBC Data Sources (64 bit) window select to add from either the User DSN or System DSN tab. Generally, the User DSN is what most users will have access to and what is commonly used. You can learn more about the difference between User and System DSNs here. If you are setting this up on a Server, you must use a System DSN.
- In order to resolve the error at the local level or on the Alteryx Server, you will need to set up the corresponding DSN found in the app/workflow. The following Community article will provide you step by step instructions on how to set up an ODBC connection.
- Once you've established the DSN on your machine, you will now be able to successfully re-run the workflow!
Additional Information
Was this article helpful?