# Error Encountered While Loading Multiple Models with Hoops 2024.5 Version

**URL:** <https://forum.techsoft3d.com/t/error-encountered-while-loading-multiple-models-with-hoops-2024-5-version/3936>\
**Category:** HOOPS Visualize Web\
**Tags:** webviewer\
**Created:** [August 5, 2024, 9:22am UTC](https://forum.techsoft3d.com/t/error-encountered-while-loading-multiple-models-with-hoops-2024-5-version/3936 "2024-08-05T09:22:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![junu](https://avatars.discourse-cdn.com/v4/letter/j/b2d939/32.png) [@junu](https://forum.techsoft3d.com/u/junu)\
**Post date:** [August 5, 2024, 9:22am UTC](https://forum.techsoft3d.com/t/error-encountered-while-loading-multiple-models-with-hoops-2024-5-version/3936/1 "2024-08-05T09:22:36Z")

</div>

Hello,

I am encountering an error while trying to load multiple models (more than 20) asynchronously using Hoops version 2024.5. The source code is as follows:

```auto
const rootId = hwv.model.getAbsoluteRootNode();
for (const model of list) {
	hwv.model.loadSubtreeFromModel(rootId, model);
}

```

The error message is as follows:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/techsoft3d/original/2X/b/bd327ef729ffafe62c09b84984c7a194d59a7970.png)

When I call the loadSubtreeFromModel() function with ‘await’ for synchronous execution, there is no error. However, when I remove ‘await’ for asynchronous loading, an error occurs.

Additionally, when I tested using version 2024.03, it worked correctly.

Could you please advise on how to load the models correctly without encountering this error?

Thank you.

---

<div class="post-metadata">

**Author:** ![tino](https://avatars.discourse-cdn.com/v4/letter/t/9dc877/32.png) [@tino](https://forum.techsoft3d.com/u/tino)\
**Post date:** [August 5, 2024, 10:54pm UTC](https://forum.techsoft3d.com/t/error-encountered-while-loading-multiple-models-with-hoops-2024-5-version/3936/2 "2024-08-05T22:54:18Z")

</div>

Hello @junu,

We can reproduce the behavior in our tests. As such, we will create a support ticket.

Thanks,  
Tino
