Reputation: 1
I created a SSIS package to extract zip files (which contains Csv files) using 7-zip then uploads the data into SQL Server. When I run it in Visual Studio, it worked perfectly, but when I run the job in SQL Server Agent, I get this message:
The process exit code was "2" while the expected was "0"
I tried the following to resolve the issue but no luck:
C:\Program Files (x86)\7-Zip
For item #3 above - the job says it was successful but it didn't extract the zip files.
SSIS Execute Process Task
Executable: Z:\ZIP_Files\7-Zip\7z.exe
or \\nas\PIND\VAULTSAMPLES\datasamples01\Medina OH\Recorder Data\Historical\ZIP_Files\7-Zip\7z.exe
(I tried both)
Arguments: E "\\nas\PIND\VAULTSAMPLES\datasamples01\Medina OH\Recorder Data\Historical\ZIP_Files" -y
Working Directory: \\nas\PIND\VAULTSAMPLES\datasamples01\Medina OH\Recorder Data\Historical\ZIP_Extraction
Upvotes: 0
Views: 240