Why did Thomas Frank's Ultimate Brain Notion template with a Pipedream automation start producing an APIResponseError related to ISO 8601 date string validation?

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

Hi. I have Thomas Frank’s Ultimate Brain Notion template with a Pipedream automation to take repeating task properties and automatically reset the “Done” checkbox back to unchecked and move the task to the next recurrence. It worked great for a month or so, up to Sep 10 at 2:58 PM. At 3:58 PM I started receiving this error:
APIResponseError
body failed validation: body.properties.Due.date.start should be a valid ISO 8601 date string, instead was “Invalid Date”.

    at null.buildRequestError (/pipedream/dist/code/3df4d26ed2c18866e433072c1126fd8b72aefa3c9211610d9af55ad558f3bd52/node_modules/.pnpm/@notionhq+client@2.2.9/node_modules/@notionhq/client/build/src/errors.js:162:16)
    at Client.request (/pipedream/dist/code/3df4d26ed2c18866e433072c1126fd8b72aefa3c9211610d9af55ad558f3bd52/node_modules/.pnpm/@notionhq+client@2.2.9/node_modules/@notionhq/client/build/src/Client.js:347:54)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

I don’t know where to start to fix this since all I did was follow Thomas Frank’s instructions to insert the workflow into Pipedream. I know of at least one other Ultimate Brain template user that is having this same problem & it started for them at the same time. Suggestions?
Thanks!

So in this case, I’d start by checking the event history, and click on any of the entries that has an error. Once looking at the details, identify the step with the error. At this point, check out the data being processed by the step.

In your case, there’s an property, a value that your step takes in that offends the step. This property is expected to be a date (using an standard format called ISO 8601, say just a standard way of structuring dates). However, instead of a valid date under this format, the step is receiving “Invalid Date”; this offends the step and the steps errors out.

You can use this image for you to guide: the column on the left is the event history. on the right, there is the detail of a workflow execution with an error. In my case the error is “cannot read properties of undefined (reading ‘trim’)”, you should look for the error you encounter of “body failed validation: body.properties.Due.date.start should be a valid ISO 8601 date string, instead was `“Invalid Date””