---
title: JSON_VALUE_ON_ERROR error condition
description: Documentation for the JSON\_VALUE\_ON\_ERROR error condition on Databricks
canonical_url: https://docs.databricks.com/aws/en/error-messages/json-value-on-error-error-class
---

# JSON\_VALUE\_ON\_ERROR error condition

[SQLSTATE: 2203G](https://docs.databricks.com/aws/en/error-messages/sqlstates.md#class-22-data-exception)

`<functionName>` could not extract a scalar value at path `<path>`.

## EMPTY

The path matched no value. This error was requested by the `ERROR ON EMPTY` clause.

## ERROR

The input is not valid `JSON`, the matched value is not a scalar, or it could not be cast to the `RETURNING` type. This error was requested by the `ERROR ON ERROR` clause.
