# Adds a new field inside in the existing index

**URL:** <https://discuss.elastic.co/t/adds-a-new-field-inside-in-the-existing-index/292030>\
**Category:** Elasticsearch\
**Created:** [December 15, 2021, 5:42pm UTC](https://discuss.elastic.co/t/adds-a-new-field-inside-in-the-existing-index/292030 "2021-12-15T17:42:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rav3n](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rav3n/32/98768_2.png) [@rav3n](https://discuss.elastic.co/u/rav3n)\
**Post date:** [December 15, 2021, 5:42pm UTC](https://discuss.elastic.co/t/adds-a-new-field-inside-in-the-existing-index/292030/1 "2021-12-15T17:42:34Z")

</div>

Hey there,

I'm trying to add a new field to the already existing index but every time I get this error :

```auto
{
  "error" : {
    "root_cause" : [
      {
        "type" : "mapper_exception",
        "reason" : "the [include_in_parent] parameter can't be updated on a nested object mapping"
      }
    ],
    "type" : "mapper_exception",
    "reason" : "the [include_in_parent] parameter can't be updated on a nested object mapping"
  },
  "status" : 500
}

```

The "type" in which I want to add a new field is of type "nested" tho.  
Any one can look into this and tell me what could be the reason for such error and how to resolve it ?

Thank you.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [December 20, 2021, 1:12am UTC](https://discuss.elastic.co/t/adds-a-new-field-inside-in-the-existing-index/292030/2 "2021-12-20T01:12:16Z")

</div>

It'd be helpful if you could please share what you have and what you are trying to add.

---

<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:** [January 17, 2022, 1:13am UTC](https://discuss.elastic.co/t/adds-a-new-field-inside-in-the-existing-index/292030/3 "2022-01-17T01:13:06Z")

</div>

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