Describe the problem/error/question
When using the Google Calendar Oath “Get Many” node in n8n, the workflow fails with an error stating:
“Cannot read properties of undefined (reading ‘dateTime’)”
It is weird because it is just one google calender which is not working the other three are working.
It seems that some events retrieved from Google Calendar do not contain a start.dateTime
field, leading to a crash in the workflow.
What is the error message (if any)?
{
“errorMessage”: “Cannot read properties of undefined (reading ‘dateTime’)”,
“errorDetails”: {},
“n8nDetails”: {
“n8nVersion”: “1.76.1 (Self Hosted)”,
“binaryDataMode”: “default”,
“stackTrace”: [
“TypeError: Cannot read properties of undefined (reading ‘dateTime’)”,
" at /usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Google/Calendar/GenericFunctions.js:172:40",
" at Array.some ()“,
" at eventExtendYearIntoFuture (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Google/Calendar/GenericFunctions.js:169:17)”,
" at ExecuteContext.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Google/Calendar/GoogleCalendar.node.js:427:102)“,
" at processTicksAndRejections (node:internal/process/task_queues:95:5)”,
" at WorkflowExecute.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/workflow-execute.js:632:19)“,
" at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/workflow-execute.js:890:51”,
" at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/workflow-execute.js:1224:20"
]
}
}
Please share your workflow
(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)
Share the output returned by the last node
Information on your n8n setup
- n8n version: 1.76.1
- Database (default: SQLite):
- n8n EXECUTIONS_PROCESS setting (default: own, main):
- Running n8n via (Docker, npm, n8n cloud, desktop app): Self-Hosted (Docker)
- Operating system:: Windows 11