The Executable Process Task is set up correctly. It runs successfully while running the SSIS package and command line.
Executable Process task details in SSIS (this executable task is inside a ForEachLoop Container)
Under Process Category (in Execute process task editor)
Executable: Winzip64.exe
Argument: -min -m -en "E:\SSISPackage\OUTPUT.ZIP""E:\SSISPackage\"
Working directory: C:\Program~1\WinzipOutput: SSIS package run successfully manually.
Code for Command Prompt is below:
Code to use on cmd line: dtexec /f "E:\SSISLocation\Package.dtsx"
Output: It is able to call the SSIS package successfully.
Code run in SQL browser (it fails here - not prompting and creating the zip file:
USE master
Go
DECLARE @ReturnCd AS INT
EXEC @ReturnCd = xp_cmdshell 'dtexec /f "E:\SSISLocation\Package.dtsx:'
Output: It is not running... It doesn't create the zip file and move all the files in the directory into the zip file. I get the error shown in my message. Any ideas?