# Join node output not constant

**URL:** https://discourse.nodered.org/t/join-node-output-not-constant/90470
**Category:** General
**Created:** [27 August 2024 07:11 UTC](https://discourse.nodered.org/t/join-node-output-not-constant/90470 "2024-08-27T07:11:07Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![tcsjohnson](https://avatars.discourse-cdn.com/v4/letter/t/7ab992/32.png) [@tcsjohnson](https://discourse.nodered.org/u/tcsjohnson)
#### Post date: [27 August 2024 07:11 UTC](https://discourse.nodered.org/t/join-node-output-not-constant/90470/1 "2024-08-27T07:11:07Z")

</div>

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

I have multiple input to connect to join node. but the output sequence always change. How to make it read and match constantly.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/7/e7399d3b9d51c42907b7c64d9adf9498451a6b3e.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: [27 August 2024 07:25 UTC](https://discourse.nodered.org/t/join-node-output-not-constant/90470/2 "2024-08-27T07:25:48Z")

</div>

> [@tcsjohnson](#):
>
> How to make it read and match constantly.

Dont use Array mode. It will always get out of step when messages are received async (like in your case)

Set a topic for each msg and use Object mode. Then each item will ALWAYS be accessible via `msg.payload.topicname1`, `msg.payload.topicnamex` etc

---

<div class="post-metadata">

### Author: ![tcsjohnson](https://avatars.discourse-cdn.com/v4/letter/t/7ab992/32.png) [@tcsjohnson](https://discourse.nodered.org/u/tcsjohnson)
#### Post date: [27 August 2024 07:40 UTC](https://discourse.nodered.org/t/join-node-output-not-constant/90470/3 "2024-08-27T07:40:05Z")

</div>

thanks sir,

Will if possible to give the sample for me to study it.

---

<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: [27 August 2024 07:49 UTC](https://discourse.nodered.org/t/join-node-output-not-constant/90470/4 "2024-08-27T07:49:55Z")

</div>

> [@tcsjohnson](#):
>
> Will if possible to give the sample for me to study it

See [this article in the cookbook](https://cookbook.nodered.org/basic/join-streams) for an example of how to join messages into one object.

In your case, just add a DIFFERENT topic to each `msg` BEFORE it enters the join node.

It may be the blue nodes allow setting a topic?  
It may be they already have a topic (use a debug to find out i the clue nodes output a topic)

if not, you can add a change node AFTER the blue nodes (but BEFORE the join node) to set a unique topic for each one.

---

<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: [26 October 2024 07:50 UTC](https://discourse.nodered.org/t/join-node-output-not-constant/90470/5 "2024-10-26T07:50:00Z")

</div>

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