Sheet with ID 1366469942 not found?

This node is at the end of the flow, and it should write retrieved data on a sheet that was created earlier in the flow.

As shown on the screenshot, the sheet file ID is 1f-z_eY22mxJjPeRu5UDhZ-P6EWFBZ9cwbDflbeaN-uY
which reads correctly under ID field on this node.

The containing folder ID is 11WXxU9F86DBV92pkOuOP7sNAtOt3jo9a
Which as well can be found correctly on the schema along the flow.

But the error says Sheet with ID 1366469942 not found

and I can’t locate this number anywhere on the flow, where did it come from? and how to fix this error?

Thanks in advance to everyone who will take the time to answer.

{
  "errorMessage": "Sheet with ID 1366469942 not found",
  "errorDetails": {},
  "n8nDetails": {
    "nodeName": "Add Related KWs to GSheet",
    "nodeType": "n8n-nodes-base.googleSheets",
    "nodeVersion": 4.5,
    "resource": "sheet",
    "operation": "append",
    "time": "3/1/2025, 2:32:04 PM",
    "n8nVersion": "1.79.3 (Self Hosted)",
    "binaryDataMode": "default",
    "stackTrace": [
      "NodeOperationError: Sheet with ID 1366469942 not found",
      "    at GoogleSheet.spreadsheetGetSheet (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Google/Sheet/v2/helpers/GoogleSheet.js:62:19)",
      "    at processTicksAndRejections (node:internal/process/task_queues:95:5)",
      "    at ExecuteContext.router (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Google/Sheet/v2/actions/router.js:62:32)",
      "    at ExecuteContext.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Google/Sheet/v2/GoogleSheetsV2.node.js:21:16)",
      "    at WorkflowExecute.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/workflow-execute.js:627:19)",
      "    at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/workflow-execute.js:878:51",
      "    at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/workflow-execute.js:1211:20"
    ]
  }
}
  • n8n version: 1.79.3 self hosted
  • Database (default: SQLite): default
  • n8n EXECUTIONS_PROCESS setting (default: own, main): default
  • Running n8n via (Docker, npm, n8n cloud, desktop app): docker
  • Operating system: ubuntu

It looks like your topic is missing some important information. Could you provide the following if applicable.

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

Given the fileID is picked from some input, is it safe to assume that the workflow would work with multiple files with the same structure of tabs/sheets in it?

If so, then you might try defining target sheet not by “From list” but rather by name. This porblem shouldn’t occur when identifying the sheet by its name explicitly.

I think, n8n internally maps sheet names from the list onto their ids. The sheets in a full copy of a spreadsheet would have different ids.

Here is where you will find a sheet’s id:
image

1 Like

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