# Reimporting a static mesh (FBX) which has "SOCKET\_"s causes duplicate sockets of the same name to appear

**URL:** <https://forums.unrealengine.com/t/reimporting-a-static-mesh-fbx-which-has-socket-s-causes-duplicate-sockets-of-the-same-name-to-appear/393328>\
**Category:** Asset Creation\
**Tags:** fbx-import, static-mesh-editor, unreal-engine, bug-report, question\
**Created:** [May 11, 2017, 12:26pm UTC](https://forums.unrealengine.com/t/reimporting-a-static-mesh-fbx-which-has-socket-s-causes-duplicate-sockets-of-the-same-name-to-appear/393328 "2017-05-11T12:26:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![theslickmeister](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@theslickmeister](https://forums.unrealengine.com/u/theslickmeister)\
**Post date:** [May 11, 2017, 12:26pm UTC](https://forums.unrealengine.com/t/reimporting-a-static-mesh-fbx-which-has-socket-s-causes-duplicate-sockets-of-the-same-name-to-appear/393328/1 "2017-05-11T12:26:33Z")

</div>

Repro

1. In Max/Maya create a static mesh  
with a dummy socket  
[FBX Static Mesh Pipeline | Unreal Engine Documentation](https://docs.unrealengine.com/latest/INT/Engine/Content/FBX/StaticMeshes/#sockets)
2. Open Unreal Editor and Import your FBX  
(drag drop into content browser)
3. Open the Static Mesh Observe it has  
a socket
4. From the Static Mesh menubar select  
Mesh-\>Reimport
5. Observe it has multiple sockets of  
the same name
6. Additional note: if you try to manually create a socket with the same name it’s not permitted, so this could have further knock on effects.

Our workaround is a little complicated than most as we have custom socket classes to contend with, so we have to ensure a new socket gets created of the correct type (incase the old one is outdated).

In StaticMeshEdit’s RestoreExistingMeshData before calling NewMesh-\>Sockets.Add(…)  
Loop through all the NewMesh sockets’ for a match, if found: CopyPropertiesForUnrelatedObjects from existing to new (but preserve new’s transformation information) and then skip the Add call.

Andrew

---

<div class="post-metadata">

**Author:** ![SkyeEden](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/skyeeden/32/1116094_2.png) [@SkyeEden](https://forums.unrealengine.com/u/SkyeEden)\
**Post date:** [March 15, 2022, 6:24pm UTC](https://forums.unrealengine.com/t/reimporting-a-static-mesh-fbx-which-has-socket-s-causes-duplicate-sockets-of-the-same-name-to-appear/393328/2 "2022-03-15T18:24:01Z")

</div>


