Alteryx Designer Knowledge Base

Definitive answers from Designer experts.

No Columns Returned for Stored Procedure

MichaelAd
Alteryx
Alteryx
Created

Environment Details


When running a Stored Procedure from the Input or Dynamic Input tool the following error (or similar) will occur.

 

Error opening "EXEC StoredProcedure": "No Columns Returned"

 

 

 

  • Alteryx Designer
    • Versions all


Cause


Both Input tool as well as the Dynamic Input tool require in the main SQL section a statement that returns columns.

 



Resolution


Amend the Stored Procedure to return columns by modifying the SQL query of the Stored Procedure on database side. If you are unsure how to do that you can work on it together with your DBA.

 

Alternatively, the Stored Procedure can be called as Pre- or Post-SQL query in the Input tool.

If you have further questions feel free to reach out to Customer Support by sending an email to Support@alteryx.com.

Additional Resources

Stored Procedures - FAQ

 

 

Comments
LisaL
Alteryx
Alteryx

The resolution above also works when no Stored Procedure is used.  If the SQL statement in the Query slot doesn't return any data, for example, because it just modifies a table, the No Columns Returned error will occur because the Input Data and Dynamic Input tools require that some data be returned even if you don't need that data and don't use it anywhere in your workflow. 

SELECT 1 AS dummy from DUAL;

works for Oracle.
Other databases don't even require a table be specified

SELECT 1 AS dummy;

works for SQL Server.