Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Continue the for each loop when there is a failure in a task in loop

Status
Not open for further replies.

naveentrajan

Programmer
Dec 24, 2008
2
US
Hi,
I have a for each loop which processes multiple files. If there is a failure in one of the tasks when processing one of the files, the package fails. Is there a way i can skip the processing of a file when it fails and continue the for each loop for the next file.
Thanks & Regards
Naveen
 
Try setting the failure property of the package. you may also want to ry defining an error flow. When I have to process multiple somethings in a loop I always have the loop call a child package ad pass the variables in to the child.
 
Hi MDXUser,
If i set the maximum error on which the package fails, then lets say the first file has an error then it start processing the second file but when it reaches the step where the first file has failed it again goes to the on failure branch instead of going to the next step.

If i run for the second file alone it is processing the file properly.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top