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


Parent Package does not wait on Execute Package Task???


Parent Package does not wait on Execute Package Task???

Author
Message
Eric Mamet
Eric  Mamet
Hall of Fame
Hall of Fame (3K reputation)Hall of Fame (3K reputation)Hall of Fame (3K reputation)Hall of Fame (3K reputation)Hall of Fame (3K reputation)Hall of Fame (3K reputation)Hall of Fame (3K reputation)Hall of Fame (3K reputation)

Group: General Forum Members
Points: 3012 Visits: 925
I am slightly confused...
Everything I read seems to indicate that executing a sub-package through the Execute Package Task is synchronous yet my parent package seems to behave the other way (asynchronous...).

I have a "master" Package that has one control flow with a few Execute SQL Tasks followed by a few child packages that I was hoping would run sequentially before finishing my master package with a few more Execute SQL tasks.

It looks like my master package runs through its "Execute SQL Tasks" as if the "Execute Package Tasks" did not exist...
My last Execute SQL Task marks my "batch" (aka master package) as successful while a couple of the Execute Package Tasks are not yet started (see screenshot attached).

Any idea why this might be?

PS: I configure my child packages through a file connection modified at runtime via an expression (to point at the same folder as the parent package)
Attachments
Parent Package Rush.png (22 views, 13.00 KB)
Eric Mamet
Eric  Mamet
Hall of Fame
Hall of Fame (3K reputation)Hall of Fame (3K reputation)Hall of Fame (3K reputation)Hall of Fame (3K reputation)Hall of Fame (3K reputation)Hall of Fame (3K reputation)Hall of Fame (3K reputation)Hall of Fame (3K reputation)

Group: General Forum Members
Points: 3012 Visits: 925
Interesting...

This only seems to affect the debugging via BIDS.

When fired through SQL Server Agent or DEXECUI, it seems to behave as expected.

Maybe by configuring my package on the fly in BIDS, I force the execution of the sub-package through an "out of process" execution, hence not synchronous?

Oh well... Lets call this a SUCCESS then! :-P
Jason-299789
Jason-299789
SSCarpal Tunnel
SSCarpal Tunnel (4.9K reputation)SSCarpal Tunnel (4.9K reputation)SSCarpal Tunnel (4.9K reputation)SSCarpal Tunnel (4.9K reputation)SSCarpal Tunnel (4.9K reputation)SSCarpal Tunnel (4.9K reputation)SSCarpal Tunnel (4.9K reputation)SSCarpal Tunnel (4.9K reputation)

Group: General Forum Members
Points: 4939 Visits: 3232
I've seen this behaviour before, though it normally occured when the SSIS package files where copied and the GUID's didnt get reset.

I think it had something to do with the way BIDS formed its stack, it was especially prevelant if one of the copied packages had been executed previously, it would then execute both packages, and if one completed first it would rase a completed back to the parent level even though the 'real' one was still running.

I hope that made sense.

_________________________________________________________________________
SSC Guide to Posting and Best Practices
Eric Mamet
Eric  Mamet
Hall of Fame
Hall of Fame (3K reputation)Hall of Fame (3K reputation)Hall of Fame (3K reputation)Hall of Fame (3K reputation)Hall of Fame (3K reputation)Hall of Fame (3K reputation)Hall of Fame (3K reputation)Hall of Fame (3K reputation)

Group: General Forum Members
Points: 3012 Visits: 925
Not entirely but I feel less alone now! :-D



Thanks
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