Filter - is a number but was expecting a number

Describe the problem/error/question

Hello good people, I need to filter out items where the amount is empty (null). I tried to use Filter which is working when manually triggered with the Test step button inside the node. But when I hit the Test workflow button I get an error - “Wrong type: ‘NaN’ is a number but was expecting a number [condition 0, item 1]” Which sounds a bit odd, doesn’t it? :smiley: The workflow then stops.

Workaround for me was to use Filter node v1 with “Is not empty” option.

What is the error message (if any)?

I kept some data pinned. It is anonymized but should work for testing. The Filter1 is the v2 that is having issues. The Filter is v1 that currently works for me.

Wrong type: ‘NaN’ is a number but was expecting a number [condition 0, item 1]

Please share your workflow

Share the output returned by the last node

Information on your n8n setup

  • n8n version: 1.41.1
  • Database (default: SQLite): postgres
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): docker
  • Operating system: Unraid

Hi @Drearily5829

Thank you for reporting this bug (and providing pinned data for testing - really great input for debugging! :slight_smile:

I will raise a ticket with our engineers to get this fixed.

Thanks for sharing your work-around solution as well! :seedling:

2 Likes

New version [email protected] got released which includes the GitHub PR 9506.

2 Likes

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