A Microsoft platform for building enterprise-level data integration and data transformations solutions.
In SSIS 2019, Script Task scripts are precompiled. That error means the package does not contain the compiled script binary that the runtime expects.
Use this path to fix it:
- Open the package in Visual Studio/SSDT.
- Open each failing Script Task Editor.
- Select Edit Script to open VSTA.
- Make a trivial change if needed, such as adding a comment.
- Save and close VSTA so the script is compiled again.
- Rebuild the SSIS project.
- Redeploy the rebuilt package, preferably as the rebuilt project output.
Important checks:
- The machine that runs the package must have VSTA installed.
- In SSIS 2008 and later, including SQL Server 2019, all scripts are precompiled.
- If the package was modified but the script binary was not regenerated, runtime can fail with errors such as:
- DTS_E_BINARYCODENOTFOUND: the script is configured as precompiled, but binary code is not found.
- DTS_E_SCRIPTTASK_BINARYITEMNOTFOUNDEXCEPTION: a binary item was not found in the package.
- The script is stored in the package definition, not as a separate script file, so redeploying the rebuilt package is required.
If this only happens in non-prod while production still works, the most likely cause is that the non-prod package was deployed without regenerated script binaries, or it was rebuilt/deployed from a different SSIS designer/runtime state. Re-editing the script, rebuilding, and redeploying is the supported fix.
References: