Data Table Get Row as Input returning empty

Describe the problem/error/question

I have a “Get Rows Data Table” Node and a “Webhook” Node.
I am trying to use both of these outputs as inputs into a “Message a Model” Node.
However, when used with another node as input, the “Get Rows” node always returns empty. Even if I run the “Get Rows” beforehand, as soon as the next node in the chain is triggered it clears out the data. Any other secondary input node such as the “Webhook” works fine. By itself, “Get Rows”, with no other changes works. I’ve tried using a “Merge Append” and a standalone “Aggregate”. Same Issue.

What is the error message (if any)?

Please share your workflow

Share the output returned by the last node

Information on your n8n setup

  • n8n version: Version 2.11.2
  • Database (default: SQLite): Postgres
  • n8n EXECUTIONS_PROCESS setting (default: own, main): Not Sure
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Self Hosted
  • Operating system: Linux
1 Like

@nembdev Instant fix for your workflow
Modify your connection scheme:

Delete direct connection between “Get row(s)” and Merge
Connect: Webhook → Get row(s) → Message a model
In “Message a model” add data from webhook using $(‘Webhook’).item.json
Now each time the webhook is fired Data Table is getting fresh data.

2 Likes

Hi @nembdev!
I guess the issue with the structure of the flow, as there is no trigger in the Get Data node, i mean when the flow runs the merge node must never get the input from the get data node, I guess try connecting your webhook to get rows first then connect it to merge node that way the flow whenever it gets triggered it would get the get data node running as well, also if you do not want to wait for the get data you can try using the Append mode in merge,

2 Likes

Thanks this worked as intended. Appreciate the fast response.

Thank you, this also worked and explained the logic as to why. Wish I could mark you both as solution’d :frowning: . From a Nembdev to a Namdev, appreciate you.

1 Like

No worries i am here to help. Not just spamming AI generated copy pasting and making the forum a global chatBot. He replied first that is why he deserved that! Cheers!

1 Like

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