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

SSIS Foreach Loop ignore errors

$
0
0

Afternoon,

I have a foreach loop container that calls a number of execute package tasks to rebuild a data warehouse. The container has a list of database names and within the container these are mapped to a parameter this then gets passed to the execute package task that performs an ETL on a certain table, it then goes to the next table etc. When all tables are complete the loop selects the next database.

The issue I have is if one of the packages fails the task stops. I have since changed MaximumErrorCount to 0 this executes the rest of tables per database even if a table has failed. What I would like to achieve is just to end the foreach loop for the current database, flag an error and go onto the next database in the list if any package fails.


Viewing all articles
Browse latest Browse all 24688

Trending Articles



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