Avro error "org.apache.avro.AvroTypeException: Expected field name not found"

2017-08-09 Thread Manish Mehndiratta
Hi Team, I stripped out my avro schema file and json file to only one element and yet it continues to give me the same error. Exception in thread "main" *org.apache.avro.AvroTypeException: Expected field name not found*: TMS_ID *--- avsc file ---* { "type" : "record", "name" : "DataModel",

Re: Avro error "org.apache.avro.AvroTypeException: Expected field name not found"

2017-08-09 Thread Manish Mehndiratta
Thank you, Elliot. This worked. If my json needs to include "DataModel":, then what changes do I need to make in my avsc file? Thanks, Manish On Wed, Aug 9, 2017 at 1:46 PM, Elliot West <tea...@gmail.com> wrote: > Try: > > { > "TMS_ID" : "asdf&q