# FamilyType.Duplicate creates family type in wrong family

**URL:** <https://forum.dynamobim.com/t/familytype-duplicate-creates-family-type-in-wrong-family/51194>\
**Category:** Revit\
**Tags:** clockwork, dynamo\
**Created:** [May 29, 2020, 11:07am UTC](https://forum.dynamobim.com/t/familytype-duplicate-creates-family-type-in-wrong-family/51194 "2020-05-29T11:07:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/daan/32/82246_2.png) [@Daan](https://forum.dynamobim.com/u/Daan)\
**Post date:** [May 29, 2020, 11:07am UTC](https://forum.dynamobim.com/t/familytype-duplicate-creates-family-type-in-wrong-family/51194/1 "2020-05-29T11:07:22Z")

</div>

Hello everyone,

I tried to automattically create new family types from an Excel spreadsheet with has a lot of duplicate family types on there.  
But when i tried using the familytype.duplicate node it duplicated the family type into the wrong family, even though my list levels/ lacing are setup correct (i think). See my screenshot below:

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/7/076d81cd2fc7cec0d630ddd86acf1d4d67779390.png) ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/8/e8365f364bf50f98912e21a1edf70c16200b6830.png)

On the first screenshot i even made sure the list all were the same, but the output was still wrong.

PS: This node is from the Clockwork package (2.x)

Thanks in advance.  
Daan

After some more trial and error i thought about splitting it completely, but no i have absolutely no clue what is happening here:

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/c/0c1f6e071e5a6ab26a73a6a2a47aef742852097d.png)

---

<div class="post-metadata">

**Author:** ![Garbage\_Collector](https://avatars.discourse-cdn.com/v4/letter/g/da6949/32.png) [@Garbage\_Collector](https://forum.dynamobim.com/u/Garbage_Collector)\
**Post date:** [June 10, 2021, 11:01am UTC](https://forum.dynamobim.com/t/familytype-duplicate-creates-family-type-in-wrong-family/51194/2 "2021-06-10T11:01:35Z")

</div>

> **EDIT:**  
> I spoke too soon. I believe this issue is caused by rerunning the script a couple of times. I did press undo in Revit but Dynamo will still see the families that were created in the run before that.  
> When i remove the duplicated families and restart Dynamo, the families are placed in the correct type.(when i run it again the families get placed in the wrong type because the name allready exist.) Will leave my post up for anyone else encountering this… 🙂

I am having the exact same problem so i am bumping this thread.

censored company name abreviation in below screenshot but the problem is still clear.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/7/e7b5b9daa990cb1349e8decc1d706728b43556ef.png)  
I am feeding the desired family type (cycled) and feeding a list of 8 names.  
Unfortunately the duplicate node does not place the family in the correct type…

Is there any solution to this issue?  
(also clockwork 2.x )
