Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Parent Package does not wait on Execute Package Task??? Expand / Collapse
Author
Message
Posted Monday, November 12, 2012 6:23 AM
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Tuesday, December 2, 2014 3:51 PM
Points: 1,191, Visits: 794
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)


  Post Attachments 
Parent Package Rush.png (5 views, 13.65 KB)
Post #1383658
Posted Monday, November 12, 2012 7:48 AM
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Tuesday, December 2, 2014 3:51 PM
Points: 1,191, Visits: 794
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!
Post #1383706
Posted Monday, November 12, 2012 7:53 AM
SSC Eights!

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

Group: General Forum Members
Last Login: 2 days ago @ 9:25 AM
Points: 953, Visits: 2,626
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
Post #1383709
Posted Monday, November 12, 2012 7:59 AM
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Tuesday, December 2, 2014 3:51 PM
Points: 1,191, Visits: 794
Not entirely but I feel less alone now!



Thanks
Post #1383714
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse