# "TypeError: Cannot read property '0' of undefined"

**URL:** <https://discourse.nodered.org/t/typeerror-cannot-read-property-0-of-undefined/28285>\
**Category:** General\
**Created:** [13 June 2020 16:45 UTC](https://discourse.nodered.org/t/typeerror-cannot-read-property-0-of-undefined/28285 "2020-06-13T16:45:35Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [13 June 2020 16:55 UTC](https://discourse.nodered.org/t/typeerror-cannot-read-property-0-of-undefined/28285/2 "2020-06-13T16:55:03Z")

</div>

Have a look at this - [https://nodered.org/docs/user-guide/messages](https://nodered.org/docs/user-guide/messages)  
to see how to find the correct path to the data you want.

Also see this post on how to share code and debug so that it is easier to read and import - [How to share code or flow json](https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506)

---

_[View the full topic](https://discourse.nodered.org/t/typeerror-cannot-read-property-0-of-undefined/28285)._
