# Mapping Create Error using version 6.3

**URL:** <https://discuss.elastic.co/t/mapping-create-error-using-version-6-3/233725>\
**Category:** Elasticsearch\
**Created:** [May 21, 2020, 11:04am UTC](https://discuss.elastic.co/t/mapping-create-error-using-version-6-3/233725 "2020-05-21T11:04:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rishabh\_jain](https://avatars.discourse-cdn.com/v4/letter/r/aeb1de/32.png) [@rishabh\_jain](https://discuss.elastic.co/u/rishabh_jain)\
**Post date:** [May 21, 2020, 11:04am UTC](https://discuss.elastic.co/t/mapping-create-error-using-version-6-3/233725/1 "2020-05-21T11:04:30Z")

</div>

{  
"settings": {  
"analysis": {  
"filter": {  
"substring": {  
"type": "nGram",  
"min\_gram": "2",  
"max\_gram": "50"  
}  
},  
"analyzer": {  
"str\_index\_analyzer": {  
"filter": [  
"lowercase",  
"substring"  
],  
"tokenizer": "standard"  
},  
"str\_search\_analyzer": {  
"filter": [  
"lowercase"  
],  
"tokenizer": "standard"  
}  
},  
"normalizer": {  
"lowercase\_normalizer": {  
"type": "custom",  
"filter": [  
"lowercase"  
]  
}  
}  
}  
},  
"mappings": {  
"test": {  
"dynamic\_date\_formats": [  
"strict\_date\_optional\_time"  
],  
"dynamic\_templates": [  
{  
"strings": {  
"match\_mapping\_type": "string",  
"mapping": {  
"type": "keyword"  
}  
},  
"longs": {  
"match\_mapping\_type": "long",  
"mapping": {  
"type": "keyword"  
}  
},  
"doubles": {  
"match\_mapping\_type": "double",  
"mapping": {  
"type": "keyword"  
}  
}  
}  
],  
"properties": {  
"name": {  
"type": "text",  
"analyzer": "str\_index\_analyzer",  
"search\_analyzer": "str\_search\_analyzer",  
"fields": {  
"keyword": {  
"type": "keyword"  
}  
}  
},  
"city": {  
"type": "keyword",  
"fields": {  
"normalize": {  
"type": "keyword",  
"normalizer": "lowercase\_normalizer"  
}  
}  
},  
"state": {  
"type": "keyword",  
"fields": {  
"normalize": {  
"type": "keyword",  
"normalizer": "lowercase\_normalizer"  
}  
}  
}  
}  
}  
}  
}

Error Message is:

"error": {  
"root\_cause": [  
{  
"type": "mapper\_parsing\_exception",  
"reason": "A dynamic template must be defined with a name"  
}  
],  
"type": "mapper\_parsing\_exception",  
"reason": "Failed to parse mapping [test]: A dynamic template must be defined with a name",  
"caused\_by": {  
"type": "mapper\_parsing\_exception",  
"reason": "A dynamic template must be defined with a name"  
}  
},  
"status": 400  
}

---

<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:** [June 18, 2020, 11:05am UTC](https://discuss.elastic.co/t/mapping-create-error-using-version-6-3/233725/3 "2020-06-18T11:05:31Z")

</div>

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