SSIS DTSX package canceled during validation phase

Nico Verwer 36 Reputation points
2021-06-03T13:04:05.493+00:00

Since today, when I try to execute a package, or task within a package, I get the following output:

SSIS package "C:\ssis-<package>.dtsx" starting.
Information: 0x4004300A at Validate Tables, SSIS.Pipeline: Validation phase is beginning.
SSIS package "C:\ssis-<package>.dtsx" finished: Canceled.
The program '[15628] DtsDebugHost.exe: DTS' has exited with code 0 (0x0).

That's all. Of course I have not pressed the stop button to terminate execution.
I run this in debug or release mode, using VS2019 and SSIS. The yellow spinner on the design panel keeps spinning, but nothing else happens.

This problem happens when one of the dataflow tasks I am executing contains custom components. However, the same custom components worked without any problem until today. I went back in my Git history to an earlier version, and the same problem occurs. (I did recompile the custom components and registered them with the gcautil.)

The problem happened before I updated SSIS projects to version 3.14, and still happens after updating.
Running VS2019 as administrator does not make any difference.

At this point, to me it looks like something changed outside of my SSIS project, which causes the problem. However, I have no idea where to look because SSIS does not provide much information about what is (not) happening.

If anyone can shed some light on this, that would be much appreciated.


If you read this because you have the same problem, please read beyond the answer that I accepted. MS only lets me accept one answer, but there is more information here that might help you solve this problem.

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

Accepted answer
  1. ZoeHui-MSFT 38,621 Reputation points
    2021-06-04T05:46:25.773+00:00

    Hi @Nico Verwer ,

    As you said that the new issue is VS2019 just won't open a new window for VSTA scripting.

    Please refer this for more details to see if it could resolve the issue.

    As SQL Server Integration Services Projects mentioned, sometimes this product or Visual Studio Tools for Applications 2019 may be somehow deleted during VS instance upgrade.

    If VS doesn't pop up when clicking on "Edit Script", please try to repair VSTA 2019 via control panel.

    Regards,

    Zoe


    If the answer is helpful, please click "Accept Answer" and upvote it.

    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.
    Hot issues October

    2 people found this answer helpful.

5 additional answers

Sort by: Most helpful
  1. Michael Taylor 55,481 Reputation points
    2021-06-03T14:36:01.393+00:00

    Turn on diagnostics logging for the package and run it again. This should show you a detailed log of the SSIS processing including the validation of each component. Using that you should be able to narrow down which component (if any) is failing. After that I think some debugging by stepping through will potentially indicate what is wrong since you said it fails in either mode.

    As for the older vs newer package note that SSIS components are based upon versioned assemblies (for .NET components). These are stored in the GAC and the GAC can have any # of versions of an assembly. The SSIS package will use the exact version of the assembly it was built against. So if you were using v1 of a component for your package and it was working fine, you then upgraded your package and switched to v2 of the component then it'll use the newer version. If you later reverted your changes the package would be back to v1 of the component (which would likely never have been removed). This is what allows us to have different packages using different versions of the same component. So if the older version doesn't work anymore either then it seems like it isn't related to a component you rely on as the older version should just work.

    Additionally updating to a newer component is not automatic when opening a package. Starting with SSIS 2012 (I believe) components can upgrade a package to a newer version when opened in the designer (note that components have a designer and runtime component) but only if they opt into that feature. If a component doesn't do that then you have to do it manually otherwise the component will remain on the older version. This is partially to avoid breaking things but is a pain if your components update frequently.

    Given all this I believe the issue isn't with an upgraded component but rather a configuration on the server level or perhaps a server-level component like the framework but the logs will hopefully provide better information.

    1 person found this answer helpful.

  2. Rohit Kochar 6 Reputation points
    2023-02-16T05:08:31.0466667+00:00

    I am facing this issue too and getting very frustrated as I do not see any solution. Anyhelp would be appreciated?

    User's image

    1 person found this answer helpful.
    0 comments No comments

  3. Nico Verwer 36 Reputation points
    2021-06-04T13:48:20.093+00:00

    After a lot of digging, I found this thread, that refers to this one.
    Apparently, my packages were executed in a 64-bit runtime instead of 32-bit runtime.
    Why this suddenly happened I do not know, and I do not recall changing any settings related to 32 / 64 bits.

    The packages that do not use custom components execute correctly now. It also works for packages with custom components. I am happy now, after almost two days of pulling out my hair.


  4. Ashokk, Geetha 1 Reputation point
    2022-06-06T17:45:15.1+00:00

    Hello @Nico Verwer
    Could you please let me know how you fixed the problem of execution not getting past the Validation phase? I am facing similar problem.
    Thank you

    0 comments No comments

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.