# Mapper for \[someField\] conflicts with existing mapping: \[mapper \[someField\] has different \[norms\] values, cannot change from disable to enabled

**URL:** <https://discuss.elastic.co/t/mapper-for-somefield-conflicts-with-existing-mapping-mapper-somefield-has-different-norms-values-cannot-change-from-disable-to-enabled/253064>\
**Category:** Elasticsearch\
**Created:** [October 22, 2020, 8:02pm UTC](https://discuss.elastic.co/t/mapper-for-somefield-conflicts-with-existing-mapping-mapper-somefield-has-different-norms-values-cannot-change-from-disable-to-enabled/253064 "2020-10-22T20:02:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![b0redom](https://avatars.discourse-cdn.com/v4/letter/b/c57346/32.png) [@b0redom](https://discuss.elastic.co/u/b0redom)\
**Post date:** [October 22, 2020, 8:02pm UTC](https://discuss.elastic.co/t/mapper-for-somefield-conflicts-with-existing-mapping-mapper-somefield-has-different-norms-values-cannot-change-from-disable-to-enabled/253064/1 "2020-10-22T20:02:10Z")

</div>

Hi,  
I'm reasonably new to ElasticSearch, and I've been Googling and reading, but I've not found anything to help.

I use Index Templates to ingest data. I have one with well defined mapped fields, but 2 in particular:

agent: text  
message: text

I also have set up the following JSON in the Dynamic Templates section:

```auto
    [
      {
        "message_field": {
          "path_match": "message",
          "mapping": {
            "norms": false,
            "type": "text"
          },
          "match_mapping_type": "string"
        }
      },
      {
        "agent_field": {
          "path_match": "agent",
          "mapping": {
            "norms": false,
            "type": "text"
          },
          "match_mapping_type": "string"
        }
      },
      {
        "string_fields": {
          "mapping": {
            "norms": false,
            "type": "text",
            "fields": {
              "keyword": {
                "ignore_above": 256,
                "type": "keyword"
              }
            }
          },
          "match_mapping_type": "string",
          "match": "*"
        }
      }
    ]

```

However, when I delete my index and it's automatically recreated, I get loads of errors such as:

```auto
[instance-xxxxxxxxxx] [TheIndex][0] mapping update rejected by primary java.lang.IllegalArgumentException: Mapper for [message] conflicts with existing mapping: [mapper [message] has different [norms] values, cannot change from disable to enabled]

```

Is there anywhere else I need to set up the mapping stuff? The entries appear to be being created correctly. I was expecting that making the dynamic changes, and then deleting the index would create a new one and ingest data properly.

Thanks...

Tom

---

<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:** [November 19, 2020, 8:02pm UTC](https://discuss.elastic.co/t/mapper-for-somefield-conflicts-with-existing-mapping-mapper-somefield-has-different-norms-values-cannot-change-from-disable-to-enabled/253064/2 "2020-11-19T20:02:11Z")

</div>

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