# Problems/Bug ? while updating existing teamplates

**URL:** <https://discuss.elastic.co/t/problems-bug-while-updating-existing-teamplates/122147>\
**Category:** Elasticsearch\
**Created:** [March 1, 2018, 8:17pm UTC](https://discuss.elastic.co/t/problems-bug-while-updating-existing-teamplates/122147 "2018-03-01T20:17:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kasi](https://avatars.discourse-cdn.com/v4/letter/k/e19b73/32.png) [@kasi](https://discuss.elastic.co/u/kasi)\
**Post date:** [March 1, 2018, 8:17pm UTC](https://discuss.elastic.co/t/problems-bug-while-updating-existing-teamplates/122147/1 "2018-03-01T20:17:42Z")

</div>

Hi,

Use Case: Have an Elastic Search template gdp\_es1 which has three fields of type integer,interger,string  
col1: integer, col2:integer, col3:string, there is a corresponding index that is created for this templates  
gdp\_es1\_2018.03.01, when I try to update the template by adding another field (string) i am seeing the  
following exception,

"message": "Unable to update mapping for event type: gdp\_es1 due to: {"root\_cause":[  
{"type":"not\_x\_content\_exception","reason":"not\_x\_content\_exception: Compressor detection can only be called on some xcontent bytes or compressed xcontent bytes"}

the template gdp\_es1 has the new column added, but when I post data to the existing index gdp\_es1\_2018.03.01, it is ignoring the newly added column .

Is there no way to update an existing template with data (index) with a new column ?

Thanks,

Kasi

---

<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:** [March 29, 2018, 8:17pm UTC](https://discuss.elastic.co/t/problems-bug-while-updating-existing-teamplates/122147/2 "2018-03-29T20:17:53Z")

</div>

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