# Can't merge a non object mapping with an object mapping

**URL:** <https://discuss.elastic.co/t/cant-merge-a-non-object-mapping-with-an-object-mapping/264066>\
**Category:** Elasticsearch\
**Created:** [February 11, 2021, 11:42pm UTC](https://discuss.elastic.co/t/cant-merge-a-non-object-mapping-with-an-object-mapping/264066 "2021-02-11T23:42:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Infoxd](https://avatars.discourse-cdn.com/v4/letter/i/6f9a4e/32.png) [@Infoxd](https://discuss.elastic.co/u/Infoxd)\
**Post date:** [February 11, 2021, 11:42pm UTC](https://discuss.elastic.co/t/cant-merge-a-non-object-mapping-with-an-object-mapping/264066/1 "2021-02-11T23:42:29Z")

</div>

Hello,

When I'm trying to import this json:

```auto
{
	"data": {
		"args": ["v7.0/4529900134935424/feed", {
			"limit": 100
		}]
	},
	"@timestamp": "2021-02-11T11:07:02.189Z",
	"@version": "1"
}

```

I'm getting this error:

`can't merge a non object mapping [data.args] with an object mapping"`

This JSON comes from an upstream service and looks valid but doesn't import. Actually this is a failing snippet from a larger JSON file which imports fine if this block is removed.  
What can I do to get this to import?

---

<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:** [February 12, 2021, 2:34am UTC](https://discuss.elastic.co/t/cant-merge-a-non-object-mapping-with-an-object-mapping/264066/2 "2021-02-12T02:34:52Z")

</div>

You can't import that. args can't be both a `text` and an `object`.

You must change the source document.  
Or if you don't want to index the content of `args`, you can disable it.

---

<div class="post-metadata">

**Author:** ![Infoxd](https://avatars.discourse-cdn.com/v4/letter/i/6f9a4e/32.png) [@Infoxd](https://discuss.elastic.co/u/Infoxd)\
**Post date:** [February 22, 2021, 10:25am UTC](https://discuss.elastic.co/t/cant-merge-a-non-object-mapping-with-an-object-mapping/264066/3 "2021-02-22T10:25:43Z")

</div>

Thank you, that worked. Disabled it with this command:

```auto
curl -XPUT http://localhost:9200/myindex -H "Content-Type: application/json" -d '
{
  "properties": {
     "data.args": {
        "enabled": "false"
     }
  }
}
'

```

---

<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:** [March 22, 2021, 10:26am UTC](https://discuss.elastic.co/t/cant-merge-a-non-object-mapping-with-an-object-mapping/264066/4 "2021-03-22T10:26:38Z")

</div>

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