# Nested fields Issues - Remove / rename

**URL:** https://discuss.elastic.co/t/nested-fields-issues-remove-rename/377447
**Category:** Elasticsearch
**Tags:** painless, ingest-pipeline
**Created:** [April 23, 2025, 2:18pm UTC](https://discuss.elastic.co/t/nested-fields-issues-remove-rename/377447 "2025-04-23T14:18:36Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![sai\_ravi\_shankar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sai_ravi_shankar/32/120767_2.png) [@sai\_ravi\_shankar](https://discuss.elastic.co/u/sai_ravi_shankar)
#### Post date: [April 23, 2025, 2:18pm UTC](https://discuss.elastic.co/t/nested-fields-issues-remove-rename/377447/1 "2025-04-23T14:18:36Z")

</div>

Hi,

Can someone help me on the below issue.

I have a nested object where i am unable to rename or remove such fields. Below is the format of such field.

test.test1.test2.test3.test4.test5

It has 4 objects and 1 field.

I have used the rename, remove and painless script processor,but there is no use. Getting the below error.

failed with message Illegal list shortcut value [test4].

Thanks in Advance

---

<div class="post-metadata">

### Author: ![elasticforme](https://avatars.discourse-cdn.com/v4/letter/e/f05b48/32.png) [@elasticforme](https://discuss.elastic.co/u/elasticforme)
#### Post date: [April 23, 2025, 2:52pm UTC](https://discuss.elastic.co/t/nested-fields-issues-remove-rename/377447/2 "2025-04-23T14:52:51Z")

</div>

you got a put more info Sai. like what commands you use, error messages etc..

---

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [April 23, 2025, 3:16pm UTC](https://discuss.elastic.co/t/nested-fields-issues-remove-rename/377447/3 "2025-04-23T15:16:30Z")

</div>

Please show a sample document as well as your ingest pipeline that is not working. Without that it is impossible to help.

---

<div class="post-metadata">

### Author: ![sai\_ravi\_shankar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sai_ravi_shankar/32/120767_2.png) [@sai\_ravi\_shankar](https://discuss.elastic.co/u/sai_ravi_shankar)
#### Post date: [April 24, 2025, 1:09pm UTC](https://discuss.elastic.co/t/nested-fields-issues-remove-rename/377447/4 "2025-04-24T13:09:55Z")

</div>

Resolved. Using painless script. Issue with field has list at each level of json object
