Error in IF node while comparing values between previous two nodes

,

Describe the problem/error/question

In the IF node when i try to compare the output of previous two nodes it is failing to do so and getting an error as shown in the screenshot

  • Optimized Flow
    Trigger → Search PDFs → Loop → Extract Metadata → Check DB → IF (New/Modified) → UPSERT → Loop Back

What is the error message (if any)?

Error Message: Cannot read properties of undefined (reading ‘rightType’)

Please share your workflow

Share the output returned by the last node

Information on your n8n setup

  • n8n version: 1.102.4,
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main): default
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
  • Operating system: Ubuntu 24

Hi there, i think the error might be caused by the empty validation on. your IF node, on the third one

since you are not puttinh any value to it, i suggest if you dont use it then delete it

it should work fine after

if it helps please mark this answer as the solution and give it a like, thank you!

Hello @fahmiiireza , thanks for reply, but it has been removed already but still getting same error.