# Failed to reindex nested fields

**URL:** <https://discuss.elastic.co/t/failed-to-reindex-nested-fields/235624>\
**Category:** Elasticsearch\
**Created:** [June 3, 2020, 7:26pm UTC](https://discuss.elastic.co/t/failed-to-reindex-nested-fields/235624 "2020-06-03T19:26:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Christine\_Li](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christine_li/32/45327_2.png) [@Christine\_Li](https://discuss.elastic.co/u/Christine_Li)\
**Post date:** [June 3, 2020, 7:26pm UTC](https://discuss.elastic.co/t/failed-to-reindex-nested-fields/235624/1 "2020-06-03T19:26:50Z")

</div>

I have an index has

```auto
{
  "mappings":{
       "properties": {
            "Schema": {
                    "type":"nested",
                    "properties":{
                    	"Column_Name": {"type":"keyword"}
                    }
            }
       }
  }
}

```

I tried to use reindex to change Schema.Column\_Name to Schema.Attribute\_Name with the following script:

```auto
"script":{
		"inline": "ctx._source['Schema.Column_Name'] = ctx._source.remove('Schema.Attribute_Name')"
	}

```

But I got error

```auto
 "type": "mapper_parsing_exception",
 "reason": "Cannot add a value for field [Schema.Column_Name] since one of the intermediate objects is mapped as a nested object: [Schema]"

```

Could someone help? Whether reindex of a nested field is supported?

---

<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:** [July 1, 2020, 7:26pm UTC](https://discuss.elastic.co/t/failed-to-reindex-nested-fields/235624/2 "2020-07-01T19:26:52Z")

</div>

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