How to manage an IF node then return on a global execution?

Describe the problem/error/question

I am trying to build a scenario with an IF node that would basically check if an identitier exists.
If the answer is true then we continue to the next node (in my case 'SD API Fetch identity)
If the answer is false, then we need to make some steps before we go back to the next node.

The if node works fine and the following steps also.
The steps I would like to undergo on the false branch work fine also.

However if I connect my last ‘Add algoan reference’ to the ‘Fetch identity’s current account’ it no longer works.

Is there a way to manage this automatically (basically there will only be one branch executed from the IF node) ?

Thanks a lot

What is the error message (if any)?

N/A

Please share your workflow

I can not share it but I have put some images which illustrate the issue (the first one is working but can not handle the False branch - the second one is what I would like to do but ends up with a workflow not running)

Information on your n8n setup

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


Hi @Luis_Miguel_Escudeir

Thank you for adding the print screens!

What happens when you connect the nodes and it “no longer works”? Does the workflow fail? - if so, what error do you get? - and what is the output of the Add Algoan external reference node?

Hi @mariana-na

Well basically there is no error.

If I connect the two nodes (ie the Add Algoan reference + the following one), it just doesn’t run / stops like the workflow is waiting for the “false” branch to execute (which obvisouly never happens).

The Add algoan is just a simple POST Http query - and I’m not even using this output (or even the previous one except from the output of the webhook) to carry on with the scenario.

Basically the webhook gives me a customer id.
Based on this id the first nodes check if an external reference (in Algoan system) exist.
If yes I just pass the customerId to the following node and execute.
If not the “false branch” would take care of creating this customer in Algoan. But the following node does not care about this reference, it just uses the customerId which exists in the webhook.

Hope this clarifies,
Thanks

hello @Luis_Miguel_Escudeir

It should be working fine. How are you testing it? Are you clicking on the “play” button in the node or hitting the Execute button for the whole workflow?

Hello @barn4k

I’m actually clicking on each node manually as I’m trying to debug at the same time? Do you feel I would have a different behavior if I were to let it run on its own?

Thanks

When you are clicking on each node, it will re-run only that node and keep everything before as it was. If you changed linking, then you may experience completely broken behavior. I almost never use the node execution feature, instead, I always use the Test Workflow button with dozens of pinned data as it gives no UI issues.

2 Likes

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