# Mapping fields xxx cannot be replaced during template composition

**URL:** <https://discuss.elastic.co/t/mapping-fields-xxx-cannot-be-replaced-during-template-composition/258938>\
**Category:** Elasticsearch\
**Created:** [December 17, 2020, 2:44am UTC](https://discuss.elastic.co/t/mapping-fields-xxx-cannot-be-replaced-during-template-composition/258938 "2020-12-17T02:44:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![amingo123](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/amingo123/32/81012_2.png) [@amingo123](https://discuss.elastic.co/u/amingo123)\
**Post date:** [December 17, 2020, 2:44am UTC](https://discuss.elastic.co/t/mapping-fields-xxx-cannot-be-replaced-during-template-composition/258938/1 "2020-12-17T02:44:06Z")

</div>

When i try to create new index as below,  
PUT /message202010  
{  
"mappings": {  
"properties": {  
"CrashStatus": {  
"type": "keyword"}}}}

i got the error message:  
{  
"error" : {  
"root\_cause" : [  
{  
"type" : "illegal\_argument\_exception",  
"reason" : "mapping fields [CrashStatus] cannot be replaced during template composition"  
}  
],  
"type" : "illegal\_argument\_exception",  
"reason" : "mapping fields [CrashStatus] cannot be replaced during template composition"  
},  
"status" : 400  
}

I tried index names: 'messag2020', 'xmessage2020' and any other names are not begin with 'message' can be created successfully. Or change the property name CrashStatus can work as well. CrashStatus field exists in other 'message' index.

---

<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:** [January 14, 2021, 2:44am UTC](https://discuss.elastic.co/t/mapping-fields-xxx-cannot-be-replaced-during-template-composition/258938/2 "2021-01-14T02:44:26Z")

</div>

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