N8n Workflow Tool Trigger Ouput Invalid expression

Describe the problem/error/question

Detailed Error Message

{
  "errorMessage": "Invalid expression",
  "errorDetails": {},
  "n8nDetails": {
    "time": "6/1/2025, 7:39:35 PM",
    "n8nVersion": "1.94.1 (Self Hosted)",
    "binaryDataMode": "default",
    "cause": {
      "executionId": "288",
      "workflowId": "hqw2hzBKOjPDHZVj"
    }
  }
}

Please share your workflow

Hi @kavinthangavel,

I noticed that in the subworkflow check, you’ve used an incorrect expression in both Telegram nodes. The issue is that the chat ID is being pulled from the “Telegram Trigger” node, but since the trigger node is not available in the subworkflow, it won’t find that value.

To resolve this, please update the expression to the correct one:

Current:

{{ $('Telegram Trigger').item.json.message.chat.id }}

Corrected:

{{ $('When Executed by Another Workflow').item.json.chatid }}

-Sudhanshu

2 Likes

Thanks it worked!!

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