# Type conflict -- Telegraf MQTT input passes float, expects int

**URL:** <https://community.influxdata.com/t/type-conflict-telegraf-mqtt-input-passes-float-expects-int/3239>\
**Category:** Systems\
**Tags:** influxdb, telegraf, iot\
**Created:** [November 29, 2017, 7:11am UTC](https://community.influxdata.com/t/type-conflict-telegraf-mqtt-input-passes-float-expects-int/3239 "2017-11-29T07:11:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hasz](https://avatars.discourse-cdn.com/v4/letter/h/90db22/32.png) [@Hasz](https://community.influxdata.com/u/Hasz)\
**Post date:** [November 29, 2017, 7:11am UTC](https://community.influxdata.com/t/type-conflict-telegraf-mqtt-input-passes-float-expects-int/3239/1 "2017-11-29T07:11:45Z")

</div>

I have a device sending a single value thru a mosquitto server into telegraf. The data is a floating point value with 2 degrees, i.e, 24.25. However, when I pass a value into telegraf, I get this on the output:

Field type conflict, dropping conflicted points: Response Error: Status Code [400], expected [204], [partial write: field type conflict: input field “value” on measurement “mqtt\_consumer” is type float, already exists as type integer dropped=2]

My telegraf.conf looks like this

[[inputs.mqtt\_consumer]]  
servers = [“localhost:1883”]  
qos = 0  
connection\_timeout = "30s"  
topics = [  
“device/#”,  
]  
client\_id = ""  
data\_format = "value"  
data\_type = “float”

The problem is, I have no idea where else it’s defined as a integer. The word “integer” isn’t even in my config doc. Is there some sort of default I need to change, or another configuration somewhere?

---

<div class="post-metadata">

**Author:** ![daniel](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/daniel/32/142_2.png) [@daniel](https://community.influxdata.com/u/daniel)\
**Post date:** [November 29, 2017, 7:29am UTC](https://community.influxdata.com/t/type-conflict-telegraf-mqtt-input-passes-float-expects-int/3239/2 "2017-11-29T07:29:05Z")

</div>

This error is coming from InfluxDB, the field must have been stored with a different type previously.
