https://retellai.com/?utm_source=discord&utm_medium=seo logo
Why is this showing up and what does it mean
# ❓・ai-evy-support
m
@AI Evy Why is this showing up and what does it mean? I am trying to run a simulation and I'm not quite sure what is missing that prevents me from running a test. All variables have been provided, so what else is wrong TypeError: cannot read properties of null (reading "toString"
a
Thanks for tagging me @maha387. I'll look through relevant sources and get back to you shortly.
### Answer The error message TypeError: cannot read properties of null (reading "toString") means that somewhere in your simulation, the code is trying to call the toString method on a value that is currently null. This usually indicates that a required variable or object is missing or not initialized at the point where the simulation expects it. A similar error has been discussed in the context of Retell AI agents, where the frontend attempted to access a property of an object that was unexpectedly null [(1) ]() . This can happen if, for example, an agent or one of its expected properties is not set up properly, or if something in the simulation flow is returning null when a value is needed. To resolve this: - Double-check that all required variables, states, and objects expected by your simulation or agent are fully initialized and not null. - Review any custom logic to ensure it doesn't inadvertently unset or fail to set a required value. - If the issue persists, try simplifying your simulation setup to isolate which specific variable or object is null at the time of the error. For more details, see the discussion here: [Cannot read properties of null (reading 'states') ]() .
​ To learn more, see the sources I considered: [[1] Cannot read properties of null (reading 'states')](https://discord.com/channels/1186424376300679209/1382732530448470108) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.