Describe the problem/error/question
I tried this sample workflow from the n8n website: Send specific PDF attachments from Gmail to Google Drive using OpenAI | n8n workflow template
What is the error message (if any)?
It looks like an old version with this error: Cannot find name ‘key’.
Please share your workflow
Is there any idea how to fix or update this sample workflow? Thanks.
Information on your n8n setup
- n8n version: 1.76.1
- Database (default: SQLite): SQLite
- n8n EXECUTIONS_PROCESS setting (default: own, main): main
- Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
- Operating system: debian
Here it is.
I’ve updated all the nodes to their most recent versions and fixed the JavaScript in the Code node do match the current settings.
If my reply answers your question, please remember to mark it as a solution.
Hey @solomon
thanks for your solution and the update.
I have one issue at the moment → I use the result of your iterate code in a HTTP Request node to Post the files to an API. This node now reports the following error message:
The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received undefined
Does your code somehow change the files? Thank you.
Hm… no it doesn’t.
Can you please share your workflow on a new topic, please?
I’m gonna take a look