> ## Documentation Index
> Fetch the complete documentation index at: https://docs.langchain.com/llms.txt
> Use this file to discover all available pages before exploring further.

# OUTPUT_PARSING_FAILURE

An [output parser](https://reference.langchain.com/python/langchain_core/output_parsers/) was unable to handle model output as expected.

<Note>
  Some prebuilt constructs like legacy LangChain agents and chains may use output parsers internally, so you may see this error even if you're not visibly instantiating and using an output parser.
</Note>

## Troubleshooting

* Consider using tool calling or other structured output techniques if possible without an output parser to reliably output parseable values.
* Add more precise formatting instructions to your prompt.
* If you are using a smaller or less capable model, try using a more capable one.

***

<div className="source-links">
  <Callout icon="terminal-2">
    [Connect these docs](/use-these-docs) to Claude, VSCode, and more via MCP for real-time answers.
  </Callout>

  <Callout icon="edit">
    [Edit this page on GitHub](https://github.com/langchain-ai/docs/edit/main/src/oss/langchain/errors/OUTPUT_PARSING_FAILURE.mdx) or [file an issue](https://github.com/langchain-ai/docs/issues/new/choose).
  </Callout>
</div>
