# Skip iterations in collection run, when error is encountered

**URL:** <https://community.postman.com/t/skip-iterations-in-collection-run-when-error-is-encountered/56642>\
**Category:** Help Hub\
**Tags:** tests, variables, collections, json, api\
**Created:** [January 16, 2024, 8:30pm UTC](https://community.postman.com/t/skip-iterations-in-collection-run-when-error-is-encountered/56642 "2024-01-16T20:30:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rajasharma49](https://avatars.discourse-cdn.com/v4/letter/r/8dc957/32.png) [@rajasharma49](https://community.postman.com/u/rajasharma49)\
**Post date:** [January 16, 2024, 8:30pm UTC](https://community.postman.com/t/skip-iterations-in-collection-run-when-error-is-encountered/56642/1 "2024-01-16T20:30:49Z")

</div>

I am using a CSV file to run a collection of API’s. When I run the collection, I want to be able to skip to the next iteration, AS soon as one test fails during the run.

I have checked the CheckBox that says “Stop Run if an Error Occurs”. But this is not working. If during any of the iterations, a 400 occurs or a testcase fails, the Run continues with the current iteration.

How can I have it stop, and move to the next iteration.

Thank You.

---

<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:** [February 15, 2024, 8:30pm UTC](https://community.postman.com/t/skip-iterations-in-collection-run-when-error-is-encountered/56642/2 "2024-02-15T20:30:55Z")

</div>

Closed on February 15, 2024, 8:30pm UTC

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