# MapperParsingException Error

**URL:** <https://discuss.elastic.co/t/mapperparsingexception-error/99014>\
**Category:** Elasticsearch\
**Created:** [August 31, 2017, 1:45pm UTC](https://discuss.elastic.co/t/mapperparsingexception-error/99014 "2017-08-31T13:45:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vishnudivakar31](https://avatars.discourse-cdn.com/v4/letter/v/58f4c7/32.png) [@vishnudivakar31](https://discuss.elastic.co/u/vishnudivakar31)\
**Post date:** [August 31, 2017, 1:45pm UTC](https://discuss.elastic.co/t/mapperparsingexception-error/99014/1 "2017-08-31T13:45:13Z")

</div>

I used POSTMAN to put mapping for index and i worked fine. Same mapping I used in Java API and is throwing MapperParsingException Error. Below is the code I am trying.

try{  
CreateIndexResponse request=esClient.admin().indices().prepareCreate(serviceIndex)  
.addMapping(serviceIndexType,serviceMap)  
.get();  
System.out.println(request);  
}catch(Exception e){  
logger.debug("Service Index Already there or Exception: "+e);

```
	}
```

---

<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:** [September 28, 2017, 1:45pm UTC](https://discuss.elastic.co/t/mapperparsingexception-error/99014/2 "2017-09-28T13:45:31Z")

</div>

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