'InputDeserializerError.InvalidData' | Invalid Avro Format, drop invalid record

Surya Agarwal 21 Reputation points
2021-06-02T06:41:55.377+00:00

I am sending AVRO messages using Java Kafka API to event hub, and using stream analytics to route the data to BLOB Storage.

Although after successfully producing the avro message to eventhub, under ASA logs, I can see Diagnostic error.

"ErrorCode": "DiagnosticMessage",  
        "Message": "First Occurred: 6/2/2021 6:13:03 AM | Resource Name: ehubin2 | Message: Source 'ehubin2' had 1 occurrences of kind 'InputDeserializerError.InvalidData' between processing times '2021-06-02T06:13:03.4028487Z' and '2021-06-02T06:13:03.4184861Z'. Invalid Avro Format, drop invalid record.",  
        "Type": "DiagnosticMessage",  

Because of this error, no output to BLOB storage. I am successfully able to read using kafka-avro-console-consumer
101653-image.png

The reason could be the schema error or Deserilizer issue, But I dont know how to define the schema registry, as I need a schema-registry URL to create subject schema version (to auto update in case of schema change) which I dont find in Eventhub schema registry.

On high level,

  1. 'InputDeserializerError.InvalidData' | Invalid Avro Format, drop invalid record in ASA
  2. Schema Registry issue to process avro message in ASA
Azure Stream Analytics
Azure Stream Analytics
An Azure real-time analytics service designed for mission-critical workloads.
333 questions
{count} votes