# Integer to Number

**URL:** <https://forum.dynamobim.com/t/integer-to-number/75772>\
**Category:** Uncategorized\
**Tags:** revit, excel, dynamo, family\
**Created:** [April 23, 2022, 10:37am UTC](https://forum.dynamobim.com/t/integer-to-number/75772 "2022-04-23T10:37:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Antonio-86](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/antonio-86/32/136472_2.png) [@Antonio-86](https://forum.dynamobim.com/u/Antonio-86)\
**Post date:** [April 23, 2022, 10:37am UTC](https://forum.dynamobim.com/t/integer-to-number/75772/1 "2022-04-23T10:37:37Z")

</div>

Hi guys  
I’m trying to automatically write many different parameter values from an excel list in the family types.

The problem is that the parameter unit is Number and in Dynamo is Integer, anyone of you has faced this issue in the past and may help me in finding the solution?

This is the error:

Warnung:Elements.SetParameterByNameTypeOrInstance fehlgeschlagen.  
unitType is an invalid unit type. See UnitUtils.IsValidUnitType() and UnitUtils.GetValidUnitTypes().  
Parameter name: unitType

Thank you very much for your help.

 ![Immagine 2022-04-23 121658](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/c/ecad175a4668a4cb927b6ca2ed0388de1c567f6a.jpeg)

---

<div class="post-metadata">

**Author:** ![Draxl\_Andreas](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/draxl_andreas/32/145744_2.png) [@Draxl\_Andreas](https://forum.dynamobim.com/u/Draxl_Andreas)\
**Post date:** [April 23, 2022, 5:29pm UTC](https://forum.dynamobim.com/t/integer-to-number/75772/2 "2022-04-23T17:29:54Z")

</div>

Hello,

you can trick with designscript 🙂

 ![2022-04-23_19h39_05](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/c/6cc8336493ae34ed80000a92daf18cf66096914f.png)

KR

Andreas

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [April 24, 2022, 5:33am UTC](https://forum.dynamobim.com/t/integer-to-number/75772/3 "2022-04-24T05:33:23Z")

</div>

a way with ootb…

 ![Screenshot 2022-04-24 073237](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/d/fd71a82aa4cbce8a1f1cd31978785395965387e2.jpeg)
