Error code: Cannot read property '$return_value' of undefined

Hi,

I got this error when creating a workflow - Cannot read property ‘$return_value’ of undefined

Thanks,
Duncan

Hi @duncanbimastewart,

Would you mind sharing more information about your workflow? Which action you have added into your workflow?

If you’re following the tutorial to convert your meeting record to transcript, I would recommend you to search through similar topics posted in the past

I’ve had a look at the last posts and can’t seem to work it out. I’m following the tutorial from Thomas Frank on the meeting record transcript to Notion. I’m at the “Create Your Notion Page” step in the code version. When I got to create the “use any notion API in node.js” and paste the code in I get this error - “Type is not a property that exists. AI Cost is not a property that exists. Duration (Seconds) is not a property that exists.”

When I “Create page from database” and have it linked to the environment table then it works but when I create the last step “Update your notion page” I get - "Cannot read property ‘$return_value’ of undefined.

@duncanbimastewart, could you check if your action name is exactly the same as in the tutorial (the action name matters)? If would be great if you can share some screenshots of your workflow also.

@duncanbimastewartm could you check this post, I think it have the solution to your issue? Thomas Frank’s Latest Video — Issue with “Create page from notion data base” Step - #10 by pierce

On another note, I would strongly recommend you to go through Pipedream University to understand how to use Pipedream (it’s easy)

Okay so I’ve checked this post and double checked everything and it’s all correct…

Okay I got it working. I needed to update the template in notion or remove this:

“Type”: { “select”: { “name”: “AI Transcription” } }, “AI Cost”: { “number”: Math.round(totalCost * 1000) / 1000 }, “Duration (Seconds)”: { “number”: duration }

Removed it and it’s now working.

I had the same issue. Tracked it down to my having changed the name of a Step that was referenced in code. Changed the name back, no more error.

Thanks for this thread!