Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Error when saving workflow with In-DB tools to Alteryx Gallery

dallen
7 - Meteor

 

When I try saving a workflow to my Gallery I receive two errors: (1) resulting from a dynamic input tool and (2) resulting from an In-DB tool. These issues do not occur when I run them on the local machine, only when I try saving it and allow Alteryx to 'validate workflow then save'.

Error_on_Save_to_Gallery.png

Additional detail about these issues: 

Issue (1): This workflow downloads zip files containing CSV files from a site, extracts the CSVs from the zips, extracts the records from the CSVs, transforms the data, and ultimately pushes the data to my database. I'm using the Dynamic Input tool to handle the data extraction from the individual CSVs. This issue did not occur before I tried implementing new tools mentioned below in issue (2). The CSV template needed for the Dynamic Input tool is saved on my local machine and the flow runs without issue locally, however, when I try to save to the gallery I receive a "File Not Found" error.

Issue (2): I was previously using a normal input tool with a summarize tool to get the last RecordID from the table I'm pushing data to in order to generate the correct RecordID with each run. This configuration caused the flow to lag as it DB table grew, so I chose to implement a new solution with the In-DB tools. Initially, I had connectivity issues with the 'Connect In-DB' tool but was able to resolve those by creating a system connection (as opposed to a user connection) and selecting the correct driver. Since then, I have had no trouble running the flow locally, only when I attempt to save to the gallery and then I receive an "Error opening '[query]': No columns returned" error.

In-DB_Connection.png

 

Can you all help me determine what might be causing these issues and how to resolve them?

 

13 REPLIES 13
dallen
7 - Meteor

@MarqueeCrew - Yes. I have three other flows that are scheduled in the gallery and run the exact same query. The only difference is: (1) They are referencing different tables (2) They are normal input tools.

dallen
7 - Meteor

@MarqueeCrew - Posting a screenshot of a successful run on the flow locally along with the query that I'm running in the Connect In-DB tool.

Local_Successful_Run_of_ERCOTRTLMP.png

Select * From database.schema.table_name
dallen
7 - Meteor

After a call with @KevinP I was able to resolve the second issue by creating an In-DB Connection with a SQL Server Ole DB driver, replacing the SQL Server ODBC driver. In order to get this driver to work I had to make these few configurations:

  1. Integrated Security: Open this prompt and then close it (this is effectively an "acknowledgment" of this setting in Alteryx)
  2. Persist Security: Open this prompt and set it to "True"

 

Kevin also offered a solution that replaced the need for the In-DB tools altogether. He suggested using the regular input data tool and writing the following optimized query which returns the last RecordID:

 

Select Top 1 RecordID From Database Order By RecordID Desc

This solution, in particular, was a great reminder to leverage SQL and experiment with queries if the tools begin to pile up. Thanks for your assistance, Kevin!

KevinP
Alteryx Alumni (Retired)

@dallen Happy to be of assistance and I am glad to hear the solutions provided are working well for you. Also thank you for updating the post with the solutions as it may help other users in the future.

Labels