dbTalk Databases Forums  

Child Package Errors Do Not Fire OnFailure in Parent

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Child Package Errors Do Not Fire OnFailure in Parent in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Tom
 
Posts: n/a

Default Child Package Errors Do Not Fire OnFailure in Parent - 05-10-2004 , 10:11 PM






Hello

I have turned off all 'fail on task' steps. I have turned off fail 'package on first error' on the parent package. I have turned on fail package on first error on the child package. I have also tried a number of combinations. in the child and parent packages The child packages call stored procedures that invoke RAISERROR when something bad happens, yet no error causes the parent package to fire the OnFailure event

Can someone help?

Thanks!

Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Child Package Errors Do Not Fire OnFailure in Parent - 05-11-2004 , 02:16 AM






OK

So this works for me.

CHILD

I have a proc which I execute

CREATE PROCEDURE Raise_My_Errors
AS
RAISERROR ('I am raising an error', 16, 1) WITH NOWAIT
go

I add a connection and ExecuteSQL task that just fires this proc


PARENT

ExecutePackage task - Fires the child
On Failure workflow to an ActiveScript task.

Runs:

1. If in the CHILD I set "Fail Package on first Error" but not in the
parent then the workflow is followed
2. If in the CHILD I do not set "Fail Package on first Error" and also not
in the parent then the workflow is not followed but the ExecutePackage task
fails with my RAISERROR message
3. If in the CHILD I do not set "Fail Package on first Error" but set it in
the parent then the workflow is not followed but the ExecutePackage task
fails with my RAISERROR message
4. If in the CHILD I set "Fail Package on first Error" and in the parent
then the workflow is not followed and the ExecutePackage task fails with my
RAISERROR message.



--

----------------------------

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Tom" <anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
Hello,

I have turned off all 'fail on task' steps. I have turned off fail
'package on first error' on the parent package. I have turned on fail
package on first error on the child package. I have also tried a number of
combinations. in the child and parent packages The child packages call
stored procedures that invoke RAISERROR when something bad happens, yet no
error causes the parent package to fire the OnFailure event.
Quote:
Can someone help?'

Thanks!



Reply With Quote
  #3  
Old   
Tom
 
Posts: n/a

Default Re: Child Package Errors Do Not Fire OnFailure in Parent - 05-24-2004 , 10:01 PM



Does q article 810185 have any bearing here? Thanks for the terse help!

Reply With Quote
  #4  
Old   
Darren Green
 
Posts: n/a

Default Re: Child Package Errors Do Not Fire OnFailure in Parent - 05-25-2004 , 01:49 PM



I can't seem to see the thread for this, so trying to take a look at the KB
anyway I find it does not exist.

Sure that is the number ?



"Tom" <anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
Does q article 810185 have any bearing here? Thanks for the terse help!



Reply With Quote
  #5  
Old   
Darren Green
 
Posts: n/a

Default Re: Child Package Errors Do Not Fire OnFailure in Parent - 05-26-2004 , 02:54 AM



Fail on first error needs to be set in the child package only. This will
prevent any on error workflow being followed, since it really does fail the
package when it errors, so nothing else is done.

You mention and error -handling SQL task, in the singular. Multiple
constraints to a single step must ALL be satisfied for the step to execute.
So having one task with lots of failure constraints leading too it will not
work.

Make sure your global variable names are consistent, as these are case
sensitive.


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


"Tom" <anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
I have been able to make it work with your example as well, but there is
something wrong in the package that is:
1) preventing the onfailure to fire in the parent in ANY of the workflows
2) preventing global variables to be passed to children.

I have even re-bulit the package, task by task, and still the error synchs
dont fire.
The parent package uses a sql server data source,and contains a number of
sql tasks, two child packages, and has a dynamic properties task that
dynamically determines the file name of a text file to import into sql
server. Some of the sql tasks execute procs, some execute sql. NONE of the
tasks in the package fire the error-handling sql task (which just does a
table update), even if I raise an error in a task or force an error. The
package is executed by a VB.Net application.
Quote:
I've even installed a hotfix that fixes a bug with RAISERROR in a proc not
bubbling back to to DTS.

I'm running out of ideas, anyone else have any?



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.