SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Deployed package hangs when it gets to an execute process task


Deployed package hangs when it gets to an execute process task

Author
Message
Griffster
Griffster
Say Hey Kid
Say Hey Kid (695 reputation)Say Hey Kid (695 reputation)Say Hey Kid (695 reputation)Say Hey Kid (695 reputation)Say Hey Kid (695 reputation)Say Hey Kid (695 reputation)Say Hey Kid (695 reputation)Say Hey Kid (695 reputation)

Group: General Forum Members
Points: 695 Visits: 713
I've created a package that runs amongst other things an Execute Process Task. Running the package in development mode from my own pc it runs through fine apart from the execute process task. I think this has to do with permissions etc which is why I thought I'd leave this testing of the execute process until I'd deployed it on to the server (It fails with error code -532459699 on my development pc). The process should only take a couple of minutes to run but the package looks like (from running a trace) that it hangs when it gets to the process and doesn't do anything. I may need to narrow my sql trace down a bit as I can't find the action that starts up the process in there (not a sql trace expert). Can anyone give me any pointers as to how to work out why this stops processing please?
Lynn Pettis
Lynn Pettis
SSC-Dedicated
SSC-Dedicated (39K reputation)SSC-Dedicated (39K reputation)SSC-Dedicated (39K reputation)SSC-Dedicated (39K reputation)SSC-Dedicated (39K reputation)SSC-Dedicated (39K reputation)SSC-Dedicated (39K reputation)SSC-Dedicated (39K reputation)

Group: General Forum Members
Points: 39273 Visits: 38529
It would help if you explained what you are running using the Execute Process Task. This is usually an external program such as a command line zip program or ftps program (two examples from my own environment).

Cool
Lynn Pettis

For better assistance in answering your questions, click here
For tips to get better help with Performance Problems, click here
For Running Totals and its variations, click here or when working with partitioned tables
For more about Tally Tables, click here
For more about Cross Tabs and Pivots, click here and here
Managing Transaction Logs

SQL Musings from the Desert Fountain Valley SQL (My Mirror Blog)
Griffster
Griffster
Say Hey Kid
Say Hey Kid (695 reputation)Say Hey Kid (695 reputation)Say Hey Kid (695 reputation)Say Hey Kid (695 reputation)Say Hey Kid (695 reputation)Say Hey Kid (695 reputation)Say Hey Kid (695 reputation)Say Hey Kid (695 reputation)

Group: General Forum Members
Points: 695 Visits: 713
Sorry, it's an executable program written in vb.net with a command line parameter. I set using a configuration file the location of the exe, the command line parameter and the working directory. Unfortunately, I wasn't the author of this program so I had to work out what the success value was so as to set the FailTaskIfReturnCodeIsNotSuccessValue field. Found on a website a script I could run to ascertain this and the value was 0. Set these accordingly on the execute process task, and on testing it on my development pc I get the exit code listed before, so thought, if the deployed one would fail I would get a similar exit code but I don't know what, if any, there is. The package is written such that, if an error is returned from the process i.e. return code is not 0, then an email is sent. Doesn't do this though.
Griffster
Griffster
Say Hey Kid
Say Hey Kid (695 reputation)Say Hey Kid (695 reputation)Say Hey Kid (695 reputation)Say Hey Kid (695 reputation)Say Hey Kid (695 reputation)Say Hey Kid (695 reputation)Say Hey Kid (695 reputation)Say Hey Kid (695 reputation)

Group: General Forum Members
Points: 695 Visits: 713
Curiously by the way, I've got it to work another way but it's more a cheat than anything. The executable is currently set to run from a windows scheduled task. Putting c:/windows/system32/SCHTASKS.EXE in the executable field of an execute process with /RUN /TN "name of the scheduled task" in an execute process task configuration, the executable works. Shouldn't really have to resort to this though, so would prefer it to work directly from the executable.
Griffster
Griffster
Say Hey Kid
Say Hey Kid (695 reputation)Say Hey Kid (695 reputation)Say Hey Kid (695 reputation)Say Hey Kid (695 reputation)Say Hey Kid (695 reputation)Say Hey Kid (695 reputation)Say Hey Kid (695 reputation)Say Hey Kid (695 reputation)

Group: General Forum Members
Points: 695 Visits: 713
Just also found out that if I run the process from the scheduled task and change the executable name to include the unc path i.e. \\server name\c$\ instead of c:\ which I have placed in the configuration file to make the process more portable, I get an open file - security warning dialog box pop up saying "the publisher could not be verified. Are you sure you wish to run this software?" when referring to schtasks.exe. Could this be a similar issue to my actual executable and the package hangs as it's waiting for someone to click Run?
Lynn Pettis
Lynn Pettis
SSC-Dedicated
SSC-Dedicated (39K reputation)SSC-Dedicated (39K reputation)SSC-Dedicated (39K reputation)SSC-Dedicated (39K reputation)SSC-Dedicated (39K reputation)SSC-Dedicated (39K reputation)SSC-Dedicated (39K reputation)SSC-Dedicated (39K reputation)

Group: General Forum Members
Points: 39273 Visits: 38529
Possibly. I'll have to look at our processes at work when I get a chance. We are having SharePoint Development training all this week, so I may be slow on getting this.

IIRC, we had to use local directories when calling the executables not UNC's.

The task that runs our FTPS process has to use all local directories, requiring that we make any necessary changes to that piece while actually remoted in to the server where it runs. A big pain in the ***, but you do what you gotta do.

Cool
Lynn Pettis

For better assistance in answering your questions, click here
For tips to get better help with Performance Problems, click here
For Running Totals and its variations, click here or when working with partitioned tables
For more about Tally Tables, click here
For more about Cross Tabs and Pivots, click here and here
Managing Transaction Logs

SQL Musings from the Desert Fountain Valley SQL (My Mirror Blog)
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search