# Mapping Conflict in field type

**URL:** <https://discuss.elastic.co/t/mapping-conflict-in-field-type/158552>\
**Category:** Elasticsearch\
**Created:** [November 28, 2018, 10:59am UTC](https://discuss.elastic.co/t/mapping-conflict-in-field-type/158552 "2018-11-28T10:59:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sanj](https://avatars.discourse-cdn.com/v4/letter/s/e274bd/32.png) [@Sanj](https://discuss.elastic.co/u/Sanj)\
**Post date:** [November 28, 2018, 10:59am UTC](https://discuss.elastic.co/t/mapping-conflict-in-field-type/158552/1 "2018-11-28T10:59:09Z")

</div>

Hi Team,  
I'm facing mapping conflicts while trying to index a data in Elasticsearch.

The data contains a filed with dots like mentioned below

```
replica.tps.Count: 27359,
sync.tps.FiveMinuteRate: 1101.935848853454,
replicator.buffer.size: 0,
sync.tps.OneMinuteRate: 1377.1610123924681,
replica.tps.FifteenMinuteRate: 4.751466041679348e-45,
replica.status: "AVAILABLE",
sync.tps.MeanRate: 1126.2813387804133,
replica.tps.MeanRate: 0.005062168298549558,
replica.tps.OneMinuteRate: 2.964393875e-314,
replica.tps.FiveMinuteRate: 4.9074475867813965e-135,
sync.tps.FifteenMinuteRate: 624.315144886645,
sync.tps.Count: 798389,
sync.status: "COMPLETE"

```

And I'm getting the following error

> Could not index event to Elasticsearch. {:status=\>400, :action=\>["index", {:\_id=\>nil, :\_index=\>"sample\_terracota", :\_type=\>"doc", :\_routing=\>nil}, #LogStash::Event:0x1716ca7], :response=\>{"index"=\>{"\_index"=\>"sample\_terracota", "\_type"=\>"doc", "\_id"=\>"dL7RWWcBvluDK8SsM5sl", "status"=\>400, "error"=\>{"type"=\>"illegal\_argument\_exception", "reason"=\>"mapper [\nreplica] of different type, current\_type [text], merged\_type [ObjectMapper]"}}}}

Is it because of the dots in the fieldname ? Is there any solution or work around for this issue?

Thank you in advance.

---

<div class="post-metadata">

**Author:** ![zz\_hello](https://avatars.discourse-cdn.com/v4/letter/z/3bc359/32.png) [@zz\_hello](https://discuss.elastic.co/u/zz_hello)\
**Post date:** [November 29, 2018, 6:11am UTC](https://discuss.elastic.co/t/mapping-conflict-in-field-type/158552/2 "2018-11-29T06:11:17Z")

</div>

have you read the last sentence of the error?because you were already having a type(text), in version 6.x, one index can only have one type

---

<div class="post-metadata">

**Author:** ![Sanj](https://avatars.discourse-cdn.com/v4/letter/s/e274bd/32.png) [@Sanj](https://discuss.elastic.co/u/Sanj)\
**Post date:** [November 29, 2018, 6:30am UTC](https://discuss.elastic.co/t/mapping-conflict-in-field-type/158552/3 "2018-11-29T06:30:28Z")

</div>

@zz_hello

Thank you of your response.

I even tried to parse the data with a new index pattern. Even then i was receiving the same error.

---

<div class="post-metadata">

**Author:** ![zz\_hello](https://avatars.discourse-cdn.com/v4/letter/z/3bc359/32.png) [@zz\_hello](https://discuss.elastic.co/u/zz_hello)\
**Post date:** [November 29, 2018, 7:46am UTC](https://discuss.elastic.co/t/mapping-conflict-in-field-type/158552/4 "2018-11-29T07:46:46Z")

</div>

i have tried in my pc with es6.4 and there is no problem.here is the code.  
`PUT test1129/doc/1 { "replica.tps.Count":27359, "sync.tps.FiveMinuteRate": 1101.935848853454, "replicator.buffer.size": 0, "sync.tps.OneMinuteRate": 1377.1610123924681, "replica.tps.FifteenMinuteRate": 4.751466041679348e-45, "replica.status": "AVAILABLE", "sync.tps.MeanRate": 1126.2813387804133, "replica.tps.MeanRate": 0.005062168298549558, "replica.tps.OneMinuteRate": 2.964393875e-314, "replica.tps.FiveMinuteRate": 4.9074475867813965e-135, "sync.tps.FifteenMinuteRate": 624.315144886645, "sync.tps.Count": 798389, "sync.status": "COMPLETE" }`

---

<div class="post-metadata">

**Author:** ![Sanj](https://avatars.discourse-cdn.com/v4/letter/s/e274bd/32.png) [@Sanj](https://discuss.elastic.co/u/Sanj)\
**Post date:** [November 29, 2018, 9:17am UTC](https://discuss.elastic.co/t/mapping-conflict-in-field-type/158552/5 "2018-11-29T09:17:38Z")

</div>

@zz_hello  
That's Weird. Maybe I'll give it an another try and check again whether I'm getting this issue again.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 27, 2018, 9:25am UTC](https://discuss.elastic.co/t/mapping-conflict-in-field-type/158552/6 "2018-12-27T09:25:22Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
