Click here to monitor SSC
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in
Home       Members    Calendar    Who's On

Add to briefcase

Timeout problem with PSEXEC in SSIS package when running as a Job. Expand / Collapse
Posted Monday, June 21, 2010 1:41 PM



Group: General Forum Members
Last Login: Sunday, August 14, 2016 7:38 PM
Points: 455, Visits: 1,103

I have an SSIS package with an Execute Process Task that calls a bat file to run a remote process. The bat file contains the following line:

psexec \\DT2K3FS01 -u XXXXX\XXXXX-p XXXXX "C:\Program Files\Access Applications\Executive Desktop\EDProcessor.exe"

The bat file is located locally to the database server.

All works OK when I run the SSIS manually - the remote process starts - but when I run the SSIS package from SQL SERVER AGENT as a job it always goes to error :

Source: Execute Process Task Execute Process Task Description: The process timed out. End Error DTExec: The package execution returned DTSER_FAILURE (1).

When I run the SSIS package manually and have the Windows Style option of the Execute Process Task set to Window I notice the DOS window does not disappear after the psexec has called the remote process - it just hangs there. This probably has something to do with it

I have left the default values for the Execute Process Task.

Any help greatly appeciated - its driving me nuts!!

Post #940604
Posted Monday, June 21, 2010 2:44 PM


Group: General Forum Members
Last Login: Tuesday, March 15, 2011 8:30 AM
Points: 17, Visits: 89

Hope this link helps...
Let me know

Why not ?
Post #940639
Posted Thursday, August 9, 2012 1:42 PM
SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Today @ 12:42 PM
Points: 93, Visits: 1,059
I had a similar issue recently. I remoted into the machine and ran the psexec command that the SSIS package was attempting to run and it worked fine. So I logged off of the machine and logged back in with the credentials used by SQL Server Agent (which is the same credentials the agent job was configured to use) and tried running the psexec command and to my surprise, a window pops with the license agreement and the program wouldn't execute until I clicked the accept button. After that, the scheduled SSIS package worked without issue. Basically, the 1st time you run any of the executables from sysinternals this window pops up and it isn't machine specific, but user specific. I'm sure there is probably a registry entry you could edit, but it's easy enough to login with the agent account credentials or runas the agent account credentials to get this squared away.
Post #1342976
Posted Friday, November 15, 2013 3:33 PM
SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Yesterday @ 3:54 AM
Points: 849, Visits: 1,775
Hi Jason,

Thanks a ton for that piece of advice - was exactly what was causing my problem.

You can use the command -accepteula to avoid this problem from arriving.
Post #1514875
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse