# Mapper\_parsing\_Exception\\", \\"reason\\"=\>\\"failed to parse field \[service\] of type \[text\] in document

**URL:** <https://discuss.elastic.co/t/mapper-parsing-exception-reason-failed-to-parse-field-service-of-type-text-in-document/309476>\
**Category:** Elasticsearch\
**Created:** [July 13, 2022, 5:47am UTC](https://discuss.elastic.co/t/mapper-parsing-exception-reason-failed-to-parse-field-service-of-type-text-in-document/309476 "2022-07-13T05:47:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![skumarp7](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/skumarp7/32/108230_2.png) [@skumarp7](https://discuss.elastic.co/u/skumarp7)\
**Post date:** [July 13, 2022, 5:47am UTC](https://discuss.elastic.co/t/mapper-parsing-exception-reason-failed-to-parse-field-service-of-type-text-in-document/309476/1 "2022-07-13T05:47:28Z")

</div>

Hi Team,

Elasticsearch is throwing mapper\_parsing\_exception when we try to push logs to an index from different applications. As different applications generates logs with same field [whose type might differ], there are few cases where the records are failed to parse the field in the index.

For example:

- Failed to parse field [service]  
Index : test  
Field : service  
Value type expected : text  
Value that was accepted by Elasticsearch: cassandra  
Value that was rejected by Elasticsearch : kind=APIGatewayService, namespace=test, name=test\_object, status={status=valid}  
Occurrence of Mapper\_parsing\_exception: 56 hits (after installation time)

- Failed to parse field [responseObject.status]  
Index : audit  
Field : status  
Value type expected : text  
Actual Value(Rejected by ES) : details=cannot delete , Provisioner response timeout, sum=893981314, id=ba-9c9b-b4c6133f8eb8, status=delete-inprogress  
Occurrence : 72 hits (after installation time)  
Successful value(accepted by ES) : Success / Failure

These are couple of examples and we are facing this issue for other fields as well.  
Is the above behavior expected? Is the above approach right? Are there any possible workarounds/suggestions to avoid the above situation?

---

<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:** [August 10, 2022, 5:48am UTC](https://discuss.elastic.co/t/mapper-parsing-exception-reason-failed-to-parse-field-service-of-type-text-in-document/309476/2 "2022-08-10T05:48:17Z")

</div>

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