# Node input and outputs error when reopening script - jsonData

**URL:** <https://forum.dynamobim.com/t/node-input-and-outputs-error-when-reopening-script-jsondata/85902>\
**Category:** Uncategorized\
**Created:** [February 8, 2023, 12:13pm UTC](https://forum.dynamobim.com/t/node-input-and-outputs-error-when-reopening-script-jsondata/85902 "2023-02-08T12:13:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Astrid.za](https://avatars.discourse-cdn.com/v4/letter/a/e47774/32.png) [@Astrid.za](https://forum.dynamobim.com/u/Astrid.za)\
**Post date:** [February 8, 2023, 12:13pm UTC](https://forum.dynamobim.com/t/node-input-and-outputs-error-when-reopening-script-jsondata/85902/1 "2023-02-08T12:13:28Z")

</div>

Hi all,

I’m busy reading in json files and need to traverse through it using the JsonData package.

When I close and open the script, the number of inputs and outputs on this node duplicate, and it needs to be replaced with the same node. This is happening every time I open the file.

See below bottom node showing the duplication, and the same node above.

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

---

<div class="post-metadata">

**Author:** ![Astrid.za](https://avatars.discourse-cdn.com/v4/letter/a/e47774/32.png) [@Astrid.za](https://forum.dynamobim.com/u/Astrid.za)\
**Post date:** [February 8, 2023, 12:19pm UTC](https://forum.dynamobim.com/t/node-input-and-outputs-error-when-reopening-script-jsondata/85902/2 "2023-02-08T12:19:39Z")

</div>

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/9/092bc3edadfaca039afb22b16a1675bff916454c.png)  
this file has been reopened 4 times

alternatively, is there an ootb way to traverse through the dictionary keys and values, returning the remaining dictionaries in the nested value? Such as what the node below does:

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/5/45726926222959d5160088e2767a21d49586ee65.png)

---

<div class="post-metadata">

**Author:** ![Marcel\_Rijsmus](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/marcel_rijsmus/32/8539_2.png) [@Marcel\_Rijsmus](https://forum.dynamobim.com/u/Marcel_Rijsmus)\
**Post date:** [February 8, 2023, 12:23pm UTC](https://forum.dynamobim.com/t/node-input-and-outputs-error-when-reopening-script-jsondata/85902/3 "2023-02-08T12:23:19Z")

</div>

Have you seen this post?

> [@Dynamo 2.0 duplicates ports of custom node when file is saved and reopened?](https://forum.dynamobim.com/t/dynamo-2-0-duplicates-ports-of-custom-node-when-file-is-saved-and-reopened/20867):
>
> When I use my custom nodes (external dll - works properly in 1.3 without issues) in Dynamo 2.0, save the dyn file and reopen it the ports seem to duplicate every time? [image] Did someone else have this problem, too? Any idea what could be wrong or different in 2.0? The code is pretty standard and looks like this: [IsDesignScriptCompatible] [NodeName(“Stream”)] [NodeDescription(“Stream node.”)] [NodeCategory(“XXX.Streams”)] [InPortNames(“Ss”,“I”,“N”)] [InPortTypes(“Stream [List]”,“Stri…

---

<div class="post-metadata">

**Author:** ![Astrid.za](https://avatars.discourse-cdn.com/v4/letter/a/e47774/32.png) [@Astrid.za](https://forum.dynamobim.com/u/Astrid.za)\
**Post date:** [February 8, 2023, 12:46pm UTC](https://forum.dynamobim.com/t/node-input-and-outputs-error-when-reopening-script-jsondata/85902/4 "2023-02-08T12:46:39Z")

</div>

Thanks for this Marcel,

It is probably a similar issue, so I am assuming the package owner for JsonData needs to revise their versioning.

---

<div class="post-metadata">

**Author:** ![Marcel\_Rijsmus](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/marcel_rijsmus/32/8539_2.png) [@Marcel\_Rijsmus](https://forum.dynamobim.com/u/Marcel_Rijsmus)\
**Post date:** [February 8, 2023, 12:50pm UTC](https://forum.dynamobim.com/t/node-input-and-outputs-error-when-reopening-script-jsondata/85902/5 "2023-02-08T12:50:34Z")

</div>

What version are you using?

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/3/63d76318daf6b7a8a48b542951a570d7c1447eff.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:** [February 8, 2023, 2:11pm UTC](https://forum.dynamobim.com/t/node-input-and-outputs-error-when-reopening-script-jsondata/85902/6 "2023-02-08T14:11:33Z")

</div>

Conflicting Revit add-ins can also cause this behavior. Disable all add-ins and see if this reproduces.
