# Error changing type /mapping from object to nested

**URL:** <https://discuss.elastic.co/t/error-changing-type-mapping-from-object-to-nested/206781>\
**Category:** Elasticsearch\
**Created:** [November 6, 2019, 11:29am UTC](https://discuss.elastic.co/t/error-changing-type-mapping-from-object-to-nested/206781 "2019-11-06T11:29:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kailash](https://avatars.discourse-cdn.com/v4/letter/k/2bfe46/32.png) [@kailash](https://discuss.elastic.co/u/kailash)\
**Post date:** [November 6, 2019, 11:29am UTC](https://discuss.elastic.co/t/error-changing-type-mapping-from-object-to-nested/206781/1 "2019-11-06T11:29:33Z")

</div>

I am trying to change object type to nested by

PUT lfx2\_lp\_prices1/\_mapping  
{

```
    "properties" : {
        "NoMDEntries" : {"type" : "nested"}
    }

```

}

But getting error  
"type": "illegal\_argument\_exception",  
"reason": "object mapping [NoMDEntries] can't be changed from non-nested to nested"

NoMDEntries in arrany of some currency prices.

---

<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:** [December 4, 2019, 11:29am UTC](https://discuss.elastic.co/t/error-changing-type-mapping-from-object-to-nested/206781/2 "2019-12-04T11:29:35Z")

</div>

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