Problem
Problem Description
I’m encountering an issue in my workflow where only one record gets inserted into the database instead of two, despite the workflow starting with two URLs. Here’s the breakdown of my workflow and the problem:
- Workflow Overview:
- The sitemap node outputs two URLs.
- These URLs are passed through each node until
Edit Fields7
. - At
Edit Fields7
, there are still two items as expected. - The workflow then checks (via
Supabase5
node) whether records for each URL exist in the database.
- Expected Behavior:
- Since I’m starting from scratch and the database is empty, the result of
Supabase5
should be an empty JSON for both URLs. - The subsequent
If
node correctly determines that theresults
value is not greater than 0 for each URL and passes the execution to theSupabase8
node. Supabase8
should then insert two records, one for each URL and its associated content.
- Since I’m starting from scratch and the database is empty, the result of
- Actual Behavior:
- Although there are two items up to
Edit Fields7
, starting from theSupabase5
node (which fetches records from the database), only one item is passed forward. - This seems to disrupt the logic for handling multiple records and causes the
Supabase8
node to insert only one record.
- Although there are two items up to
- Steps I’ve Taken:
- Checked the output of all nodes before
Supabase5
, and two items are correctly being passed along. - Verified that the database query in
Supabase5
should return empty JSON for both URLs, as the database is empty.
- Checked the output of all nodes before
- Question:
- How can I ensure that both items (one for each URL) are processed and inserted into the database by
Supabase8
?
- How can I ensure that both items (one for each URL) are processed and inserted into the database by
Share the output returned by the last node
Can be see in the workflow, but pasting a screenshot just in case you can’t see it:
Information on your n8n setup
- n8n version: 1.67.1
- Database (default: SQLite): default
- n8n EXECUTIONS_PROCESS setting (default: own, main): no clue what this is
- Running n8n via (Docker, npm, n8n cloud, desktop app): self-hosted, npm
- Operating system: debian raspberry pi