# Custom nodes in Dynamo 2.2

**URL:** https://forum.dynamobim.com/t/custom-nodes-in-dynamo-2-2/40581
**Category:** Revit
**Tags:** revit, dynamo
**Created:** [September 12, 2019, 9:12am UTC](https://forum.dynamobim.com/t/custom-nodes-in-dynamo-2-2/40581 "2019-09-12T09:12:01Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![wma\_sfenton](https://avatars.discourse-cdn.com/v4/letter/w/9d8465/32.png) [@wma\_sfenton](https://forum.dynamobim.com/u/wma_sfenton)
#### Post date: [September 12, 2019, 9:12am UTC](https://forum.dynamobim.com/t/custom-nodes-in-dynamo-2-2/40581/1 "2019-09-12T09:12:01Z")

</div>

Since the Dynamo 2.2 update a one of our custom nodes will not work, can anyone explain what has changed so I can repair our nodes and scripts?!

 ![dynamo-screenshot](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/7/07a6385b9fa989fbe80cfd8e59dba8050d01ddf1.jpeg)

---

<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 12, 2019, 9:44am UTC](https://forum.dynamobim.com/t/custom-nodes-in-dynamo-2-2/40581/2 "2019-09-12T09:44:48Z")

</div>

Hi @wma_sfenton,

The spaces in the names of inputs and reserved keywords are no longer supported in latest Dynamo 2.X versions.

Replace the inputs with :  
`view/Elements:var[]..[]`  
and :  
`titleBlockType:var[]..[]`

> [@2.2 Data-Shape UI.Dropdown Data Node](https://forum.dynamobim.com/t/2-2-data-shape-ui-dropdown-data-node/39979/2):
>
> I think in later versions of Dynamo we stopped supporting spaces in the names of inputs for customNodes - this is to match the syntax for a valid ID in designscript and to fix a bug where these names were getting modified when the node was saved - but the node should still run, and unless you’re editing this custom node shouldn’t need to be saved.

---

<div class="post-metadata">

### Author: ![Arno\_De\_Lange](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/arno_de_lange/32/35178_2.png) [@Arno\_De\_Lange](https://forum.dynamobim.com/u/Arno_De_Lange)
#### Post date: [November 7, 2019, 7:13am UTC](https://forum.dynamobim.com/t/custom-nodes-in-dynamo-2-2/40581/3 "2019-11-07T07:13:47Z")

</div>

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/6/b6a0cab56bd62cb744b8e81974fd2b2496938586.png)  
But why does this give an error, TExtNote is a reserved text by the looks of it, but when i change it to TextN… it stays red

---

<div class="post-metadata">

### Author: ![vanman](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/vanman/32/20881_2.png) [@vanman](https://forum.dynamobim.com/u/vanman)
#### Post date: [November 11, 2019, 10:49pm UTC](https://forum.dynamobim.com/t/custom-nodes-in-dynamo-2-2/40581/4 "2019-11-11T22:49:43Z")

</div>

What would i change this too? I’m worried I get something wrong.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/6/66774f5ae105f3931c65154351ab6840fb12321d.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: [November 12, 2019, 1:03am UTC](https://forum.dynamobim.com/t/custom-nodes-in-dynamo-2-2/40581/5 "2019-11-12T01:03:11Z")

</div>

the error shows an example of a valid input string - you have two types (`string` and `var[]..[]`) and two `:` this is not valid.

---

<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: [November 12, 2019, 1:04am UTC](https://forum.dynamobim.com/t/custom-nodes-in-dynamo-2-2/40581/6 "2019-11-12T01:04:41Z")

</div>

I don’t think `[` and `]` are valid name characters - try sticking to alphanumeric strings for names starting with a letter.

I would also advise not using type names exactly as names - so List and Type are bad names as these might collide with valid types.

---

<div class="post-metadata">

### Author: ![vanman](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/vanman/32/20881_2.png) [@vanman](https://forum.dynamobim.com/u/vanman)
#### Post date: [November 12, 2019, 1:20am UTC](https://forum.dynamobim.com/t/custom-nodes-in-dynamo-2-2/40581/7 "2019-11-12T01:20:36Z")

</div>

Will the script work the same no matter whats in “Input”, as long as it dosn’t have spaces and special characters? So I dont need “Type” at all for any reason but for user understanding? “TitleBlock” by its self will not change the functionality of the script?

Letters changing color makes me think there is some functionality going on with the input I need. My limited understanding
