I am receiving an error when I run a SQL Server Agent job that calls an SSIS package that then runs an "Execute Process Task" of a batch file. Specifically the error I get is this
In Executing "d:\apps\bin\DoExport.bat" "-out ACNOR.TXT" at "", The process exit code was "1" while the expected was "0".
I then can see further into the error which says:
%HOMEDRIVE%%HOMEPATH%: No such file or directory at D:/apps/perl/line.pm line 1345. BEGIN failed--compilation aborted at d:/apps/bin/Import/JDBC_DBH.pm line 25. Compilation failed in require at d:/apps/bin/Import/DBWrapper.pm line 280.
I am assuming this is a permissions issue from my SQL Agent because I can run this interactively in BIDS on this server.
The Agent runs with a SQL ID that has sysadmin permission in SQL server and also has admin access on the server that it is running. In the SQL server services (SQL Server, SQL Server Agent, and SQL Server Integration Services) I have an ID setup that has admin access to the server as well.
Any idea what could be causing this issue?