# I am updated index template but i am getting error

**URL:** <https://discuss.elastic.co/t/i-am-updated-index-template-but-i-am-getting-error/198571>\
**Category:** Elasticsearch\
**Created:** [September 8, 2019, 5:25pm UTC](https://discuss.elastic.co/t/i-am-updated-index-template-but-i-am-getting-error/198571 "2019-09-08T17:25:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gnanendra](https://avatars.discourse-cdn.com/v4/letter/g/65b543/32.png) [@Gnanendra](https://discuss.elastic.co/u/Gnanendra)\
**Post date:** [September 8, 2019, 5:25pm UTC](https://discuss.elastic.co/t/i-am-updated-index-template-but-i-am-getting-error/198571/1 "2019-09-08T17:25:04Z")

</div>

Hi,  
i am updated elasticsearch7.3.0 and update index template but i am getting below error.

## Error :

[2019-09-08 11:55:34,692] ERROR WorkerSinkTask{id=elasticSearch-sink-3} Task threw an uncaught and unrecoverable exception. Task is being killed and will not recover until manually restarted. (org.apache.kafka.connect.runtime.WorkerSinkTask)  
org.apache.kafka.connect.errors.ConnectException: Bulk request failed: [{"type":"illegal\_argument\_exception","reason":"Rejecting mapping update to [oc-events-acquire-2019.09.08] as the final mapping would have more than 1 type: [\_doc, elasticSearch-sink]"}, {"type":"illegal\_argument\_exception","reason":"Rejecting mapping update to [oc-events-acquire-2019.09.08] as the final mapping would have more than 1 type: [\_doc, elasticSearch-sink]"}, {"type":"illegal\_argument\_exception","reason":"Rejecting mapping update to [oc-events-acquire-2019.09.08] as the final mapping would have more than 1 type: [\_doc, elasticSearch-sink]"}, {"type":"illegal\_argument\_exception","reason":"Rejecting mapping update to [oc-events-acquire-2019.09.08] as the final mapping would have more than 1 type: [\_doc, elasticSearch-sink]"}, {"type":"illegal\_argument\_exception","reason":"Rejecting mapping update to [oc-events-acquire-2019.09.08] as the final mapping would have more than 1 type: [\_doc, elasticSearch-sink]"}]  
at io.confluent.connect.elasticsearch.bulk.BulkProcessor$BulkTask.execute(BulkProcessor.java:353)  
at io.confluent.connect.elasticsearch.bulk.BulkProcessor$BulkTask.call(BulkProcessor.java:326)  
at io.confluent.connect.elasticsearch.bulk.BulkProcessor$BulkTask.call(BulkProcessor.java:312)  
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)  
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)  
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)  
at java.base/java.lang.Thread.run(Thread.java:835)  
[2019-09-08 11:55:34,692] WARN WorkerSinkTask{id=elasticSearch-sink-3} Offset commit failed during close (org.apache.kafka.connect.runtime.WorkerSinkTask)  
[2019-09-08 11:55:34,692] ERROR WorkerSinkTask{id=elasticSearch-sink-3} Commit of offsets threw an unexpected exception for sequence number 1: null (org.apache.kafka.connect.runtime.WorkerSinkTask)

## my index template:

"mappings": {  
"properties": {  
"AlertGroup": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
},  
"AlertKey": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
},  
"FirstOccurrence": {  
"type": "date"  
},  
"Identifier": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
},  
"LastOccurrence": {  
"type": "date"  
},  
"Manager": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
},  
"Node": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
},  
"NodeAlias": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
},  
"Severity": {  
"type": "long"  
},  
"Summary": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
}  
}  
}

please help me.

Thanks,  
gnanendra

---

<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:** [October 6, 2019, 5:36pm UTC](https://discuss.elastic.co/t/i-am-updated-index-template-but-i-am-getting-error/198571/2 "2019-10-06T17:36:19Z")

</div>

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