---
title: MALFORMED_AVRO_MESSAGE error condition
description: Documentation for the MALFORMED\_AVRO\_MESSAGE error condition on Databricks
canonical_url: https://docs.databricks.com/gcp/en/error-messages/malformed-avro-message-error-class
---

# MALFORMED\_AVRO\_MESSAGE error condition

[SQLSTATE: KD000](https://docs.databricks.com/gcp/en/error-messages/sqlstates.md#class-kd-datasource-specific-errors)

Malformed Avro messages are detected in message deserialization. Parse Mode: `<mode>`. To process malformed Avro message as null result, try setting the option 'mode' as '`PERMISSIVE`'.

## AVRO\_DECODE\_FAILED

(Underlying failure originated from the Avro library or a malformed binary record.)

## INVALID\_MAGIC\_BYTE

(The Schema Registry wire-format magic byte is invalid; expected 0x00.)

## IO\_ERROR

(Underlying failure originated from an IO operation.)

## SCHEMA\_REGISTRY\_FAILED

(Underlying failure originated from the Schema Registry client.)
