# TypeError: Cannot read properties of undefined (reading 'Total\_in')"

**URL:** <https://discourse.nodered.org/t/typeerror-cannot-read-properties-of-undefined-reading-total-in/81165>\
**Category:** General\
**Tags:** database, function-node\
**Created:** [9 September 2023 19:24 UTC](https://discourse.nodered.org/t/typeerror-cannot-read-properties-of-undefined-reading-total-in/81165 "2023-09-09T19:24:46Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Sean-McG](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sean-mcg/32/54677_2.png) [@Sean-McG](https://discourse.nodered.org/u/Sean-McG)\
**Post date:** [9 September 2023 23:18 UTC](https://discourse.nodered.org/t/typeerror-cannot-read-properties-of-undefined-reading-total-in/81165/4 "2023-09-09T23:18:44Z")

</div>

It would be much easier to debug if you post the actual flow here -

In order to make code readable and usable it is necessary to surround your code with three backticks (also known as a left quote or backquote `````)

````auto
``` 
   code goes here 
```

````

See this post for more details - [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-properties-of-undefined-reading-total-in/81165)._
