dbTalk Databases Forums  

ForEach continue on Failure

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


Discuss ForEach continue on Failure in the microsoft.public.sqlserver.dts forum.



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

Default ForEach continue on Failure - 07-21-2006 , 04:30 AM






I have a ForEach Loop. In the ForEach Loop there is a Sequence Container
that has a couple of ExecuteSQL tasks. If those tasks fail I want to do some
additional logic and in either case loop again.

Everything works fine as long as nothing in the SequenceContainer fails. If
it fails, it will continue through the additional logic, but the loop will
terminate at that point.

Is there a way to get the loop to keep looping even though one of the
internal steps failed?

Thanks,

Larry

Reply With Quote
  #2  
Old   
Todd C
 
Posts: n/a

Default RE: ForEach continue on Failure - 11-22-2006 , 09:36 PM






It's been 4 months since you posted this but it might be usefull anyway:

Take a look at the properties of the tasks inside the containers. Look for
propertis named "FailParentOnFailure" and "FailPackageOnFailure".

These yes/no properties might help you configure your control flow. You
might also look at eh precedence lines between taks. Green is OnSuccess, but
you can also set it to OnFail or OnCompletion.

Hope this helps
--
Todd Chittenden


"Larry Charlton" wrote:

Quote:
I have a ForEach Loop. In the ForEach Loop there is a Sequence Container
that has a couple of ExecuteSQL tasks. If those tasks fail I want to do some
additional logic and in either case loop again.

Everything works fine as long as nothing in the SequenceContainer fails. If
it fails, it will continue through the additional logic, but the loop will
terminate at that point.

Is there a way to get the loop to keep looping even though one of the
internal steps failed?

Thanks,

Larry

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.