SSIS - why my process tasks keep ending with result 1 (thus failing SSIS package)

99 Views Asked by At

I am trying to move the contents of a folder to another folder. Trying to keep this efficient, I decided to use a Process task:

enter image description here

While in SSDT, it works perfectly.

But when deployed to SQL Server SSIS on the same machine, it returns PROCESS EXIT 1 and fails the package.

Is there anything here that stands out that could prevent this from working? Thanks.

1

There are 1 best solutions below

0
Hadi On

When SSIS packages are executed from SQL Server they access File System using the SQL Server Service Account NT SERVICE\MSSQL$<Instance Name> (Where <Instance Name> should be replaced by the installed instance name). You have to Grant this account to access the selected directories or run the SQL job using a proxy account:

SQL Server Serivce account Permissions:

Setting proxy account: