Notion getAll hides a multiple input when nothing is found

Describe the problem/error/question

I’m trying to make a workflow in which I’m searching for existing orders in my Notion table and if it doesn’t exist, I’m creating a new order record.
The problem appears if I have multiple input items for the same order, and this order does not yet exist.

Expected behaviour: the first item triggers “order not exist” branch and create Notion page for that order.
So then all subsequent orders can find this page and enrich it.

What is the error message (if any)?

What actually is happening: for 3 input items, I have a single empty output after Notion getAll node.

Please share your workflow

I don't have permissions to paste code, so here is the gist
https://gist.github.com/e3e6/d78d649e259e7c6b6b2ca431760416ac

Share the output returned by the last node

Information on your n8n setup

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Find the following workflow, which I assume is what you are looking for.

What happens here is when the page doesn’t exist, it is bring created and then populated with the text, otherwise, if it does exist - creation of the page is skipped and the paragraph is added.

The result:

Order with several inputs

Order with a single input

Hope it helps.