# Join node doesn't join all the messages

**URL:** <https://discourse.nodered.org/t/join-node-doesnt-join-all-the-messages/82342>\
**Category:** General\
**Created:** [26 October 2023 00:50 UTC](https://discourse.nodered.org/t/join-node-doesnt-join-all-the-messages/82342 "2023-10-26T00:50:15Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![AndreKR](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/andrekr/32/81657_2.png) [@AndreKR](https://discourse.nodered.org/u/AndreKR)\
**Post date:** [26 October 2023 00:50 UTC](https://discourse.nodered.org/t/join-node-doesnt-join-all-the-messages/82342/1 "2023-10-26T00:50:15Z")

</div>

I have a _join_ node configured like this:

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/c/4c4062e522c41aceb38a045d34610fc677adb076.png)

You would expect a maximum of one message every 5 seconds coming from this node, wouldn't you?

But watch what happens:

![2023-10-26-02-45-10-chrome](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/2/c2a73bd0f56cba371962aa4ae25b1752390479c0.gif)

I made another observation. So far the node _function 4_ was configured like this:

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/0/702c8050ee6e84245edfe86f161e2ee40536c29c.png)

If I change it to this:

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/a/ba6490bb6b43067c584b52f0ecee43518f2b4a70.png)

Suddenly my _join_ node starts to work as expected:

![2023-10-26-02-48-54-chrome](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/a/5a7e39503a6a4bd400bf5da77cc0ca0e21855c1b.gif)

---

<div class="post-metadata">

**Author:** ![AndreKR](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/andrekr/32/81657_2.png) [@AndreKR](https://discourse.nodered.org/u/AndreKR)\
**Post date:** [26 October 2023 01:09 UTC](https://discourse.nodered.org/t/join-node-doesnt-join-all-the-messages/82342/2 "2023-10-26T01:09:16Z")

</div>

Ok, this is caused by the `parts` key in the message object, which should have no bearing in manual mode but does. ~~I'll open an issue.~~ I found [an existing issue](https://github.com/node-red/node-red/issues/1957) that seems to be about this exact problem.

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [26 October 2023 04:50 UTC](https://discourse.nodered.org/t/join-node-doesnt-join-all-the-messages/82342/3 "2023-10-26T04:50:41Z")

</div>

I'm not sure you have solved/fixed it or not.

Observations:  
you didn't tell the `join` node how many messages to join.  
But to send the new message after 5 seconds (I think it is seconds) of receiving the first one.

That may be a problem.

What happens if you set the `After a number of message parts` to `5`?

I suspect you accidentally put the `5` in the wrong box.

In the picture you show of `function 4` and how you send the payload.

Shouldn't it really be

```auto
return {
     'payload': 'foo'
};

```

to be more correct as all names in JSON need to be in/between `"` or `'` to work.  
That they do without them is _luck_ and shouldn't be done.

Though that shouldn't cause problems.

If you did find one, well done.

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [26 October 2023 05:52 UTC](https://discourse.nodered.org/t/join-node-doesnt-join-all-the-messages/82342/4 "2023-10-26T05:52:25Z")

</div>

I think you should outline the problem you are trying to solve, then people can assist you in getting there.  
Currently you are observing certain behaviour based on timing and variable/non-consistent input, not so easy to reverse engineer.

---

<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:** [26 October 2023 13:28 UTC](https://discourse.nodered.org/t/join-node-doesnt-join-all-the-messages/82342/5 "2023-10-26T13:28:44Z")

</div>

There is further discussion of this in the [bug report.](https://github.com/node-red/node-red/issues/1957)

---

<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:** [25 December 2023 13:29 UTC](https://discourse.nodered.org/t/join-node-doesnt-join-all-the-messages/82342/6 "2023-12-25T13:29:00Z")

</div>

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