# Mapper\_parsing\_exception while indexing json document

**URL:** <https://discuss.elastic.co/t/mapper-parsing-exception-while-indexing-json-document/177687>\
**Category:** Elasticsearch\
**Created:** [April 20, 2019, 7:25am UTC](https://discuss.elastic.co/t/mapper-parsing-exception-while-indexing-json-document/177687 "2019-04-20T07:25:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MKU](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mku/32/48327_2.png) [@MKU](https://discuss.elastic.co/u/MKU)\
**Post date:** [April 20, 2019, 7:25am UTC](https://discuss.elastic.co/t/mapper-parsing-exception-while-indexing-json-document/177687/1 "2019-04-20T07:25:24Z")

</div>

Hi,  
**actions=[{'id':0 ,'imgurl':'abc', 'description':'abc'} , {} ,{}...]**  
I have such json arrays,  
when i run  
**bulk(es,actions,index="index\_name",doc\_type="json")** in python  
i get the following error,  
**object mapping for [imgurl] tried to parse field [imgurl] as object but found a concrete value.**

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [April 20, 2019, 8:16am UTC](https://discuss.elastic.co/t/mapper-parsing-exception-while-indexing-json-document/177687/2 "2019-04-20T08:16:32Z")

</div>

Check your mapping. The field is defined as an object and not as a text.  
May be you indexed other documents previously which don't have the same data structure.

---

<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:** [May 18, 2019, 8:22am UTC](https://discuss.elastic.co/t/mapper-parsing-exception-while-indexing-json-document/177687/4 "2019-05-18T08:22:12Z")

</div>

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