Could not file a part of the path for an SSIS script task

Ant 26 Reputation points
2021-03-22T13:48:44.98+00:00

I am getting this error when use the Script task in SSIS and don't understand why:

Severity Code Description Project File Line Suppression State
Error Could not find a part of the path 'C:\Users\username\AppData\Local\Temp\Vsta\61d5a20daf904a278ef017ef7eef8fc6_out'. ST_ca5064974f4f43728c8d987753fa371b C:\Users\username\AppData\Local\Temp\Vsta\SSIS_ST140\VstaXRIoercdOUy2UObM7ktuWQ\VstakX__CJj__S40ygaXyX6l7FTw\mscorlib 0

I tried to add the mscorlib and got an error that it was automatically added. Am I missing something anyone else have this issue and was able to fix it?

Thank you

SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,451 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,205 questions
0 comments No comments
{count} votes

Accepted answer
  1. Yitzhak Khabinsky 24,936 Reputation points
    2021-03-22T14:40:59.193+00:00

    Hi @Ant ,

    If you are using VS2019, it was a bug introduced in the VS2019 v.16.9
    You would need to install latest version of the SQL Server Integration Services Projects extension v.3.12.1 for VS2019.

    The fix is documented here:

    There is a regression in VS 2019 16.9 that will cause script task/component not work properly when editing script. VSTA team has released a new version to work around this issue. Please install latest version 3.12.1 to fix the issue, or you can keep on version 3.12 and manually download and install the latest version of VSTA 2019 here.

    SQL Server Integration Services Projects

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Przemysław Baszak 1 Reputation point
    2021-04-27T07:59:36.72+00:00

    I have VS 16.9.4 and SQL server Integration Services Projects extension v.3.13.1 and when I want to bulid script task I still have error "Could not find a part of the path 'C:\Users\user\Desktop\Integration Services\Project\bin'. st_6313372d71334af5893795a1785d0949 C:\Users\user\AppData\Local\Temp\Vsta\SSIS_ST150\Vstat7WOej4__6UK2YXGTiW2YbA\VstaKRg49__NtVEmt29zKITAFhA\mscorlib 0

    0 comments No comments