# In 1 node, read several information and make 1 message

**URL:** <https://discourse.nodered.org/t/in-1-node-read-several-information-and-make-1-message/37924>\
**Category:** General\
**Created:** [23 December 2020 13:15 UTC](https://discourse.nodered.org/t/in-1-node-read-several-information-and-make-1-message/37924 "2020-12-23T13:15:06Z")\
**Posts on this page:** 9\
**Page:** 2

<div class="post-metadata">

**Author:** ![roro50](https://avatars.discourse-cdn.com/v4/letter/r/d6d6ee/32.png) [@roro50](https://discourse.nodered.org/u/roro50)\
**Post date:** [23 December 2020 16:34 UTC](https://discourse.nodered.org/t/in-1-node-read-several-information-and-make-1-message/37924/21 "2020-12-23T16:34:27Z")

</div>

erreur je reviens

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [23 December 2020 16:35 UTC](https://discourse.nodered.org/t/in-1-node-read-several-information-and-make-1-message/37924/22 "2020-12-23T16:35:47Z")

</div>

Show us what you have now

---

<div class="post-metadata">

**Author:** ![roro50](https://avatars.discourse-cdn.com/v4/letter/r/d6d6ee/32.png) [@roro50](https://discourse.nodered.org/u/roro50)\
**Post date:** [23 December 2020 16:37 UTC](https://discourse.nodered.org/t/in-1-node-read-several-information-and-make-1-message/37924/23 "2020-12-23T16:37:04Z")

</div>

I made the modifications and now I have this message in output:  
"TypeError: Cannot read property 'event' of undefined"

---

<div class="post-metadata">

**Author:** ![roro50](https://avatars.discourse-cdn.com/v4/letter/r/d6d6ee/32.png) [@roro50](https://discourse.nodered.org/u/roro50)\
**Post date:** [23 December 2020 16:38 UTC](https://discourse.nodered.org/t/in-1-node-read-several-information-and-make-1-message/37924/24 "2020-12-23T16:38:06Z")

</div>

but I did not put the (: "") because there is an error?

---

<div class="post-metadata">

**Author:** ![roro50](https://avatars.discourse-cdn.com/v4/letter/r/d6d6ee/32.png) [@roro50](https://discourse.nodered.org/u/roro50)\
**Post date:** [23 December 2020 16:41 UTC](https://discourse.nodered.org/t/in-1-node-read-several-information-and-make-1-message/37924/25 "2020-12-23T16:41:02Z")

</div>

note; in my micro program earlier =\> it works! I had my message.

the error I have now is in my main program with the 4 messages

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [23 December 2020 16:47 UTC](https://discourse.nodered.org/t/in-1-node-read-several-information-and-make-1-message/37924/26 "2020-12-23T16:47:05Z")

</div>

> [@roro50](#):
>
> but I did not put the (: "") because there is an error?

No, that is not an error, it sets the alert to an empty string if msg.payload.alert[0] does not exist. Put that back and if it still doesn't work show us what you have.

---

<div class="post-metadata">

**Author:** ![roro50](https://avatars.discourse-cdn.com/v4/letter/r/d6d6ee/32.png) [@roro50](https://discourse.nodered.org/u/roro50)\
**Post date:** [23 December 2020 20:10 UTC](https://discourse.nodered.org/t/in-1-node-read-several-information-and-make-1-message/37924/27 "2020-12-23T20:10:18Z")

</div>

I still have mistakes! especially that now the alerts are not activated any more thus not sent in json.  
I have this kind of message ("TypeError: Cannot read property 'xxxxxxxxx' of undefined")

Finally, I would like to personally thank you for your patience and your help.  
it's getting late here and tomorrow I'm preparing Christmas so thank you again, good Christmas, Happy New Year and above all good health!

I tell you next year.

thank you

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [23 December 2020 21:18 UTC](https://discourse.nodered.org/t/in-1-node-read-several-information-and-make-1-message/37924/28 "2020-12-23T21:18:24Z")

</div>

> [@roro50](#):
>
> TypeError: Cannot read property 'xxxxxxxxx' of undefined"

For when you get back to it, that means that you have used `bla_bla.xxxxx` but `bla_bla` is undefined, so that should enable you to get a clue to the problem. Also read again the docs page [Writing Functions](https://nodered.org/docs/user-guide/writing-functions) which shows you how you can use `node.warn()` statements in your function to try to work out where it is going wrong. I am sure you have enough knowledge now to get close to solving it, whatever the problem is.

---

<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:** [21 February 2021 21:18 UTC](https://discourse.nodered.org/t/in-1-node-read-several-information-and-make-1-message/37924/29 "2021-02-21T21:18:43Z")

</div>

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

[Previous page](https://discourse.nodered.org/t/in-1-node-read-several-information-and-make-1-message/37924.md?page=1)
