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

SSIS foreach loop iterations

$
0
0

Hi All,

I am new to SSIS and need some assistance. I have a execute SQL task which generates a table with  string as '201701','201702','201703','201704' etc

I am passing these strings to foreach loop container where I am pulling data from Azure DW to SQL Server filtered by these strings. 

On event of error when the Azure data warehouse is not responding foreach loop moves to next value of string and miss current value and try again.

How can we set foreach loop to iterate over same value over and over till it succeed instead of going to next iteration.

For eg - Here the loops fails at value of 201704, currently when it encounters error it goes to next iteration ie 201705, but i want foreach loop to try 201704 until its success.

Iteration ValueCurrent Loop BehaviorDesired Loop Behavior
201701201701201701
201702201702201702
201703201703201703
201704201705201704
201705
201704


201704


201704


201705





Many Thanks

Regards,

Abhishek


Viewing all articles
Browse latest Browse all 24688

Trending Articles



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