Duaer

Troubleshooting

Fix the Duaer expression error "Node hasn't been executed"

Duaer raises Node 'X' hasn't been executed when an expression references a node that did not run this time, usually after an If or Switch branch.

Why it happens

In Duaer, {{ $("Find customer").item.json.name }} reads what Find customer output in this run. When that node sits on an If branch that did not run, or runs after the current node, there is nothing to read, so Duaer raises Node 'Find customer' hasn't been executed.

It also shows up when you test one node in the editor before earlier nodes ran. Select Execute previous nodes first.

Three fixes

  1. Rewire: put the referenced node earlier on the same path as the current node.
  2. Join branches with Merge and reference the Merge output rather than a node inside one branch.
  3. Guard when it may not run: {{ $if($("Find customer").isExecuted, $("Find customer").item.json.name, "") }} returns an empty string when it did not.

Questions

What is isExecuted in Duaer?

In a Duaer expression, $("Node name").isExecuted tells whether that node ran this time. Pair it with $if to avoid the error.

The node did run, but Duaer still raises the error?

Check that the node name matches exactly. Duaer is case and space sensitive, and old expressions may keep a renamed node's old name.

In this section