Welcome to the Alteryx Knowledge Base
Created/Edited -
- Alteryx Designer
- 2022.1+
- Supported Connectors and Tools
This article shows all the steps required to publish a workflow with an IN-DB tool using DCM the Server.
OVERVIEW
On your local machine- Create a DSN for your database
- Create an In-DB connection with a DCM Connection (DataSource+Credential) to the DSN
- Sync the DCM Connection UP to your Server
- [23.2+] Optionally, share the DCM Credential with your Server administrator for Collaboration, see: Share DCM Connection
- Create a System DSN for your database (match the name created on your local machine)
- Run Designer(*)
- Sync the DCM Connections DOWN from your Server
- Create a System In-DB connection using the DCM Connection created on your local machine
On your local machine
- Publish the workflow
▶️Video walk-through of the process 6m (no sound)
1. DESIGNER DESKTOP - LOCAL MACHINE
1A. Create In-DB Connection with Connection Type User.
For this example, I’m creating the DCMs from within a Connect-In-DB tool to connect to Snowflake.
Select Data Source-> Snowflake, Connection Type = User, select New for the Connections, enter a Connection Name, and then select Setup Connection.
Now when the Connection manager comes up, select Add Data Source.
Then select Technology -> Snowflake ODBC
Enter a Data Source Name. Click in the ODBC DSN field to select the User DSN.
Note that locally you can select a User DSN or System DSN.
Click Save.
Next, add a data credential. Select Connect Credential, and then choose the Authentication Method.
Select Create New Credential from the pulldown and type in a Credential name. Then select Create and Link.
Now select Connect. This should bring you back to the Manage In-DB Connections page, and you should now see the Driver and Connection filled in:
The last thing to set up is the output/Write DCM connection; click on the Write tab. If you want a different DCM connection for writing, click Setup Connection and repeat above steps. Or you can select Same As Read Driver.
Click OK. It will display the Visual Query Builder at this point and allow you to select a table and build your query. When done, go to the SQL Editor tab and select Test Query. When successful, select OK. You can now run the workflow and should see data coming back from your table.
1B. Synchronize the DCM connections to the Server
Select File > Manage Connections > Synchronize.
Select (or add if first time using) your Server Gallery Connection.
Select Synchronize.
It will show you connections, data sources, credentials that will be synchronized and the direction they are going (in this case syncing up from Designer to Server):
When finished you will see “All synchronized”.
You will see the DCM Data Source and DCM Credential in the Gallery:
1C. [23.2+] Optionally, share the DCM Connection with Server Administrator for Collaboration
This will allow the Server Administrator to perform the setup steps of the Server. Otherwise, you will need to login to the Server machine with your Credentials.
In the Server UI, select the newly created DCM Data source
Select the 3 dots to the far right in the Connections box, and choose Share
Then select Add User
Select Share for Collaboration, check username and password and Add, see: Share DCM Connection
2. ON THE SERVER
Login to the Server as yourself or as the Server Administrator is you choose to share the DCM Connection with the Administrator for Collaboration.
Start Designer using Run as administrator to be able to configure Data Connections of type System.
2A. Synchronize the DCM connections in Designer on Server from the Server.
Select File > Manage Connections > Synchronize.
Select (or add if first time using) your Server Gallery Connection.
Select Synchronize to synchronize DCM connections from Server to Designer on the Server.
It will show you connections, data sources, credentials that will be synchronized and the direction they are going (in this case syncing down from Server to Designer on the Server):
2B. Create In-DB Connection with Connection Type System.
Create the same identical IN-DB connection as you created on the desktop Designer.
Make sure the Connection Name matches exactly.
Make sure you have System ODBC DSN and the DSN name is exactly the same on the server machine as it is for the user.
Check Use DCM option
Use the newly synchronized DCM connections.
Click Connect.
This should bring you back to the Manage In-DB Connections page, and you should now see the Driver and Connection filled in:
Set up is the output/Write DCM connection. If you want a different DCM connection for writing, click Setup Connection and repeat above steps. Or you can select Same As Read Driver.
3. GO BACK TO DESIGNER DESKTOP - LOCAL MACHINE
Now you can select File > Save as and select your Server Gallery to publish your workflow and it should publish without errors.
4. RUN THE WORKFLOW ON THE GALLERY
User can now run the workflow successfully on the Gallery
VISUALIZATION
COMMON ERRORS
Selected Connection is not available. Set one up to use the tool.
Cause: If when you are in the Designer on desktop, and you forgot to sync your DCM data source/credentials/connection to the server before saving.
Resolution: Sync your DCM data source/credentials/connection to the server before saving.
Error finding connection "your in-db".
Cause: If you try to publish the workflow without creating the in-db connection first on the server.
Resolution: Create the in-db connection first on the server, then publish the workflow.