Analysis StructuredData error
# support
j
All of our agents structured data output is failing with anthropic & bedrock errors. We do not specify the LLM for the structured data plan, but we do have a schema passed to it. Example call ID: 019cb0ea-a6bb-722d-a9ef-fa91582ddf1c Timestamp: ongoing, but from the example: Mar 02, 15:38:18.257 PST Response Expected: structured data output Response received: "N/A" with errors in the call logs JSON from the call log: { "id": "log-1048", "level": 50, "time": 1772494937269, "timestamp": 1772494937269000000, "severityText": "ERROR", "severityNumber": 17, "body": "Analysis StructuredData error", "attributes": { "category": "system", "callId": "019cb0ea-a6bb-722d-a9ef-fa91582ddf1c", "orgId": "f1dd79b2-4b8f-4897-a836-723dd0aa1366", "provider": "unknown", "error": { "message": "All model completion attempts failed. Last error: TypeError: Cannot read properties of undefined (reading '0')" }, "metrics": { "latencyMs": 33512 } } } https://cdn.discordapp.com/attachments/1478178279453098004/1478178280396820521/s-log.png?ex=69a7744d&is=69a622cd&hm=3aa67d5808dcc4a50ecfef64d8913137354c8e9453548161dd508c331c270f16& https://cdn.discordapp.com/attachments/1478178279453098004/1478178281223229521/s-output.png?ex=69a7744d&is=69a622cd&hm=3d65da5c4c4f39f3caf4e6bf5c881e026546fedd6a015f1d79b472caa6ece688&
j
Thanks for sharing the logs, that helps a lot. It looks like the structured data step doesn’t have an explicit LLM assigned, so VAPI is falling back to Anthropic/Bedrock, and the response isn’t returning valid structured JSON. That’s why you’re seeing “N/A” and the undefined error. I’d recommend explicitly setting the model for the structured data plan and confirming it supports schema/JSON output. Were you expecting it to use a specific model, or relying on the default fallback behavior? @Jothar73
c
Hi, Root cause: When no custom LLM was specified for the analysis plan, model resolution returned
undefined
, causing provider attempts (Anthropic → Bedrock → Azure) to fail with the error “Cannot read properties of undefined (reading '0')”. Fix: The system now defaults to Anthropic (claude-sonnet-4-5-20250929) when no model is specified for structured data, summary, or success evaluation analysis. Best regards, Oshi Raghav Customer Support Team | Vapi