https://retellai.com/?utm_source=discord&utm_medium=seo logo
What does this error usually mean in book_appointm...
# ❓・ai-evy-support
j
@AI Evy What does this error usually mean in book_appointment_cal function : {"error":"Cannot read properties of null (reading 'length')"}
a
Thanks for tagging me @joyful_chipmunk_03581. I'll look through relevant sources and get back to you shortly.
### Answer --- The error
{"error":"Cannot read properties of null (reading 'length') "}
in the
book_appointment_cal
function typically indicates that the function is trying to access the
length
property of a value that is
null
[(1) ]() . This often happens when required parameters are missing or incorrectly formatted . Based on community reports, common causes include [(1) ]() [(2) ]() : 1. Missing or incorrectly configured Cal.com event settings - If you've made changes to your Cal.com event (like removing location fields) , the function may not update properly [(2) ]() 2. Stale function configuration - Sometimes the Retell function doesn't sync with Cal.com changes Recommended troubleshooting steps: - Delete and recreate the function - Community members report this often resolves sync issues between Retell and Cal.com - Verify all required parameters are being passed correctly (time, name, email, timezone) [(1) ]() - Check your Cal.com event configuration - Ensure custom fields match what the function expects [(2) ]() If the issue persists after recreating the function, I'd recommend checking the call logs to see exactly what parameters are being sent to the
book_appointment_cal
tool [(1) ]() . **
​ To learn more, see the sources I considered: [[1] Book Appointment fails (Axios Error) when there is no availability](https://discord.com/channels/1186424376300679209/1431689539222769704) [[2] book_appointment error](https://discord.com/channels/1186424376300679209/1306686337533083679) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.