Download Xml Files: Cannot load script for execution

Thirston Third 21 Reputation points
2022-03-30T11:03:11.523+00:00

I'm executing an SSIS package from Integration Services Catalogs under SSISDB. It's getting this error on a script task. I rebuilt the task.
SQL Server 2019
Visual Studio 2019
TargetServerVersion SQL Server 2017
Download Xml Files: Cannot load script for execution

SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,702 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Olaf Helper 47,436 Reputation points
    2022-03-30T11:09:06.88+00:00

    SQL Server 2019 ... TargetServerVersion SQL Server 2017

    For SSIS it is important, than the version of SSIS and package TargetServerVersion matches.
    Does the package work when you run it in SSDT?


  2. Yitzhak Khabinsky 26,586 Reputation points
    2022-03-30T14:02:15.297+00:00

    Hi @Thirston Third ,

    VS2019 is not using SSDT anymore. It needs SQL Server Integration Services Projects extension.

    If your SSIS run-time version on the server is 2019, you need to set TargetServerVersion='SQL Server 2019' in the VS2019 project settings.


  3. ZoeHui-MSFT 41,491 Reputation points
    2022-03-31T01:43:48.647+00:00

    Hi @Thirston Third ,

    Change the TargetServerVersion to SQL Server 2019 and then rebuild the script task.

    Remember to save the package and re-deploy it.

    Regards,

    Zoe


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

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