Cannot convert undefined or null to object [workfl...
# support
c
getting this error on my workflows. Not sure what can be done to change this. It is a simple workflow, but does use and API call to trigger an n8n flow at the end of the VAPI workflow
v
The error "Cannot convert undefined or null to object" usually means some data expected by your VAPI workflow is missing or not properly passed from a previous step or API call. To fix this, add a check before using any object, for example:
Copy code
javascript
if (data && typeof data === 'object') {
  // Safe to use data here
}
Review your workflow steps, especially after the API call, to ensure all required data is present and defined before you use it. Sources: - [Vapi workflow error "Cannot convert undefined or null to object"](https://discord.com/channels/1211482211119796234/1328923059905630238) - [handling undefined or null data in Vapi API calls](https://discord.com/channels/1211482211119796234/1328923059905630238)
k
Hey, Could you please schedule a brief call at your convenience so we can discuss this matter in detail? Kindly use the following link to book a suitable time: .
m
Hey did you guys reslovled this issue? I have the same problem
h
same isue
us idk how to solve😐
k
Please create a new workflow. Any old workflows with deprecated features may be causing this error.