Question
After upgrading from SQL Server 2016 to SQL Server 2019 (or opening older SSIS packages in a newer Visual Studio environment), SSIS packages that use ZappySys tasks fail when executed via SQL Server Agent with an error like:
Error: Failed to load task "Encrypt_Access_Token", type "".
Error: The package cannot execute because it contains tasks that failed to load.
DTExec: The package execution returned DTSER_FAILURE (1).
Or in Visual Studio, ZappySys tasks appear with an error:
The task with the name "Encrypt_Access_Token" and the creation name "SSIS.ReplacementTask"
is not registered for use on this computer.
Why does this happen, and how do you fix it?
Why Does This Happen?
When SSIS packages are created in an older Visual Studio / SQL Server version (e.g., VS 2016 / SQL 2016) and then opened or executed in a newer environment (e.g., VS 2019+ / SQL Server 2019), the SSIS runtime can no longer locate or load the ZappySys task registrations from the older package format.
The most common causes are:
- Package version mismatch — The package’s
TargetServerVersionstill targets an older SQL Server runtime (e.g., 2016), but SQL Server Agent is running the package using a newer DTExec runtime (e.g., SQL Server 2019, version 15.x). - Corrupted or improperly imported packages — Packages moved or imported between environments can lose task mapping references during the process.
- SSIS PowerPack not registered on the server — The ZappySys components may not be installed (or correctly reinstalled) on the SQL Server machine where the Agent job runs.
- SQL Agent service account permissions — The service account running the job may not have access to ZappySys installation folders.
Solution
Work through the steps below in order. Most cases are resolved by Step 1 or Step 2.
Step 1 – Reinstall SSIS PowerPack on the Server
Even if the latest version is already installed, a clean reinstall is often the fastest fix for task registration issues.
- Uninstall SSIS PowerPack from the SQL Server machine.
- Restart the server.
- Download the latest installer from zappysys.com/products/ssis-powerpack/download/.
- Run the installer as Administrator, keeping the default installation options.
- Restart the SQL Server Integration Services (SSIS) Windows service.
- Re-run the SQL Agent job and check if the error is resolved.
Step 2 – Re-export Packages from the Original Environment
If the packages were copied or imported and are now corrupted, the cleanest fix is to go back to the source:
- Open the original/older UAT or source server where the packages were working.
- Export the packages directly from that environment (do not copy
.dtsxfiles manually between environments). - Import the freshly exported packages into your new Visual Studio project.
- Allow the package upgrade prompt when opening in the new VS version.
- Save and redeploy.
Step 3 – Update TargetServerVersion
If packages still have an older target version set, update it to match your current SQL Server:
- In Visual Studio, right-click the SSIS project → Properties.
- Under Configuration Properties, find TargetServerVersion.
- Set it to match your SQL Server runtime — e.g., SQL Server 2019 if your Agent is running DTExec 15.x.
- Save all, rebuild, and redeploy.
Important: The
TargetServerVersionin the project must match the SQL Server version used by SQL Agent. A mismatch is one of the most common causes of “Failed to load task” errors.
Step 4 – Fix Package Format via Text Editor (Advanced)
If you have packages that cannot be re-exported and the above steps don’t resolve it, you can manually update the package format reference inside the .dtsx file:
Open the .dtsx file in a text editor (e.g., Notepad++) and find/replace the ZappySys assembly version string:
| From (old format) | To (target format) |
|---|---|
ZappySys.PowerPack100 |
SQL 2008 → replacing |
ZappySys.PowerPack110 |
SQL 2012 format |
ZappySys.PowerPack120 |
SQL 2014 format |
ZappySys.PowerPack130 |
SQL 2016 format |
ZappySys.PowerPack140 |
SQL 2017 format |
ZappySys.PowerPack150 |
SQL 2019 format ← most common target |
For example, if upgrading from SQL 2016 to SQL 2019, do a bulk find & replace of ZappySys.PowerPack130 → ZappySys.PowerPack150 across all .dtsx files in your solution folder.
Make a backup of all files before editing.
Step 5 – Verify SQL Agent Service Account Permissions
The SQL Agent job in the ticket ran as QAS\SQLClustSVC. Ensure this account has:
- Read/execute access to the ZappySys installation directory (typically
C:\Program Files\ZappySys\) - Access to the SSISDB or the package file location
- Access to any referenced connection files or configurations
Quick Checklist
| Check | Details |
|---|---|
| Must be on the SQL Server machine, not just the dev machine | |
| SQL Agent typically runs 64-bit DTExec | |
| Project properties → must match Agent’s runtime version | |
| Copied packages can be corrupted | |
| Check access to ZappySys folders |
Contact Us
If you encounter any further issues or need additional help, please reach out to our support team via live chat or submit a support ticket at support@zappysys.com.