FOR LOOP CONTAINER

Hello,  I have a nnnnn.cvs  that can be completed with 1 or 2 rows depending on a previous process .  

I need to do a for loop container evaluating : 

If i have 1 row i have to repeat the previous process and if i have 2 rows continuo with the next process.

Can anyone help me ?

Thanks in advance !!! 

August 21st, 2015 5:20pm

Do you want to count the number of rows in a text file?

Perhaps with a little C# in a Script Task:

Dts.Variables["User::myIntVariable"].Value = File.ReadLines(Dts.Connections["myCsvFile"].ConnectionString;).Count();
Free Windows Admin Tool Kit Click here and download it now
August 23rd, 2015 6:02am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics