all groups > sql server dts > october 2004 >
You're in the

sql server dts

group:

DTS package Precedence not working


DTS package Precedence not working TCG_GILBERT
10/21/2004 6:39:04 PM
sql server dts: I have a master DTS package that is made up of multiple other DTS packages.
The process that we run nightly is something like:
Step 1 (pull data)
On Success
Step 2 (aggregate data)
On Success
Step 3 (generate key in separate table)
On Success
Step 4 (push data into final table)

It's important that the package come to a hault if something goes wrong in
step 3 as we don't want records in the table (step 4) that don't have
corresponding records in the key table. Hence we put a workflow step in
between each execute dts package task saying move to the next step "on
success". However in observing the package execute it seems to move the next
step regardless of the results in the prior step. If step 3 fails step 4
starts going instead of aborting the master package?
Wondering if this is a known issue? Any help would be greatly appreicated.

I"m using SQL SERVER2k on a Win2k3 server.
Thanks in advance.
RE: DTS package Precedence not working Les Russell
10/21/2004 8:53:02 PM
I came to the forum to ask this exact same question. Sorry I can't help, but
just so ppl know that there are a few interested parties.

[quoted text, click to view]
RE: DTS package Precedence not working Les Russell
10/21/2004 9:09:05 PM
I noticed a check-box, in the Logging tab of the Package Properties, called
"Fail package on first error". Will ticking this box generate the desired
behaviour? I will probably try to test this.

[quoted text, click to view]
RE: DTS package Precedence not working tcg_gilbert
10/21/2004 9:39:01 PM
I believe this check box is to fail on error of writing the log. Not on error
of the dts package itself.

[quoted text, click to view]
RE: DTS package Precedence not working Les Russell
10/21/2004 11:25:02 PM
I checked through a bunch of other posts here, and found a couple which also
described this problem. Both were answered by a Darren Green who indicated
that this check box will work. Have a look at the post dated 10/21/2004
entitled "Execute Package Task - Workflow".

I will definitely test it now.

[quoted text, click to view]
Re: DTS package Precedence not working Darren Green
10/22/2004 1:38:57 PM
The fail on first error will mean the child stops on error, no on error
workflow will be followed, but more importantly for you this also means the
error is bubbled up to the Exec Pkg Task in the parent and this task also
then fails.


--
Darren Green
http://www.sqldts.com

[quoted text, click to view]

Re: DTS package Precedence not working Les Russell
10/22/2004 2:57:03 PM
Thanks for this Darren.

I guess that means that you cannot easily have a child process which both
has on-error processing, but which you also want to signal a fail to a parent
if any other tasks fail.

Any clues as to how this could be done - ActiveX would be required I guess?

[quoted text, click to view]
RE: DTS package Precedence not working tcg_gilbert
10/24/2004 10:33:02 PM
Hey, thanks to each of you for the help.
I'll give it a shot tomorrow.
Josh

[quoted text, click to view]
Re: DTS package Precedence not working Darren Green
10/25/2004 12:21:33 PM
Exactly. Bit of a trade off when using the Exec Pkg Task. The alternative
is to use another execution mechanism, such as doing it directly from
ActiveX Script.


--
Darren Green
http://www.sqldts.com

[quoted text, click to view]

Re: DTS package Precedence not working Les Russell
10/27/2004 2:15:03 PM
Thanks for all your help.

[quoted text, click to view]
AddThis Social Bookmark Button