# Why there is so many MapperParsingException at TransportShardBulkAction

**URL:** <https://discuss.elastic.co/t/why-there-is-so-many-mapperparsingexception-at-transportshardbulkaction/160271>\
**Category:** APM\
**Created:** [December 11, 2018, 1:57am UTC](https://discuss.elastic.co/t/why-there-is-so-many-mapperparsingexception-at-transportshardbulkaction/160271 "2018-12-11T01:57:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![toughrogrammer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/toughrogrammer/32/38160_2.png) [@toughrogrammer](https://discuss.elastic.co/u/toughrogrammer)\
**Post date:** [December 11, 2018, 1:57am UTC](https://discuss.elastic.co/t/why-there-is-so-many-mapperparsingexception-at-transportshardbulkaction/160271/1 "2018-12-11T01:57:06Z")

</div>

I'm using python 3.0.4 agent and APM server is 6.5.1.  
It looks like apm agent sent message that is not valid mapping.  
But as I saw python agent source code, `to_dict` method of `Span` class is fine.  
And I can discover span messages well also.

Here is error trace example.

```
[2018-12-11T01:50:32,268][DEBUG][o.e.a.b.TransportShardBulkAction] [ip-172-31-15-57] [apm-6.5.1-span-2018.12.11][15] failed to execute bulk item (index) index {[apm-6.5.1-span-2018.12.11][doc][WyD1mmcBcjb07ngVYyA4], source[n/a, actual length: [5.1kb], max length: 2kb]}
org.elasticsearch.index.mapper.MapperParsingException: object mapping for [context.service] tried to parse field [service] as object, but found a concrete value
```

---

<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:** [December 31, 2018, 9:57pm UTC](https://discuss.elastic.co/t/why-there-is-so-many-mapperparsingexception-at-transportshardbulkaction/160271/2 "2018-12-31T21:57:11Z")

</div>

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