# How to avoid duplicate nodes when loading SCS files with loadSubtreeFromScsXmlBuffer?

**URL:** <https://forum.techsoft3d.com/t/how-to-avoid-duplicate-nodes-when-loading-scs-files-with-loadsubtreefromscsxmlbuffer/4554>\
**Category:** HOOPS Visualize Web\
**Tags:** how-to\
**Created:** [April 14, 2025, 8:39am UTC](https://forum.techsoft3d.com/t/how-to-avoid-duplicate-nodes-when-loading-scs-files-with-loadsubtreefromscsxmlbuffer/4554 "2025-04-14T08:39:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![18234083588](https://avatars.discourse-cdn.com/v4/letter/1/f1d935/32.png) [@18234083588](https://forum.techsoft3d.com/u/18234083588)\
**Post date:** [April 14, 2025, 8:39am UTC](https://forum.techsoft3d.com/t/how-to-avoid-duplicate-nodes-when-loading-scs-files-with-loadsubtreefromscsxmlbuffer/4554/1 "2025-04-14T08:39:22Z")

</div>

When I load SCS files using `Model.loadSubtreeFromScsXmlBuffer` , I get duplicate nodes in the tree. How can I fix this?

 ![1744619954724](https://us1.discourse-cdn.com/flex020/uploads/techsoft3d/original/2X/4/422a29d2e8ecf3caddb3f10b52b89ff7e7452587.png)  
Any insights or suggestions would be appreciated!

---

<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:** [April 14, 2025, 7:47pm UTC](https://forum.techsoft3d.com/t/how-to-avoid-duplicate-nodes-when-loading-scs-files-with-loadsubtreefromscsxmlbuffer/4554/2 "2025-04-14T19:47:50Z")

</div>

Hello @18234083588,

It looks like you are following a shattered workflow. In which case, the hierarchy will include separate nodes representing _instances_ (such as `NodeType.PartInstance` and `NodeType.BodyInstance`). This is normal in shattered workflow.

If you want to have a flatter tree hierarchy, a monolithic workflow would probably work better.

Thanks,  
Tino

---

<div class="post-metadata">

**Author:** ![18234083588](https://avatars.discourse-cdn.com/v4/letter/1/f1d935/32.png) [@18234083588](https://forum.techsoft3d.com/u/18234083588)\
**Post date:** [April 17, 2025, 1:48am UTC](https://forum.techsoft3d.com/t/how-to-avoid-duplicate-nodes-when-loading-scs-files-with-loadsubtreefromscsxmlbuffer/4554/3 "2025-04-17T01:48:18Z")

</div>

Thank you for your response!
