Avro schema to influx - Different data type

Dear community,

I am begineer on Nifi and Avro topic. I am trying to do the following exercise with my own data and I don’t know how to manage the Avro schema when the field value datatype sometimes is a number, sometimes a string.

https://www.influxdata.com/blog/building-a-data-stream-for-iot-with-nifi-and-influxdb/

I have googled a lot without success.

Thank you very much.

So you’re saying that for a specific field received from the sever the value is randomly either a number or string? Are these strings info or error messages? You could validate the field values in the flow file using one of the processors.