# Dynamo problem with Element.SetParameterByName

**URL:** <https://forum.dynamobim.com/t/dynamo-problem-with-element-setparameterbyname/88922>\
**Category:** Revit\
**Tags:** dynamo\
**Created:** [April 25, 2023, 1:34pm UTC](https://forum.dynamobim.com/t/dynamo-problem-with-element-setparameterbyname/88922 "2023-04-25T13:34:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![victoriano8924C](https://avatars.discourse-cdn.com/v4/letter/v/bc79bd/32.png) [@victoriano8924C](https://forum.dynamobim.com/u/victoriano8924C)\
**Post date:** [April 25, 2023, 1:34pm UTC](https://forum.dynamobim.com/t/dynamo-problem-with-element-setparameterbyname/88922/1 "2023-04-25T13:34:57Z")

</div>

I get this warning:

Warning: Element.SetParameterByName operation failed.  
The parameter’s storage type is not a string

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/6/96c3cab6eb72f42464e6b097e18401eac4bb8e34.jpeg)

Im new to dynamo and dont know what to do

Im following the tutorial from this youtube page:  
https://www.youtube.com/embed/m2Z8GF3c674?feature=oembed&wmode=opaque&list=PLDVYAfUbTKd4S5wabgVigRzygZkJ7vxbu

---

<div class="post-metadata">

**Author:** ![staylor](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/staylor/32/94307_2.png) [@staylor](https://forum.dynamobim.com/u/staylor)\
**Post date:** [April 25, 2023, 1:55pm UTC](https://forum.dynamobim.com/t/dynamo-problem-with-element-setparameterbyname/88922/2 "2023-04-25T13:55:19Z")

</div>

Welcome @victoriano8924C  
The warning is telling you that the parameter you are trying to write to does not accept string values. It only accepts numerical values. In the video, they are writing to the “Department” parameter which does accept string values.

In your graph, not sure where the String from Object is coming from, but you can write that to the “Name” parameter of each room. Of course that will show up on the plan view.

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

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/5/1579a18a67504ef86ad424be59b97299c8acbf87.png)

---

<div class="post-metadata">

**Author:** ![victoriano8924C](https://avatars.discourse-cdn.com/v4/letter/v/bc79bd/32.png) [@victoriano8924C](https://forum.dynamobim.com/u/victoriano8924C)\
**Post date:** [April 25, 2023, 1:59pm UTC](https://forum.dynamobim.com/t/dynamo-problem-with-element-setparameterbyname/88922/3 "2023-04-25T13:59:28Z")

</div>

Thank you so much! 🙂
