# MapperParsingException\[failed to parse\] \]; nested: NotXContentException

**URL:** <https://discuss.elastic.co/t/mapperparsingexception-failed-to-parse-nested-notxcontentexception/45340>\
**Category:** Elasticsearch\
**Created:** [March 24, 2016, 12:06pm UTC](https://discuss.elastic.co/t/mapperparsingexception-failed-to-parse-nested-notxcontentexception/45340 "2016-03-24T12:06:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rshaikh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rshaikh/32/10365_2.png) [@rshaikh](https://discuss.elastic.co/u/rshaikh)\
**Post date:** [March 24, 2016, 12:06pm UTC](https://discuss.elastic.co/t/mapperparsingexception-failed-to-parse-nested-notxcontentexception/45340/1 "2016-03-24T12:06:37Z")

</div>

Hi,

We have deleted and recreate it using new mapping. This was done in development environment to implement new features.

Unfortunately, after making these changes we were not able to push data to elastic cluster. We are using Elastic 2.2.

**Error message:**

[twitter][0] failed to execute bulk item (index) index {[twitter][post][], source[_na_]}  
MapperParsingException[failed to parse]; nested: NotXContentException[Compressor detection can only be called on some xcontent bytes or compressed xcontent bytes];  
at org.elasticsearch.index.mapper.DocumentParser.innerParseDocument(DocumentParser.java:163)  
at org.elasticsearch.index.mapper.DocumentParser.parseDocument(DocumentParser.java:79)

Questions:

1. Do I have PUT or POST the mapping?

2. What would be the mapping url? [http://localhost:9200/](http://localhost:9200/)//\_mapping **OR** [http://localhost:9200/](http://localhost:9200/)/\_mapping/

**Mapping JSON**  
{  
"properties": {  
"createdAt": {  
"type": "date",  
"format": "EE MMM d HH:mm:ss Z yyyy"  
},  
"deleted": {  
"type": "boolean"  
},  
"extendedMediaEntities": {  
"properties": {  
"displayURL": {  
"type": "string"  
},  
"expandedURL": {  
"type": "string"  
},  
"id": {  
"type": "string"  
},  
"mediaURL": {  
"type": "string"  
},  
"mediaURLHttps": {  
"type": "string"  
},  
"type": {  
"type": "string"  
},  
"url": {  
"type": "string"  
}  
}  
},  
"favoriteCount": {  
"type": "long"  
},  
"geoLocation": {  
"type": "geo\_point"  
},  
"hashtagEntities": {  
"properties": {  
"text": {  
"type": "string"  
}  
}  
},  
"idStr": {  
"type": "string"  
},  
"inReplyToUser": {  
"type": "string"  
},  
"lang": {  
"type": "string"  
},  
"objectType": {  
"type": "string"  
},  
"parentId": {  
"type": "string"  
},  
"place": {  
"properties": {  
"boundingBoxCoordinates": {  
"properties": {  
"latitude": {  
"type": "double"  
},  
"longitude": {  
"type": "double"  
}  
}  
},  
"boundingBoxType": {  
"type": "string"  
},  
"country": {  
"type": "string"  
},  
"countryCode": {  
"type": "string"  
},  
"fullName": {  
"type": "string"  
},  
"id": {  
"type": "string"  
},  
"name": {  
"type": "string"  
},  
"placeType": {  
"type": "string"  
},  
"url": {  
"type": "string"  
}  
}  
},  
"possiblySensitive": {  
"type": "boolean"  
},  
"retweetCount": {  
"type": "long"  
},  
"scopes": {  
"properties": {  
"placeIds": {  
"type": "string"  
}  
}  
},  
"source": {  
"properties": {  
"sourceName": {  
"type": "string"  
},  
"url": {  
"type": "string"  
}  
}  
},  
"symbolEntities": {  
"properties": {  
"text": {  
"type": "string"  
}  
}  
},  
"text": {  
"type": "string"  
}

```
}

```

}

We are using Elastic head plugin to monitor cluster, create & update index/mapping.

Support from group will be highly appreciated. I am fighting with this error since yesterday.

Thanks in advance.

Regards,  
Riyaz

---

<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:05pm UTC](https://discuss.elastic.co/t/mapperparsingexception-failed-to-parse-nested-notxcontentexception/45340/2 "2017-07-05T23:05:30Z")

</div>


