# Error when PUT Templet in ES 7.1.0

**URL:** <https://discuss.elastic.co/t/error-when-put-templet-in-es-7-1-0/182689>\
**Category:** Elasticsearch\
**Created:** [May 24, 2019, 3:23pm UTC](https://discuss.elastic.co/t/error-when-put-templet-in-es-7-1-0/182689 "2019-05-24T15:23:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alex\_Savenok](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alex_savenok/32/45836_2.png) [@Alex\_Savenok](https://discuss.elastic.co/u/Alex_Savenok)\
**Post date:** [May 24, 2019, 3:23pm UTC](https://discuss.elastic.co/t/error-when-put-templet-in-es-7-1-0/182689/1 "2019-05-24T15:23:33Z")

</div>

When I attempt to PUT this template to ES 7.1.0 I get the following error.

**ElasticsearchStatusException[Elasticsearch exception [type=action\_request\_validation\_exception, reason=Validation Failed: 1: template is missing;]**

```
{
  "template": "*",
  "settings": {
    "analysis": {
      "filter": {
        "token_autocomplete_filter": {
          "_description": "index the edge token prefixes shorter than max_gram",
          "type": "edge_ngram",
          "min_gram": 1,
          "max_gram": 30
        },
        "english_stop": {
          "type": "stop",
          "stopwords": "_english_"
        },
        "english_stemmer": {
          "type": "stemmer",
          "language": "english"
        },
        "english_possessive_stemmer": {
          "type": "stemmer",
          "language": "possessive_english"
        }
      },
      "analyzer": {
        "keylowercase": {
          "type": "custom",
          "tokenizer": "keyword",
          "filter": "lowercase"
        },
        "word_autocomplete": {
          "type": "custom",
          "tokenizer": "standard",
          "filter": [
            "lowercase",
            "token_autocomplete_filter",
            "asciifolding"
          ]
        },
        "english": {
          "tokenizer": "standard",
          "filter": [
            "english_possessive_stemmer",
            "lowercase",
            "english_stop",
            "english_stemmer"
          ]
        },
        "english_large": {
          "tokenizer": "standard",
          "filter": [
            "english_possessive_stemmer",
            "lowercase",
            "english_stop",
            "english_stemmer",
            "unique"
          ]
        },
        "search_standard": {
          "tokenizer": "standard",
          "filter": [
            "lowercase",
            "asciifolding"
          ]
        },
        "search_username": {
          "tokenizer": "standard",
          "filter": [
            "lowercase",
            "asciifolding"
          ],
          "char_filter": [
            "omit_whitespaces"
          ]
        }
      },
      "char_filter": {
        "omit_whitespaces": {
          "type": "pattern_replace",
          "pattern": "\\s+",
          "replacement": ""
        }
      }
    }
  }
}
```

---

<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:** [June 21, 2019, 3:23pm UTC](https://discuss.elastic.co/t/error-when-put-templet-in-es-7-1-0/182689/2 "2019-06-21T15:23:33Z")

</div>

Closed on June 21, 2019, 3:23pm UTC

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