Quantcast
Viewing all articles
Browse latest Browse all 24688

Foreach Loop Container and Dts.TaskResult

Hi.

So I have a Foreach Loop Container, and in it, a Script Task. On success of Script Task it follows to a TSQL Query, if Script Task fails, the flow goes to another TSQL Query. Green arrow or Red.

However in the Script Task I have setup a try {} catch {} condition that does a bit of logging and then issues a Dts.TaskResult =(int)ScriptResults.Failure. I find that line breaks the foreach loop even if the Flag FailParentOnFailure is set to False.

I wanted the Failure or Sucess of the Script Task to only control the flow inside the Foreach Loop, not to break it. I am thinking this wrong ?


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>