Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 2005
»
SQL Server 2005 Integration Services
»
Deployed package hangs when it gets to an...
Deployed package hangs when it gets to an execute process task
Rate Topic
Display Mode
Topic Options
Author
Message
Griffster
Griffster
Posted Monday, June 15, 2009 5:56 AM
SSC Veteran
Group: General Forum Members
Last Login: Monday, April 22, 2013 8:07 AM
Points: 239,
Visits: 645
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?
Post #734911
Lynn Pettis
Lynn Pettis
Posted Monday, June 15, 2009 6:12 AM
SSC-Insane
Group: General Forum Members
Last Login: Yesterday @ 11:07 PM
Points: 21,625,
Visits: 27,468
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).
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)
Post #734928
Griffster
Griffster
Posted Monday, June 15, 2009 6:27 AM
SSC Veteran
Group: General Forum Members
Last Login: Monday, April 22, 2013 8:07 AM
Points: 239,
Visits: 645
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.
Post #734934
Griffster
Griffster
Posted Monday, June 15, 2009 6:38 AM
SSC Veteran
Group: General Forum Members
Last Login: Monday, April 22, 2013 8:07 AM
Points: 239,
Visits: 645
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.
Post #734941
Griffster
Griffster
Posted Monday, June 15, 2009 7:02 AM
SSC Veteran
Group: General Forum Members
Last Login: Monday, April 22, 2013 8:07 AM
Points: 239,
Visits: 645
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?
Post #734956
Lynn Pettis
Lynn Pettis
Posted Monday, June 15, 2009 7:18 AM
SSC-Insane
Group: General Forum Members
Last Login: Yesterday @ 11:07 PM
Points: 21,625,
Visits: 27,468
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.
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)
Post #734979
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.