Join node output not constant

I have multiple input to connect to join node. but the output sequence always change. 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

thanks sir,

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

See this article in the cookbook 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.

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