Describe the problem/error/question
I’m adding a 2nd Condition to my Filter node and a couple weird things are happening. I drag/drop “ownerId” over and its displaying the wrong number in the “Result for item 1” value but it’s displaying the correct number in the error text! I triple checked and it is a numeric but the error says it’s a string.
What is the error message (if any)?
Wrong type: ‘49059687’ is a number but was expecting a string [condition 1, item 19]
Please share your workflow
(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)
Share the output returned by the last node
{
“errorMessage”: “Wrong type: ‘49059687’ is a number but was expecting a string [condition 1, item 19]”,
“errorDescription”: “Try changing the type of comparison. Alternatively you can enable ‘Less Strict Type Validation’ in the options.”,
“errorDetails”: {},
“n8nDetails”: {
“nodeName”: “Filter”,
“nodeType”: “n8n-nodes-base.filter”,
“nodeVersion”: 2,
“itemIndex”: 19,
“time”: “4/12/2024, 3:35:27 PM”,
“n8nVersion”: “1.36.1 (Self Hosted)”,
“binaryDataMode”: “default”,
“stackTrace”: [
“NodeOperationError: Wrong type: ‘49059687’ is a number but was expecting a string [condition 1, item 19]”,
" at extractValue (/usr/lib/node_modules/n8n/node_modules/n8n-core/src/ExtractValue.ts:205:9)“,
" at getNodeParameter (/usr/lib/node_modules/n8n/node_modules/n8n-core/src/NodeExecuteFunctions.ts:2392:28)”,
" at Object.getNodeParameter (/usr/lib/node_modules/n8n/node_modules/n8n-core/src/NodeExecuteFunctions.ts:3575:12)“,
" at /usr/lib/node_modules/n8n/node_modules/n8n-nodes-base/nodes/Filter/V2/FilterV2.node.ts:78:18”,
" at Array.forEach ()“,
" at Object.execute (/usr/lib/node_modules/n8n/node_modules/n8n-nodes-base/nodes/Filter/V2/FilterV2.node.ts:70:23)”,
" at Workflow.runNode (/usr/lib/node_modules/n8n/node_modules/n8n-workflow/src/Workflow.ts:1377:31)“,
" at /usr/lib/node_modules/n8n/node_modules/n8n-core/src/WorkflowExecute.ts:1048:44”,
" at /usr/lib/node_modules/n8n/node_modules/n8n-core/src/WorkflowExecute.ts:1724:11"
]
}
}
Information on your n8n setup
- n8n version: 1.36.1
- Database (default: SQLite): Postgres
- n8n EXECUTIONS_PROCESS setting (default: own, main):
- Running n8n via (Docker, npm, n8n cloud, desktop app): npm?
- Operating system: Ubuntu Linux 22.04