# Help : TypeError: Cannot read property 'x' of undefined

**URL:** <https://discourse.nodered.org/t/help-typeerror-cannot-read-property-x-of-undefined/42765>\
**Category:** General\
**Created:** [17 March 2021 10:30 UTC](https://discourse.nodered.org/t/help-typeerror-cannot-read-property-x-of-undefined/42765 "2021-03-17T10:30:29Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![med](https://avatars.discourse-cdn.com/v4/letter/m/9d8465/32.png) [@med](https://discourse.nodered.org/u/med)\
**Post date:** [17 March 2021 10:30 UTC](https://discourse.nodered.org/t/help-typeerror-cannot-read-property-x-of-undefined/42765/1 "2021-03-17T10:30:29Z")

</div>

hello, guys, I'm new here and I wanna your help, please so my problem is when I want to save data i got this error TypeError: Cannot read property 'x' of undefined .

 ![error node](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/0/c0dafe438737219fc99435ffb6f92eb4764a6471.png)

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [17 March 2021 10:44 UTC](https://discourse.nodered.org/t/help-typeerror-cannot-read-property-x-of-undefined/42765/2 "2021-03-17T10:44:41Z")

</div>

Use the copy path button that appears when you hover over the item in the panel.

There’s a great page in the docs that will explain how to use the debug panel to find the right path to any data item.

[https://nodered.org/docs/user-guide/messages](https://nodered.org/docs/user-guide/messages)

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [17 March 2021 10:45 UTC](https://discourse.nodered.org/t/help-typeerror-cannot-read-property-x-of-undefined/42765/3 "2021-03-17T10:45:44Z")

</div>

Looks like you have path wrong  
try  
msg.payload.configuration.anchor.position.x

---

<div class="post-metadata">

**Author:** ![med](https://avatars.discourse-cdn.com/v4/letter/m/9d8465/32.png) [@med](https://discourse.nodered.org/u/med)\
**Post date:** [17 March 2021 10:46 UTC](https://discourse.nodered.org/t/help-typeerror-cannot-read-property-x-of-undefined/42765/4 "2021-03-17T10:46:38Z")

</div>

yes thank u so much I just did and it's working

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [17 March 2021 10:47 UTC](https://discourse.nodered.org/t/help-typeerror-cannot-read-property-x-of-undefined/42765/5 "2021-03-17T10:47:57Z")

</div>

don't forget to read steve's link as it will help you find paths in the future.

---

<div class="post-metadata">

**Author:** ![med](https://avatars.discourse-cdn.com/v4/letter/m/9d8465/32.png) [@med](https://discourse.nodered.org/u/med)\
**Post date:** [17 March 2021 10:49 UTC](https://discourse.nodered.org/t/help-typeerror-cannot-read-property-x-of-undefined/42765/6 "2021-03-17T10:49:04Z")

</div>

yeah I did it and it worked thank you for your help

---

<div class="post-metadata">

**Author:** ![med](https://avatars.discourse-cdn.com/v4/letter/m/9d8465/32.png) [@med](https://discourse.nodered.org/u/med)\
**Post date:** [17 March 2021 10:49 UTC](https://discourse.nodered.org/t/help-typeerror-cannot-read-property-x-of-undefined/42765/7 "2021-03-17T10:49:40Z")

</div>

i will thanks

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [16 May 2021 10:49 UTC](https://discourse.nodered.org/t/help-typeerror-cannot-read-property-x-of-undefined/42765/8 "2021-05-16T10:49:58Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
