# Cannot create index with mapping or add mapping on 1.3.9

**URL:** <https://discuss.elastic.co/t/cannot-create-index-with-mapping-or-add-mapping-on-1-3-9/40267>\
**Category:** Elasticsearch\
**Created:** [January 27, 2016, 5:02pm UTC](https://discuss.elastic.co/t/cannot-create-index-with-mapping-or-add-mapping-on-1-3-9/40267 "2016-01-27T17:02:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pierre\_Carlson](https://avatars.discourse-cdn.com/v4/letter/p/90ced4/32.png) [@Pierre\_Carlson](https://discuss.elastic.co/u/Pierre_Carlson)\
**Post date:** [January 27, 2016, 5:02pm UTC](https://discuss.elastic.co/t/cannot-create-index-with-mapping-or-add-mapping-on-1-3-9/40267/1 "2016-01-27T17:02:58Z")

</div>

We recently upgraded our ES servers from 1.3.1 to 1.3.9. The migration/update was successful and everything in our existing indices is running great. However, we are getting a an error when trying to create a new index with a mapping or add a mapping to an existing index. Even the very simple create from the docs is failing.

curl -k -XPOST $BASE/test -d '{  
"settings" : {  
"number\_of\_shards" : 1  
},  
"mappings" : {  
"type1" : {  
"\_source" : { "enabled" : false },  
"properties" : {  
"field1" : { "type" : "string", "index" : "not\_analyzed" }  
}  
}  
}  
}'

Results in:  
{"error":"RemoteTransportException[[svt4es02][inet[/9.37.16.10:51000]][indices/create]]; nested: MapperParsingException[mapping [type1]]; nested: ElasticsearchParseException[Failed to parse content to map]; nested: JsonParseException[Unexpected character (':' (code 58)): was expecting comma to separate OBJECT entries\n at [Source: UNKNOWN; line: 1, column: 86]]; ","status":400}

JVM details:  
$ /usr/java7\_64/jre/bin/java -version  
java version "1.7.0"  
Java(TM) SE Runtime Environment (build pap6470sr9fp20-20151106\_01(SR9 FP20))  
IBM J9 VM (build 2.6, JRE 1.7.0 AIX ppc64-64 Compressed References 20151019\_272770 (JIT enabled, AOT enabled)

---

<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:** [July 5, 2017, 11:21pm UTC](https://discuss.elastic.co/t/cannot-create-index-with-mapping-or-add-mapping-on-1-3-9/40267/2 "2017-07-05T23:21:01Z")

</div>


