79712121

Date: 2025-07-23 14:53:44
Score: 1
Natty:
Report link

To force execution order, you must connect Node 1 directly to Node 2 or create a dependency chain, like this:
Option 1: Direct Sequential Link Connect InsertMsgRecebida → InsertMsgEnviada, even if they are logically unrelated. This ensures n8n waits for the first insert to complete before continuing.

Option 2: Merge with Wait Use a Merge node in "Wait" mode to join both paths.
Flow: InsertMsgRecebida → Merge InsertMsgEnviada → Merge This ensures both writes must complete before the flow ends.

Option 3: Use a “Set” Dummy Chain If a direct link doesn’t make sense, use a dummy Set node to bridge: InsertMsgRecebida → Set → Merge → InsertMsgEnviada

Why "Waiting for end of stream" Happens in MySQL Node? This message is often seen when:
The MySQL node is waiting for the database connection to finish the current insert/update. This can also appear if there’s backpressure from async branches, especially when one flow is writing and another is blocked. Making sure writes are sequential and not parallel avoids this.

Final Flow Suggestion WhatsApp Trigger -> InsertMsgRecebida (Node 1) -> ... (rest of your flow) ↓-> InsertMsgEnviada (Node 2) Or use a Merge (Wait) node to enforce sync.

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Arshpreet Kaur