### 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') ](
) .