Share via

Issues with SSIS packages after upgrading SQLServer from 2019 to 2022.

Ben Pflanzer 0 Reputation points
2026-04-28T18:10:56.7+00:00

These packages have been running successfully for years, but failed after upgrading SQLserver to 2022.
Further detail: the package contains a Script task (VB) that creates and populates files on the file system (either excel or PDF).

We have two servers that run this package:
Server A runs the package stored locally (on Server A)
Server B runs the same package as stored on Server A.

The package was NOT modified by the DBA.

Server A was upgraded
Server B was not.

Server A does not create the files, but reports Success.
Server B creates the files correctly

Thanks in advance!

SQL Server Integration Services

Answer recommended by moderator

  1. Q&A Assist
    2026-04-28T18:11:11.71+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    On the upgraded SQL Server 2022 server, the SSIS package is loading and executing under a newer SSIS runtime, which can silently change behavior for scripts and external components even when the package itself was not modified.

    Key points from the provided information that apply to this scenario:

    1. When a newer SSIS runtime (for example, SQL Server 2019 or later) loads a package created on an older version, it temporarily converts the package in memory to the newer format. If there are issues in this conversion, the package may not behave as expected, even though it reports success.
      • This conversion happens when using the newer dtexec or SQL Server Agent on the upgraded instance.
    2. Script Tasks and Script Components are particularly sensitive to version and runtime changes:
      • Integration Services assemblies were upgraded to .NET 4.0 and placed in a different GAC path in newer versions.
      • Scripts that reference certain assemblies (for example, ADODB.dll or other external components) may not upgrade or run correctly on machines that only have the newer tools/runtime installed.
      • In Azure/modern runtimes, validation explicitly warns that Script Tasks/Components may reference unsupported assemblies and can fail at runtime.
    3. Because Server B (not upgraded) still runs the package correctly, the package itself and its script logic are valid. The difference is the SSIS runtime and underlying assemblies on Server A after the SQL Server upgrade.

    Practical steps to resolve on Server A:

    1. Rebuild and redeploy the package using the newer SSIS designer that targets the upgraded SQL Server version.
      • Open the project in SQL Server Data Tools/Visual Studio with the SSIS extension that matches the upgraded SQL Server version.
      • Open the Script Task, make a trivial change (for example, add a comment), and rebuild so that the script is recompiled against the newer Integration Services assemblies.
      • Deploy the updated ISPAC/package to Server A and test again.
    2. Check the Script Task for any explicit references to older or unsupported assemblies:
      • If the script uses ADODB.dll or other legacy COM/interop components, replace them with ADO.NET where possible, as recommended for newer SSIS versions.
    3. If Server A is running packages created with older tools without having the corresponding design-time/runtime components fully installed, install or repair the SSIS components for the upgraded SQL Server version so that the Script Task has all required assemblies available.
    4. If the package is being executed via SQL Server Agent on Server A, test the same package with dtexec from the command line on Server A to see if any warnings or errors are surfaced there that are not obvious in the Agent history.

    These steps align the Script Task and its dependencies with the upgraded SSIS runtime on Server A, which should restore the expected behavior of creating the Excel/PDF files while still reporting success.


    References:

1 additional answer

Sort by: Most helpful
  1. Ben Pflanzer 0 Reputation points
    2026-05-05T13:26:56.1433333+00:00

    I wasn't able to recreate the issue in UAT I can't (usually) use tools like process monitor in prod.
    For this and other reasons we decided to move the process to a new dedicated ETL server (2025) and testing went well in UAT. Runs in prod tonight.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.