CORTEXFLOW · FREE FOREVER
Posts tagged #expressions
Fix n8n hasField() Returning True for toString and constructor
n8n's hasField() says every item has a toString field, even empty ones. The in operator is the cause — here is the own-key check that answers correctly.
Fix n8n Renaming a Node Silently Breaking References to Similarly-Named Nodes
Renaming a node in n8n rewrites $node references to nodes whose names start with the old one — Code1 becomes Transform1. Here's the cause and the fix.
Fix n8n DateTime.diffTo() Silently Returning undefined for weekday, weekNumber, and yearDayNumber
n8n's DateTime.diffTo() with 'weekday', 'weekNumber', or 'yearDayNumber' silently returns undefined — no error. Here's the cause and the fix.
Fix n8n String length() Counting Every Emoji as Two Characters
n8n's String length() counts UTF-16 code units, so one emoji reads as 2 characters. Here's the cause and the Code-node fix that counts real characters.
Fix n8n $('Node').first() Returning null for a Node's Error Output in Webhook Executions (2.46 Regression)
In n8n 2.46.0+, expressions reading a node's error output return null in production webhook runs — silently. Here's the verified cause and two workarounds.
Fix n8n $('Code') Expressions Resolving to null After Upgrading to 1.123.x
After upgrading to n8n 1.123.85, $('Code') expressions silently resolve to null while executions report success. Two team-confirmed fixes.
Fix n8n 'Cannot Resolve Paired Item' Error (5 Fixes That Actually Work)
n8n's 'Cannot resolve paired item' error means the item-linking chain broke. 5 verified fixes — from $json to pairedItem in the Code node.
n8n Items & Expressions: A Mental Model
Most n8n expression errors are one mental-model bug: thinking in variables instead of items. The items model, $json, $('Node'), pairing — and 5 fixes.