# YES/NO parameter - The parameter's storage type is not a string

**URL:** https://forum.dynamobim.com/t/yes-no-parameter-the-parameters-storage-type-is-not-a-string/27999
**Category:** Revit
**Created:** [November 2, 2018, 11:58pm UTC](https://forum.dynamobim.com/t/yes-no-parameter-the-parameters-storage-type-is-not-a-string/27999 "2018-11-02T23:58:54Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![David.Concept](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/david.concept/32/89344_2.png) [@David.Concept](https://forum.dynamobim.com/u/David.Concept)
#### Post date: [November 2, 2018, 11:58pm UTC](https://forum.dynamobim.com/t/yes-no-parameter-the-parameters-storage-type-is-not-a-string/27999/1 "2018-11-02T23:58:54Z")

</div>

Hi,

I’ve created some shared YES/NO parameters for a Door schedule. Next, I’m trying to create a routine where I swap the Yes/No when I add schedule into a sheet.

For example, for the parameter VP - Vision panel I want for “YES” equal to VP and “NO” equal to empty.

The routine works until “Element.SetParameterByName” as you can see on the image. the warining is “Warning: Element.SetParameterByName operation failed. The parameter’s storage type is not a string.”

Obliviously I’m doing something wrong. Any solutions please?

 ![Capture](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/4/7496b433a7326caabf96b7daae1827063eed7f12.png)

---

<div class="post-metadata">

### Author: ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)
#### Post date: [November 3, 2018, 12:19am UTC](https://forum.dynamobim.com/t/yes-no-parameter-the-parameters-storage-type-is-not-a-string/27999/2 "2018-11-03T00:19:21Z")

</div>

Yes no parameters in Revit are true/false values and are stored as 1/0.

---

<div class="post-metadata">

### Author: ![David.Concept](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/david.concept/32/89344_2.png) [@David.Concept](https://forum.dynamobim.com/u/David.Concept)
#### Post date: [November 3, 2018, 12:38am UTC](https://forum.dynamobim.com/t/yes-no-parameter-the-parameters-storage-type-is-not-a-string/27999/3 "2018-11-03T00:38:54Z")

</div>

Hi, thanks for the reply. If you check the “watch node” after the “if” it works. 0= " ", 1= VP and 2= " ". the problem is when I’m trying to send the data back to revit.

---

<div class="post-metadata">

### Author: ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)
#### Post date: [November 3, 2018, 12:48am UTC](https://forum.dynamobim.com/t/yes-no-parameter-the-parameters-storage-type-is-not-a-string/27999/4 "2018-11-03T00:48:50Z")

</div>

How would you do this in Revit?

Start a new schedule with just the Mark and the “VP - Vision Panel” parameters. Note that the “VP - Vision Panel” parameter is a true/false parameter, so in Revit you can only mark the parameter as a checkbox or not. Yet you’re now asking it to store a value of “VP” which is neither checked nor unchecked. Revit can’t do it so you’re getting the message ‘the storage type is not a string” in response to doing so.

To solve this, you need to store the data in a parameter - perhaps the comments field or a new parameter entirely.

---

<div class="post-metadata">

### Author: ![David.Concept](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/david.concept/32/89344_2.png) [@David.Concept](https://forum.dynamobim.com/u/David.Concept)
#### Post date: [November 3, 2018, 1:01am UTC](https://forum.dynamobim.com/t/yes-no-parameter-the-parameters-storage-type-is-not-a-string/27999/5 "2018-11-03T01:01:44Z")

</div>

Please see image below.

Basically I create a new schedule and then some parameters. All the ones in vertical are YES/NO parameters. What I’m trying to do is convert those “yes/no” for “VP” for yes and “empty” for no.

I did it already simply creating a new conditional paramater for each one and then hided them. All of this without dynamo. I’m sure there is a way to do it in dynamo

 ![capture1](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/0/30969d16e20299f282827c95d6656adfaf57e329.png)

---

<div class="post-metadata">

### Author: ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)
#### Post date: [November 3, 2018, 4:14am UTC](https://forum.dynamobim.com/t/yes-no-parameter-the-parameters-storage-type-is-not-a-string/27999/6 "2018-11-03T04:14:47Z")

</div>

Yes there is. Make a new parameter, then set the value. Reusing the same parameter will not be an option.

---

<div class="post-metadata">

### Author: ![David.Concept](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/david.concept/32/89344_2.png) [@David.Concept](https://forum.dynamobim.com/u/David.Concept)
#### Post date: [November 3, 2018, 10:46pm UTC](https://forum.dynamobim.com/t/yes-no-parameter-the-parameters-storage-type-is-not-a-string/27999/7 "2018-11-03T22:46:10Z")

</div>

Hi Jacob,

I made the new parameter as you said and it works.The only things is I could achieve this exactly the same without Dynamo, simply creating a conditional formatting parameter in schedule for that parameter. That’s why I though I could achieve this in Dynamos without creating a new parameter.

---

<div class="post-metadata">

### Author: ![SeanP](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/seanp/32/42560_2.png) [@SeanP](https://forum.dynamobim.com/u/SeanP)
#### Post date: [November 3, 2018, 10:49pm UTC](https://forum.dynamobim.com/t/yes-no-parameter-the-parameters-storage-type-is-not-a-string/27999/8 "2018-11-03T22:49:40Z")

</div>

A conditional IF statement on a second parameter is how I have always done this since I hate the default “Yes” and “No” in Revit.

---

<div class="post-metadata">

### Author: ![David.Concept](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/david.concept/32/89344_2.png) [@David.Concept](https://forum.dynamobim.com/u/David.Concept)
#### Post date: [November 3, 2018, 10:54pm UTC](https://forum.dynamobim.com/t/yes-no-parameter-the-parameters-storage-type-is-not-a-string/27999/9 "2018-11-03T22:54:06Z")

</div>

Hi Sean,

How do you apply a IF statement to the second parameter in Dynamo? thanks

---

<div class="post-metadata">

### Author: ![SeanP](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/seanp/32/42560_2.png) [@SeanP](https://forum.dynamobim.com/u/SeanP)
#### Post date: [November 3, 2018, 11:39pm UTC](https://forum.dynamobim.com/t/yes-no-parameter-the-parameters-storage-type-is-not-a-string/27999/10 "2018-11-03T23:39:30Z")

</div>

Sorry, I didn’t mean in Dynamo, just in the schedule inside Revit. I used the Yes/No parameter to drive the value of a Text parameter.

---

<div class="post-metadata">

### Author: ![David.Concept](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/david.concept/32/89344_2.png) [@David.Concept](https://forum.dynamobim.com/u/David.Concept)
#### Post date: [November 3, 2018, 11:50pm UTC](https://forum.dynamobim.com/t/yes-no-parameter-the-parameters-storage-type-is-not-a-string/27999/11 "2018-11-03T23:50:17Z")

</div>

Yes, that’s exactly what I did replacing for example for Vision Panel: Yes=VP and No=“Empty”. I just though there was a way to do this in Dynamo without creating this new parameter. thanks
