Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Foreach Loop Error Handling

$
0
0

Hi All,

In VS 2005 I am using a series of each loops to load different .csv files and then move them a archive folder, this works fine. But now I am trying to get the loops to send an email when the file doesn't exist. But the loop is not failing and is staying green even when the file isn't in the folder location and the moves on to the next loop. I have tried setting FailPackageOnFailure to True but stays green.

I have setup a string variable @SATSYDPROD in the variable mappings in each loop, then use this as the connection string for the flat file.

After the Data Flow task I have tried using a precedence; eval:constraint value:failure to pass the data to the mail task. The event handlers for loop and data flow task have been enabled for the event 'on error'(with no objects). I found the information on setting the system variable propagte to False so the other loops can still run. But as I said the loop isn't failing so it isn't getting to that event.

Can anyone assist?


Viewing all articles
Browse latest Browse all 24688

Trending Articles



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