# For loop missing first entry in List

**URL:** <https://community.postman.com/t/for-loop-missing-first-entry-in-list/58357>\
**Category:** Help Hub\
**Tags:** postman-flows\
**Created:** [March 1, 2024, 11:09pm UTC](https://community.postman.com/t/for-loop-missing-first-entry-in-list/58357 "2024-03-01T23:09:29Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![grendal2023](https://avatars.discourse-cdn.com/v4/letter/g/4bbf92/32.png) [@grendal2023](https://community.postman.com/u/grendal2023)\
**Post date:** [March 1, 2024, 11:09pm UTC](https://community.postman.com/t/for-loop-missing-first-entry-in-list/58357/1 "2024-03-01T23:09:30Z")

</div>

Hi all,

Loving Postman Flows but have found a weird issue that I hope is just me and not something far more fundamental.

I’m making a webservice call which is returning a JSON payload inside which is an array. This maps to a List in a For loop.

I like to see what’s going on so I have Output elements everywhere followed by a Delay element. I find this really useful.

What I’m noticing is that the first entry in the list is always skipped. It always jumps to the second entry.

I tried creating a List manually and pushing that into a For loop and the same thing occurs.

Has anyone else experienced this?

Many thanks

Mark

---

<div class="post-metadata">

**Author:** ![grendal2023](https://avatars.discourse-cdn.com/v4/letter/g/4bbf92/32.png) [@grendal2023](https://community.postman.com/u/grendal2023)\
**Post date:** [March 1, 2024, 11:18pm UTC](https://community.postman.com/t/for-loop-missing-first-entry-in-list/58357/2 "2024-03-01T23:18:10Z")

</div>

So I had a thought to Log it out to the console too.

Interestingly, the Log shows each entry, but the Output always starts with the second entry

---

<div class="post-metadata">

**Author:** ![grendal2023](https://avatars.discourse-cdn.com/v4/letter/g/4bbf92/32.png) [@grendal2023](https://community.postman.com/u/grendal2023)\
**Post date:** [March 1, 2024, 11:21pm UTC](https://community.postman.com/t/for-loop-missing-first-entry-in-list/58357/3 "2024-03-01T23:21:45Z")

</div>

So this issue, if there is one, appears to be with the Output. It always seems to be one further along. I put a Log after the Output and that displayed to the console a different value to the Output. Really strange behaviour … be interested to know if anyone else is experiencing this

---

<div class="post-metadata">

**Author:** ![flows-daniel](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/flows-daniel/32/25516_2.png) [@flows-daniel](https://community.postman.com/u/flows-daniel)\
**Post date:** [March 1, 2024, 11:23pm UTC](https://community.postman.com/t/for-loop-missing-first-entry-in-list/58357/4 "2024-03-01T23:23:34Z")

</div>

Hi @grendal2023

Welcome to the forums!

Do you have a screenshot of what you’re trying? I want to make sure I understand the problem completely.

---

<div class="post-metadata">

**Author:** ![grendal2023](https://avatars.discourse-cdn.com/v4/letter/g/4bbf92/32.png) [@grendal2023](https://community.postman.com/u/grendal2023)\
**Post date:** [March 1, 2024, 11:44pm UTC](https://community.postman.com/t/for-loop-missing-first-entry-in-list/58357/5 "2024-03-01T23:44:08Z")

</div>

Hi @flows-daniel ,

Thanks for responding.

Here is a screenshot of a noddy test. In it you will see that I’m making a call to [postcodes.io](http://postcodes.io) webservice to get the nearest postcodes to a given postcode. This returns a list (body.result).

I’ve output the entire payload so I can see each entry.  
I then push this through a For and output the entry. I also push that entry to the Log.  
I added a delay so I could stop it immediately after the first item was displayed.

As you can hopefully see, the Log has shown two entries ([0] and [1]) whereas the Output is only showing [1] (or has shown both, the speed meaning it has now moved to [1].

My expectation would be that the first entry would be seen

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/f/b/fbe1c47b8549bb120b228bc5d9467f1f63c89b4f.png)

Hope this helps

Mark

---

<div class="post-metadata">

**Author:** ![flows-daniel](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/flows-daniel/32/25516_2.png) [@flows-daniel](https://community.postman.com/u/flows-daniel)\
**Post date:** [March 1, 2024, 11:52pm UTC](https://community.postman.com/t/for-loop-missing-first-entry-in-list/58357/6 "2024-03-01T23:52:17Z")

</div>

Hi @grendal2023

That’s very helpful thank you. If you want to view the results one at a time you can put the delay block between the for loop and the output block.

What’s happening is the first result hits the output block (instantaneously) and then is sent to the delay block. The next item in the list then hits the output block (which is what you see) and _waits_ until the delay finishes with the first element to be able to continue.

---

<div class="post-metadata">

**Author:** ![grendal2023](https://avatars.discourse-cdn.com/v4/letter/g/4bbf92/32.png) [@grendal2023](https://community.postman.com/u/grendal2023)\
**Post date:** [March 1, 2024, 11:56pm UTC](https://community.postman.com/t/for-loop-missing-first-entry-in-list/58357/7 "2024-03-01T23:56:50Z")

</div>

Many thanks for the clarification on that. I thought the For loop wouldn’t iterate until the delay had finished.

Again, many thanks for the swift response

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [March 13, 2024, 4:08pm UTC](https://community.postman.com/t/for-loop-missing-first-entry-in-list/58357/8 "2024-03-13T16:08:56Z")

</div>

Closed on March 13, 2024, 4:08pm UTC

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
