Redshift - Multi Execute
This page is no longer maintained (May 13, 2026). For the most current information, go to Redshift - Multi Execute.
On this Page
Snap Type: | Write | |||||||
|---|---|---|---|---|---|---|---|---|
Description: | This Snap is used to execute multiple Redshift SQL statements sequentially inside of a single BEGIN and END transaction for each input document. If an SQL statement fails, subsequent SQL statements are not executed and error output goes to the error view (if the corresponding option is selected). If all statements are successful, all output results go to the output view. Data can be written to both output and error view if using multiple input documents. Use this Snap to perform updates to Redshift data that would otherwise be done in a Stored Procedure. Select statements that return data results, and transaction sql statements such as begin, end, commit and rollback are not supported. ETL Transformations & Data Flow
The Snap executes a sequence of multiple Redshift DDL commands in a sequential order as specified in the Executions section and the result will be written to the output view which contains results from individual queries that have been executed from the provided properties. If any submitted query fails, the Snap will throw an exception and rollback changes from prior queries. Input & Output:
Upstream & Downstream Snaps
A BEGIN and END statement are prepended and appended, respectively, to the MultiExecute SQL automatically by the Snap. The result of these statements is added to the output and error views. | |||||||
Prerequisites: | None | |||||||
Limitations and Known Issues: |
| |||||||
Configurations: | Account & AccessThis Snap uses account references created on the Accounts page of SnapLogic Manager to handle access to this endpoint. See Redshift Account for information on setting up this type of account. Views
| |||||||
Troubleshooting: | [None] | |||||||
Settings | ||||||||
Label
| Required. The name for the Snap. You can modify this to be more specific, especially if you have more than one of the same Snap in your pipeline. | |||||||
Executions
| Required. Specifies the SQL statement to execute on the server. Examples:
Caution Using expressions that join strings together to create SQL queries or conditions has a potential SQL injection risk and hence unsafe. Ensure that you understand all implications and risks involved before using concatenation of strings with '=' Expression enabled. Single quotes in values must be escaped Any relational database (RDBMS) treats single quotes ( For example: Default value: [None]
| |||||||
Troubleshooting
Error | Reason | Resolution |
|---|---|---|
| This issue occurs due to incompatibilities with the recent upgrade in the Postgres JDBC drivers. | Download the latest 4.1 Amazon Redshift driver here and use this driver in your Redshift Account configuration and retry running the Pipeline. |