# \[IGN-16005\]How to get len of DotReferenceJythonMap?

**URL:** <https://forum.inductiveautomation.com/t/ign-16005-how-to-get-len-of-dotreferencejythonmap/115119>\
**Category:** Ignition\
**Tags:** scripting\
**Created:** [April 16, 2026, 3:41pm UTC](https://forum.inductiveautomation.com/t/ign-16005-how-to-get-len-of-dotreferencejythonmap/115119 "2026-04-16T15:41:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![danielps1818](https://avatars.discourse-cdn.com/v4/letter/d/ecae2f/32.png) [@danielps1818](https://forum.inductiveautomation.com/u/danielps1818)\
**Post date:** [April 16, 2026, 3:41pm UTC](https://forum.inductiveautomation.com/t/ign-16005-how-to-get-len-of-dotreferencejythonmap/115119/1 "2026-04-16T15:41:00Z")

</div>

Whenever you have a binding that is a dictionary what really is is a DotReferenceJythonMap.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/c/8c866876d55a03b636838b5df23099852cf52e33.png)

In the documentation says that you can get it using ` __len__ ()` but I'm not able to do it.

Any idea on how to do this?

My final objective is to do this: `len(dict) > 0`.

---

<div class="post-metadata">

**Author:** ![ryan.white](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryan.white/32/73193_2.png) [@ryan.white](https://forum.inductiveautomation.com/u/ryan.white)\
**Post date:** [April 16, 2026, 4:18pm UTC](https://forum.inductiveautomation.com/t/ign-16005-how-to-get-len-of-dotreferencejythonmap/115119/2 "2026-04-16T16:18:37Z")

</div>

Have you tried casting the value given to the transform script as a dict? e.g. `len(dict(value)) > 0`

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [April 16, 2026, 5:01pm UTC](https://forum.inductiveautomation.com/t/ign-16005-how-to-get-len-of-dotreferencejythonmap/115119/3 "2026-04-16T17:01:12Z")

</div>

Huh, it should support `len` but doesn't, that's just a bug in our implementation.

`len(dict.keys())` would work.
