# Excel to Revit | Element.SetParameterByName Warning

**URL:** <https://forum.dynamobim.com/t/excel-to-revit-element-setparameterbyname-warning/25909>\
**Category:** Revit\
**Created:** [September 14, 2018, 1:52pm UTC](https://forum.dynamobim.com/t/excel-to-revit-element-setparameterbyname-warning/25909 "2018-09-14T13:52:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Connor](https://avatars.discourse-cdn.com/v4/letter/c/e99b99/32.png) [@Connor](https://forum.dynamobim.com/u/Connor)\
**Post date:** [September 14, 2018, 1:52pm UTC](https://forum.dynamobim.com/t/excel-to-revit-element-setparameterbyname-warning/25909/1 "2018-09-14T13:52:36Z")

</div>

Good day,

Please assist. I’ve been struggling with this Dynamo project for a while, but this warning I can’t seem to bust:  
“Warning: Element.SetParameterByName operation failed. The parameter’s storage type is not a string.”

I changed the Excel spreadsheet to Text in an attempt to fix, but to no avail. When trying to GetItemAtIndex 0, its producing null results in my SetParameterByName node?

Please refer to image attached and advise me on how to solve.

Kind regards,  
Connor

 ![Capture](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/1/611ac046e1b6645aca117b51758a8aa91a9c17f5.png)

---

<div class="post-metadata">

**Author:** ![m.rijsmus](https://avatars.discourse-cdn.com/v4/letter/m/6f9a4e/32.png) [@m.rijsmus](https://forum.dynamobim.com/u/m.rijsmus)\
**Post date:** [September 14, 2018, 2:00pm UTC](https://forum.dynamobim.com/t/excel-to-revit-element-setparameterbyname-warning/25909/2 "2018-09-14T14:00:17Z")

</div>

You can convert string to number, and number to string according to what your parameter wants.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/1/61e14eb8bd97fd8420a82dfc1560573e16a67dc4.png)

---

<div class="post-metadata">

**Author:** ![Alban\_de\_Chasteigner](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alban_de_chasteigner/32/39650_2.png) [@Alban\_de\_Chasteigner](https://forum.dynamobim.com/u/Alban_de_Chasteigner)\
**Post date:** [September 14, 2018, 2:16pm UTC](https://forum.dynamobim.com/t/excel-to-revit-element-setparameterbyname-warning/25909/3 "2018-09-14T14:16:19Z")

</div>

Use Parameter.StorageType node to know what is the storage type of your parameter (string, integer, double…)

 ![StorageType](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/2/620a0b30143df43ef04adffef58115928b9dca4f.png)
