# I configured the forloop tool correctly in my automation program, but it doesn't work correctly

**URL:** <https://forums.pega.com/t/i-configured-the-forloop-tool-correctly-in-my-automation-program-but-it-doesnt-work-correctly/7777>\
**Category:** General\
**Tags:** other-industry, 19-1, customer-service-developer, robotic-process-automation\
**Created:** [July 12, 2024, 8:00am UTC](https://forums.pega.com/t/i-configured-the-forloop-tool-correctly-in-my-automation-program-but-it-doesnt-work-correctly/7777 "2024-07-12T08:00:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![BAOX17175074](https://avatars.discourse-cdn.com/v4/letter/b/47e85d/32.png) [@BAOX17175074](https://forums.pega.com/u/BAOX17175074)\
**Post date:** [July 12, 2024, 8:00am UTC](https://forums.pega.com/t/i-configured-the-forloop-tool-correctly-in-my-automation-program-but-it-doesnt-work-correctly/7777/1 "2024-07-12T08:00:17Z")

</div>

I put three different URLs in excel in column A, rows 2,3,4 respectively, and I want to read the three URLs in sequence by looping through the forLoop tool to get him to transfer the URLs from the second row onwards each time he adds an extra row. However, the logic I wrote in AUTOMATION should not be a problem, but each time the loop starts it can only read the first URL, what is the situation? Can you tell me about this?

 ![Photographic evidence.png](https://pega1.discourse-cdn.com/pega/original/2X/c/c850e5c01ff613e751a60142c17739f3760b2f5d.png)

---

<div class="post-metadata">

**Author:** ![ThomasSasnett](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/thomassasnett/32/7690_2.png) [@ThomasSasnett](https://forums.pega.com/u/ThomasSasnett)\
**Post date:** [July 12, 2024, 1:44pm UTC](https://forums.pega.com/t/i-configured-the-forloop-tool-correctly-in-my-automation-program-but-it-doesnt-work-correctly/7777/2 "2024-07-12T13:44:11Z")

</div>

@BAOX17175074

You need to delete your “Loopstart” jump label. The loop runs automatically, so when you reach then end of a loop, the next execution will be the “Yielded” execution point.

Incidentally, your automation will probably not work as you intend as shown even after removing the jump label. This is because when you can navigate, it will happen asynchronously. That method will return before you’ve reached the page you are navigating to. I suspect this will almost instantly process all your records and ultimately your browser will be loading whatever your last URL was.

I also notice you are using multiple Excel connectors. The MicrosoftExcelConnector is mainly used when you need to see the Excel document in operation. Use the ExcelConnector for almost all operations as it is more robust and operates much faster.

Below is an example of how I would recreate the functionality you were going for.

 ![Screenshot of automation.png](https://pega1.discourse-cdn.com/pega/original/2X/5/5f2f4277f8baeba015463d7939629a0d8d9ab17c.png)

---

<div class="post-metadata">

**Author:** ![BAOX17175074](https://avatars.discourse-cdn.com/v4/letter/b/47e85d/32.png) [@BAOX17175074](https://forums.pega.com/u/BAOX17175074)\
**Post date:** [July 18, 2024, 8:37am UTC](https://forums.pega.com/t/i-configured-the-forloop-tool-correctly-in-my-automation-program-but-it-doesnt-work-correctly/7777/3 "2024-07-18T08:37:04Z")

</div>

@ThomasSasnett  
I will further try the moves offered from your side，Thanks for your help.
