GMail ID is incorrect

Describe the problem/error/question

I am trying to get Amazon to analyze the sentiment of certain labeled GMail messages.

After I added {{ $json.id }} to the Message ID field, I get this response:

What is the error message (if any)?

ERROR: Invalid message ID (item 0)

Message IDs should look something like this: 182b676d244938bd

Details

Time

4/8/2023, 9:24:40 PM

Item Index: 0

Stack

NodeOperationError: Invalid message ID (item 0)
    at Object.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/nodes/Google/Gmail/v2/GmailV2.node.ts:800:11)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at Workflow.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/src/Workflow.ts:1261:19)
    at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/src/WorkflowExecute.ts:949:29

Gmail

Execute node

Parameters


Docs

Credential to connect with

Resource

Operation

Message ID

Fixed

Expression

{{ $json.id }}

Label Names or IDs

Fixed

Expression

sentiment/positive

I wish this node would…

Please share your workflow

Share the output returned by the last node

Information on your n8n setup

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via npm:
  • Operating system:
    Ubuntu (Digital Ocean)

I suggest using the thread Id and thread function instead of the message ID. Could you try?

1 Like

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