# ParameterFilterElement.ByRules fails in 1.3.3

**URL:** <https://forum.dynamobim.com/t/parameterfilterelement-byrules-fails-in-1-3-3/29919>\
**Category:** Revit\
**Created:** [December 19, 2018, 5:24pm UTC](https://forum.dynamobim.com/t/parameterfilterelement-byrules-fails-in-1-3-3/29919 "2018-12-19T17:24:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![DaveP](https://avatars.discourse-cdn.com/v4/letter/d/49beb7/32.png) [@DaveP](https://forum.dynamobim.com/u/DaveP)\
**Post date:** [December 19, 2018, 5:24pm UTC](https://forum.dynamobim.com/t/parameterfilterelement-byrules-fails-in-1-3-3/29919/1 "2018-12-19T17:24:47Z")

</div>

I had (have?) a graph to create filters.  
Worked fine in 1.3.2, but in 1.3.3 & 2.0, the ParameterFilterElement.ByRules fails on me.  
I’m passing a list to the node for the names. This works in 1.3.2, but just returns nul in recent versions  
The node does not show the “name” input parameter as a list - it shows **name: string** not **name: string[]**  
But it shows the same way (without ) in 1.3.2  
Did I just get lucky in the old version & that bug has been fixed?  
More importantly, does anyone have a good way to create multiple Filters?  
 ![ByRules](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/2/a2a9104bb710af1722f3b37afd80de1676371967.png)

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [December 19, 2018, 6:10pm UTC](https://forum.dynamobim.com/t/parameterfilterelement-byrules-fails-in-1-3-3/29919/2 "2018-12-19T18:10:28Z")

</div>

I think I saw that you have to remove the spaces to set the object type.

---

<div class="post-metadata">

**Author:** ![DaveP](https://avatars.discourse-cdn.com/v4/letter/d/49beb7/32.png) [@DaveP](https://forum.dynamobim.com/u/DaveP)\
**Post date:** [December 19, 2018, 6:15pm UTC](https://forum.dynamobim.com/t/parameterfilterelement-byrules-fails-in-1-3-3/29919/3 "2018-12-19T18:15:01Z")

</div>

Not sure I understand you.  
Do you mean the space after the colon? FilterNam **e:s** tring instead of FilterNam **e: s** tring ?  
And on which Input?

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [December 19, 2018, 6:23pm UTC](https://forum.dynamobim.com/t/parameterfilterelement-byrules-fails-in-1-3-3/29919/4 "2018-12-19T18:23:11Z")

</div>

If that’s the issue it would be on all inputs. It’s hard to tell what’s going on in your image though. Can you show us what the output looks like? Are you getting an error?

---

<div class="post-metadata">

**Author:** ![DaveP](https://avatars.discourse-cdn.com/v4/letter/d/49beb7/32.png) [@DaveP](https://forum.dynamobim.com/u/DaveP)\
**Post date:** [December 19, 2018, 6:30pm UTC](https://forum.dynamobim.com/t/parameterfilterelement-byrules-fails-in-1-3-3/29919/5 "2018-12-19T18:30:35Z")

</div>

It’s just a pile of nuls  
1.3.2 returns a list of ParameterFilterElements  
1.3.3 returns a list of nuls  
(different Revit file, 1.3.2 had only 5 elements input, 1.3.3 had 10)  
 ![filterelements](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/5/959c299436a0f5935c7dfd362cdeef23657f233d.png) ![Pile%20of%20Nuls](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/f/7f84120973469df066c410ca9ad9c16b1fe1d7ff.png)

---

<div class="post-metadata">

**Author:** ![Michael\_Kirschner2](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/michael_kirschner2/32/75576_2.png) [@Michael\_Kirschner2](https://forum.dynamobim.com/u/Michael_Kirschner2)\
**Post date:** [December 20, 2018, 1:40am UTC](https://forum.dynamobim.com/t/parameterfilterelement-byrules-fails-in-1-3-3/29919/6 "2018-12-20T01:40:43Z")

</div>

I would change both types to be lists (string, Category) - and I would use a different name for the category so that it does not match the type name… also Category.

you might also just try `var[]` for both of them.
