# pm.execution.setNextRequest('ID') causing collection to end rather than route to ID'd request in manual collection runner

**URL:** <https://community.postman.com/t/pm-execution-setnextrequest-id-causing-collection-to-end-rather-than-route-to-idd-request-in-manual-collection-runner/87766>\
**Category:** Help Hub\
**Tags:** collection-runner\
**Created:** [January 4, 2026, 8:41pm UTC](https://community.postman.com/t/pm-execution-setnextrequest-id-causing-collection-to-end-rather-than-route-to-idd-request-in-manual-collection-runner/87766 "2026-01-04T20:41:34Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [January 4, 2026, 10:04pm UTC](https://community.postman.com/t/pm-execution-setnextrequest-id-causing-collection-to-end-rather-than-route-to-idd-request-in-manual-collection-runner/87766/2 "2026-01-04T22:04:14Z")

</div>

Hey @romeatcareqb 👋🏼

What is the response body of the first request?

Are you sure that the condition is met as expected, are you able to log that out to the console?

Are you using the request name of the id of the request, inside the setNextRequest() method?

What do you mean by _manual collection runner_, are you just referring to running the Collection using the runner or manually hitting send on the requests?

Is this the same question as you raise here?

> [@Issues with pm.execution.setNextRequest() inside the manual collection runner](https://community.postman.com/t/issues-with-pm-execution-setnextrequest-inside-the-manual-collection-runner/87668):
>
> I am trying to use some conditional routing to skip a request in a collection based on whether certain variables are present earlier in the sequence. In the post-request script, we check for the presence of the variable, and then very simply either route to the next request in the sequence or the n+1 request. For some reason, when I run this in the manual collection runner, the runner just stops after the request containing the conditional routing, and I can’t figure out why. If I comment out t…

---

_[View the full topic](https://community.postman.com/t/pm-execution-setnextrequest-id-causing-collection-to-end-rather-than-route-to-idd-request-in-manual-collection-runner/87766)._
