# Error indexing using xml plugin

**URL:** <https://discuss.elastic.co/t/error-indexing-using-xml-plugin/223774>\
**Category:** Logstash\
**Created:** [March 16, 2020, 1:54pm UTC](https://discuss.elastic.co/t/error-indexing-using-xml-plugin/223774 "2020-03-16T13:54:47Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [March 16, 2020, 5:15pm UTC](https://discuss.elastic.co/t/error-indexing-using-xml-plugin/223774/2 "2020-03-16T17:15:17Z")

</div>

> [@fionamacd](#):
>
> "object mapping for [xml\_content.Request.TranslatedMessage] tried to parse field [null] as object, but found a concrete value"

Your mapping says that [xml\_content][Request][TranslatedMessage] should be an object containing multiple fields. In elasticsearch a field can be either an object or a value, it cannot be an object in some documents and a value in others. So any events where [xml\_content][Request][TranslatedMessage] is a concrete value rather than an object will get rejected. The solution is to detect that it is a value and rename it so that the value is field within it instead.

---

_[View the full topic](https://discuss.elastic.co/t/error-indexing-using-xml-plugin/223774)._
