Welcome to the Alteryx Knowledge Base

Starburst: PreSQL and PostSQL are not executed on Server if Run PreSQL On tool Configuration property is not selected
user

Created/Edited - 9/25/2026 by Clara Boo | Alteryx

Issue

The SQL statements in the Pre SQL Statement and Post SQL Statement properties of the Input Data tool are not executed when the workflow runs in Alteryx Server. These statements are executed if the workflow runs in the Designer.

 

 

 

 

 

Environment
  • Alteryx Server
    • Version >= 2025.1
  • Engine
    • Alteryx Multi-threaded Processing (AMP)

 

Prerequisites
  • Data Source
    • Starburst

 

Cause

The pre- and post-SQL statements are not executed if the Run PreSQL on tool configuration property in the Input Data tool is not selected, and applies only to the Starburst data source. If only the Post SQL statement property is used, the statement is still executed even if the Run PreSQL on tool configuration property is not selected.

 

Below is a table of the possible combinations and the results. The rows in light blue are the combinations that will prevent the pre- and post-SQL statements from running.

 

Pre SQL Statement (Set?)Run PreSQL on tool configuration (Selected?)Post SQL Statement (Set?)Execute in Designer?Execute in Gallery/Server?
YYYYY
YYNYY
YNYYN
YNNYN
NYYYY
NNYYY

 

NOTE: The above behaviour is seen using AMP engine with no output data tool. If you are using E1 engine, the PostSQL statement is never run.

 

 

Screenshot of the Input Data tool showing the Run PreSQL on tool configuration property:

 

 

The Run PreSQL on tool configuration property controls whether that PreSQL is executed when Designer is merely configuring/refreshing the Input Data tool, not only when the workflow runs.

 

 

Resolution

For the pre- and post- SQL to execute without the Run PreSQL on tool configuration property, there must be a data output tool. If you do not have a data output tool, no data will be streamed out and both pre- and post- SQL will not be executed. If you want to force the pre- and post- SQL to run without a data output tool, you need to select the Run PreSQL on tool configuration property if applicable, as the PreSQL may run when you open/configure/refresh the Input Data tool, and may cause an issue if the statement changes data. 

 

NOTE: The behaviour is ONLY applicable to Server. Running the workflow Designer will show execution of pre- and post- SQL.

Was this article helpful?