For each loop not exiting from loop

  • Hi,

    I have one for each loop task and inside that one sequence containor is there which is doing some task and moving files from one folder to other.

    Within For each loop one script task is placed to check the files in folder and if files are not there the script task ends the sequence containor which indirectly stops the for loop.

    My issues is : This scenario is working for 400 to 800 files in that folder but the loop does not exit when there are more than 1000 files in forlder, the loop continues even if the folder doesnt have that file.

    Please help!!!!

  • Kool123 (4/26/2012)


    Hi,

    I have one for each loop task and inside that one sequence containor is there which is doing some task and moving files from one folder to other.

    Within For each loop one script task is placed to check the files in folder and if files are not there the script task ends the sequence containor which indirectly stops the for loop.

    My issues is : This scenario is working for 400 to 800 files in that folder but the loop does not exit when there are more than 1000 files in forlder, the loop continues even if the folder doesnt have that file.

    Please help!!!!

    Its difficult to find out what issue you are facing with the details you have given. Is it possible to list in detail all the tasks the sequence container has, because you have mentioned it is doing "some task" and moving files... also it would be good to know what exactly the script task does. Its not very clear when you say it indirectly stops the for loop. Thanks 🙂

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply