Use Python and executable script transformations
On this page
Script transformations can use SQL, executable-task settings or a generated SQL wrapper for Python.
Python template
The regenerate action applies only to a Script transformation with the Python script type and available source/destination table metadata. It builds SQL that truncates the destination, invokes sys.sp_execute_external_script with Python, and inserts the returned dataset within a TRY/transaction/CATCH wrapper.
The initial Python body produces dummy output with types derived from destination metadata. It is a template requiring your implementation, not a working business transformation.
- Define the first source table and destination columns.
- Select the Python script type.
- Generate the template. Confirm replacement only after preserving any existing custom script.
- Replace dummy logic while keeping output columns/types aligned.
- Ensure the SQL Server target is configured to execute the required external language and libraries.
- Test against an isolated destination, then review the generated execution package.
The frontend passes this Python wrapper to SSIS as a SQL script task. Python execution is therefore on the configured SQL Server path, not an arbitrary local Python process launched by the editor. Supported runtime versions and installation procedure require environment-owner confirmation.
Executable task
The SSIS generator recognizes lines for Executable, Arguments, WorkingDirectory and TimeOut. It creates a hidden process task. The parser splits lines on = and takes the next segment, so values containing additional equals signs are not reliably preserved by that implementation.
Declare incoming/outgoing dependencies explicitly and review the runtime identity and file paths. ADF's inspected script activity path is SQL-based; do not assume executable/Python option parity across targets.