Skip to main content

I’m getting a validation error when i try to log my typeform responses into a notion database. I was trying to integrate a complex survey for my client, but when this failed, I created my own free typeform account and made a simple 4-question test survey and am receiving the same error. the integration is showing in Notion and seems successful in the Typeform connect section as well. here’s the message of the error:

"body failed validation. Fix one: body.properties.title.0.id should be defined, instead was `undefined`. body.properties.title.0.name should be defined, instead was `undefined`. body.properties.title.0.start should be defined, instead was `undefined`."

Hi @grahamgrilli thanks for stopping by the community! Do you happen to have fields that aren’t required? If so, the error is most likely stating that empty data is being pushed to Notion, and those fields will need to be set to required. 


Hi! Previously I didn’t have the responses required but i just changed them all to required, unlinked the integration and linked it again and remapped the responses, and i’m still getting the 400 error, both with data i input and with the test request data.

is there any other setup that i might have missed? let me know if you need any other info and thank you for the response!


Hi @grahamgrilli Ah, shoot. Would you mind deleting the integration and adding it back, this time mapping question by question until you receive the error? This will help us pinpoint which question specifically is causing the issue. Thanks again!


ok great,  i’ve been able to pinpoint the problem! it’s the number field that’s getting a validation error.

the date and two strings work perfectly.

it works if i change the data type in my notion database to a string instead of a number - even while passing a number from the survey. it’s only when the notion column is a number type that i’m getting the error. should i just pass numbers as a string?



 


Hey @grahamgrilli 
I am the developer working on our Notion integration.
Indeed there is an issue with number columns.. 🤔
I reached out to Notion team to see if they could provide some guidance.

Best,
Nicolas


ok thank you! I’ve set it up as all text inputs for the time being.
once the employees input all the data into Notion we can switch data types on that side.

it becomes tricky when new data are added but obviously this is all a work in progress. thank you guys for all your help on this! :pray:  My client works with typeform a lot so i look forward to getting more familiar with everything


Hi @picsoung have you happened to hear back from Notion at all? :grin:


Hey :)
I pushed an update last Friday, and now number columns should work.
Let us know @grahamgrilli how it goes.


@picsoung thank you it’s working great now! !i’ll go update the blog post i just made about the integration!!]

i’m not sure if i can unmark your previous answer as the solution and update to this one - i’m looking but i don’t see anything at first glance but if i find it i will. thanks again for the heads up! :pray::muscle:


Reply