Google Docs Get operation not working - "Bad request - please check your parameters"

Hi there,

I want to get the content of a Google Document. Credentials are OK. API in Google Console enabled. Sharing settings is done. But when I run test, I got this error message:

Bad request - please check your parameters

Has anyone encountered with the same problem before?
thanks
Janos

I’ll share you the details:

{
  "errorMessage": "Bad request - please check your parameters",
  "errorDescription": "This operation is not supported for this document",
  "errorDetails": {
    "rawErrorMessage": [
      "400 - {\"error\":{\"code\":400,\"message\":\"This operation is not supported for this document\",\"status\":\"FAILED_PRECONDITION\"}}"
    ],
    "httpCode": "400"
  },
  "n8nDetails": {
    "nodeName": "Google Docs",
    "nodeType": "n8n-nodes-base.googleDocs",
    "nodeVersion": 2,
    "resource": "document",
    "operation": "get",
    "time": "3/26/2025, 8:06:33 PM",
    "n8nVersion": "1.82.3 (Self Hosted)",
    "binaryDataMode": "default",
    "stackTrace": [
      "NodeApiError: Bad request - please check your parameters",
      "    at ExecuteContext.googleApiRequest (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Google/Docs/GenericFunctions.js:35:15)",
      "    at processTicksAndRejections (node:internal/process/task_queues:95:5)",
      "    at ExecuteContext.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Google/Docs/GoogleDocs.node.js:191:40)",
      "    at WorkflowExecute.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/workflow-execute.js:687:27)",
      "    at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/workflow-execute.js:919:51",
      "    at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/workflow-execute.js:1252:20"
    ]
  }
}

hello @janos

Seems the document is not one of the google docs format. You can convert the document to the native format with the google Drive node

1 Like

Helped me! I was using a xlsx file uploaded to google files and getting the same error. Downloaded the file as csv and uploaded again. worked like a charm