# Error: runtime~extractRunnableItems: Unable to find a folder

**URL:** <https://community.postman.com/t/error-runtime-extractrunnableitems-unable-to-find-a-folder/58496>\
**Category:** Help Hub\
**Tags:** newman-project, tests, collections, request, cli\
**Created:** [March 5, 2024, 7:30pm UTC](https://community.postman.com/t/error-runtime-extractrunnableitems-unable-to-find-a-folder/58496 "2024-03-05T19:30:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![luisbriceno](https://avatars.discourse-cdn.com/v4/letter/l/b9e5f3/32.png) [@luisbriceno](https://community.postman.com/u/luisbriceno)\
**Post date:** [March 5, 2024, 7:30pm UTC](https://community.postman.com/t/error-runtime-extractrunnableitems-unable-to-find-a-folder/58496/1 "2024-03-05T19:30:23Z")

</div>

> **Archived topic — this may be out of date.**  
> Newman has been replaced by the **[Postman CLI](https://learning.postman.com/docs/postman-cli/postman-cli-overview/)**, Postman’s official, signed command-line tool. It runs collections as Newman did, and also lints API specs, runs mocks and monitors, and syncs local files with Postman from your terminal, CI/CD pipeline or coding agent.  
> Working with an AI coding agent? The [Postman plugin](https://github.com/postmanlabs/postman-plugin) lets agents in Claude Code, Cursor, Codex and others design, mock, test and ship APIs with Postman.  
> For current help, see the [Postman docs](https://learning.postman.com/docs/), try the free [Postman tools](https://www.postman.com/tools) (no account needed), or join us on [Discord](https://discord.gg/58aNNsRBGR).

> Question regarding **Newman CLI 6.1.1** , and the **–folder [name]** feature.  
> My goal is to call the specific request within a collection.

Based on the following command:

```auto
newman run "collection_file.json" -e "environment_file.json" --folder [name] -r cli,junit --reporter-junit-export

```

Workspace structure:

```auto
Collection/
├── My-Folder/
│ └── request-inside-folder
└── request-outside-folder

```

When running the command, I encounter the following error:

```auto
(node:71992) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
error: runtime~extractRunnableItems: Unable to find a folder or request: "[name]"

```

**Error Note** : I’ve replaced **“[name]”** with both the folder/request names (ex. “My-Folder”, “request-inside-folder”, and “request-outside-folder”) and their respective id’s (ex. 230…-…-…-…-…-…3d3) and all yield the same error.

Any ideas?

---

<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:** [March 6, 2024, 4:27pm UTC](https://community.postman.com/t/error-runtime-extractrunnableitems-unable-to-find-a-folder/58496/2 "2024-03-06T16:27:00Z")

</div>

Hey @luisbriceno 👋

Welcome to the Postman Community! :postman:

You would just need to use the request name with the `--folder` flag, there’s no need to include the path (e.g `request-inside-folder`).

This should be fine:

```auto
newman run "collection_file.json" -e "environment_file.json" --folder "request-inside-folder" -r cli,junit --reporter-junit-export

```

 ![Screenshot 2024-03-06 at 16.24.31](https://us1.discourse-cdn.com/getpostman/original/3X/2/f/2ffea1d37c4e991e2fecdcdeecea0b0a5be05503.png)

The `folder` flag looks at the Collection and does a string based match against the folders or requests. There’s some quirkiness to it like it wouldn’t be able to pick between duplicate folder or request names and would just run the first one it finds.

---

<div class="post-metadata">

**Author:** ![luisbriceno](https://avatars.discourse-cdn.com/v4/letter/l/b9e5f3/32.png) [@luisbriceno](https://community.postman.com/u/luisbriceno)\
**Post date:** [March 6, 2024, 5:30pm UTC](https://community.postman.com/t/error-runtime-extractrunnableitems-unable-to-find-a-folder/58496/3 "2024-03-06T17:30:39Z")

</div>

Hi @danny-dainton,

Thanks for the welcome!

I reviewed the collection\_file.json file and extracted the **“name”** from the request I aimed to trigger, and that worked! However to be more specific, my real goal is to trigger the request using the **Request Id** instead of the name, as you pointed out, to avoid potential issues.

After looking at the collection\_file.json, I saw several fields containing id attributes and saw something interesting. Within the request details, there are both **“id”** and **“uid”** fields.

- collection.item.event.script.id – **did not work**
- collection.item.id – **did work** , but it’s a shorter version of the collection.item.uid
- collection.item.uid – **did not work** , but is the same id that appears in Postman

The “uid” is mentioned in the Request Details in the Postman application as ID, this id does not work. Whereas, the id (which appears to be a shorter version of uid) does work, as show in the command screenshot below.

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/5/e/5e755be818bf6c789db840fe612d75eaf9a4943e.png)

“uid” is being mentioned in Postman application\*

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/2/0/205b4c07df9d99fc1cbe800ca8281db634d6f27c.png)

I guess with this, are users expected to know that they’ll need to use the shorter version of the “uid” or would programmers be expected to grab the “collection.item.id” instead of the “collection.item.uid”? Or would this be considered a bug?

---

<div class="post-metadata">

**Author:** ![luisbriceno](https://avatars.discourse-cdn.com/v4/letter/l/b9e5f3/32.png) [@luisbriceno](https://community.postman.com/u/luisbriceno)\
**Post date:** [March 12, 2024, 4:14pm UTC](https://community.postman.com/t/error-runtime-extractrunnableitems-unable-to-find-a-folder/58496/4 "2024-03-12T16:14:15Z")

</div>

Hi @danny-dainton,

I heard back from the Postman team regarding the inconsistency I mentioned previously, and here’s what they had to say:

> [@Postman Team](#):
>
> Our internal team have reviewed this and have confirmed that the error is expected when running local collections via Newman. This is due to when the collection is exported via v2 and v2.1, we don’t export the IDs (UID and ID) as part of the collection and v1 has been deprecated.
> 
> In this scenario, only the folder name will yield a successful result.
> 
> However, if you are fetching it from postman while running, The ID would work as a replacement. You can get the ID by removing the first part (userID) of the folder UID.  
> I hope this helps to clarify the error. If there’s anything else, please let us know.

It appears that this is a known issue, but it may not be on their roadmap for resolution. So, I’ll need to parse out the “first part (userID)” of the UID for my scenario.

Thank you for everyone’s assistance, really appreciate it!

---

<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 15, 2024, 4:14pm UTC](https://community.postman.com/t/error-runtime-extractrunnableitems-unable-to-find-a-folder/58496/5 "2024-03-15T16:14:46Z")

</div>

Closed on March 15, 2024, 4:14pm UTC

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