Hi! I’m trying to set up an automation that will look at Notion database pages, take a file that sits in their page content and put it into an attachment field of the respective database page instead.
I am getting the error below which, to me, looks like the Notion integration was build with the assumption that the file link would be an external link, while Notion wants files that are already stored on their servers to be handled with a different parameter. Just my guess, though.
How can I solve this?
n8n Workflow
Output returned by the last node
ERROR: Bad request - please check your parameters
E;`j value at index 0 contains invalid url. A file with type `external` cannot contain a Notion hosted file url. Use type `file`.
Details
Time
1/12/2023, 12:00:27 PM
HTTP Code
400
Stack
NodeApiError: Bad request - please check your parameters
at Object.requestWithAuthentication (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/NodeExecuteFunctions.js:1018:19)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at Object.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Notion/v2/NotionV2.node.js:433:36)
at Workflow.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/Workflow.js:658:28)
at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:585:53
n8n setup
- n8n version: 0.206.1
- Running n8n via n8n.cloud