Why am I Getting an Error When Trying to Create a Notion Page with a Variable Holding a File Name from Google Drive?

This topic was automatically generated from Slack. You can find the original thread here.

Hey guys! Hope you are well. I’m having an issue with one of my workflows and I can’t understand what is causing it. I’m trying to create a notion page with a variable that holds the file name from google drive but it gives me an error when I try to do so. This is the error I’m getting:

Error
Failed to create Notion page.

DETAILS
    at Object.createNotionPage (file:///tmp/__pdg__/dist/code/f124a850c3f703097b5494bd1efc77777c2efa4db1b6462c7952f47e82001a2f/code/Notion-Voice-Notes.mjs:1664:11)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at Object.run (file:///tmp/__pdg__/dist/code/f124a850c3f703097b5494bd1efc77777c2efa4db1b6462c7952f47e82001a2f/code/Notion-Voice-Notes.mjs:2146:30)
    at null.executeComponent (/var/task/launch_worker.js:286:22)
    at MessagePort.messageHandler (/var/task/launch_worker.js:785:28)

I have attached screenshots of my workflow configuration and also here’s a loom explaining it in more detail: Loom | Free Screen & Video Recording Software | Loom

Would highly appreciate any help - Thanks! :pray:

Hi Sean - thanks for the context. I don’t think there’s an issue with the title attribute, that looks like it is mapped correctly. Perhaps there are some other attributes that are required but aren’t populated? Or perhaps not in a format that Notion requires?

Did you see the notice about some unsupported attributes in the API docs?

Instead of the title I would like to use the variable that has the file name from google drive

Yes, definitely understand that. And I believe you have mapped it correctly. I’m suggesting perhaps looking at other variables being passed.