# Elasticsearch exception "type": "illegal\_state\_exception", "reason": "only value lists are allowed in serialized settings"

**URL:** <https://discuss.elastic.co/t/elasticsearch-exception-type-illegal-state-exception-reason-only-value-lists-are-allowed-in-serialized-settings/195631>\
**Category:** Elasticsearch\
**Created:** [August 18, 2019, 6:37am UTC](https://discuss.elastic.co/t/elasticsearch-exception-type-illegal-state-exception-reason-only-value-lists-are-allowed-in-serialized-settings/195631 "2019-08-18T06:37:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![meena](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/meena/32/71304_2.png) [@meena](https://discuss.elastic.co/u/meena)\
**Post date:** [August 18, 2019, 6:37am UTC](https://discuss.elastic.co/t/elasticsearch-exception-type-illegal-state-exception-reason-only-value-lists-are-allowed-in-serialized-settings/195631/1 "2019-08-18T06:37:23Z")

</div>

Hi all,

Am trying to set up the index in my new environment which is installed with elasticsearch version 6.6.1. The index is already in use in production having elasticsearch version 6.5.1.  
I get the following Exception while creating the index which is already used in production.

{  
"error": {  
"root\_cause": [  
{  
"type": "settings\_exception",  
"reason": "Failed to load settings from [.....complete index structure.....]",  
"caused\_by": {  
"type": "illegal\_state\_exception",  
"reason": "only value lists are allowed in serialized settings"  
}  
},  
"status": 500  
}

The analyzer i have in Index is as follows  
"analysis" : {  
"filter" : {  
"email\_filter" : {  
"type" : "pattern\_capture",  
"preserve\_original" : "true",  
"patterns" : [  
"([^@]+)",  
"(\p{L}+)",  
"(\d+)",  
"@(.+)"  
]  
},  
"autocomplete\_filter" : {  
"type" : "edge\_ngram",  
"min\_gram" : "3",  
"max\_gram" : "10"  
}  
},  
"char\_filter" : {  
"digit\_only" : {  
"pattern" : "\D+",  
"type" : "pattern\_replace",  
"replacement" : ""  
}  
},  
"analyzer" : {  
"number\_analyzer" : {  
"filter" : [  
"trim"  
],  
"char\_filter" : [  
"digit\_only"  
],  
"type" : "custom",  
"tokenizer" : "digit\_edge\_ngram\_tokenizer"  
},  
"email\_analyzer" : {  
"filter" : [  
"email\_filter",  
"lowercase",  
"unique"  
],  
"tokenizer" : "uax\_url\_email"  
},  
"search\_number\_analyzer" : {  
"filter" : [  
"trim"  
],  
"char\_filter" : [  
"digit\_only"  
],  
"type" : "custom",  
"tokenizer" : "keyword"  
},  
"autocomplete" : {  
"filter" : [  
"lowercase",  
"autocomplete\_filter"  
],  
"type" : "custom",  
"tokenizer" : "standard"  
}  
},  
"tokenizer" : {  
"digit\_edge\_ngram\_tokenizer" : {  
"token\_chars" : [  
"digit"  
],  
"min\_gram" : "3",  
"type" : "edgeNGram",  
"max\_gram" : "15"  
}  
}  
},

Any quick response will be very helpful. Kindly let me know if you need complete index structure.

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [August 19, 2019, 7:10am UTC](https://discuss.elastic.co/t/elasticsearch-exception-type-illegal-state-exception-reason-only-value-lists-are-allowed-in-serialized-settings/195631/2 "2019-08-19T07:10:38Z")

</div>

please share a fully reproducible example along with information what Elasticsearch version you are using.

Also, please take the time to properly format your posts, as this is hard to read. You can use markdown in here, so please make use of that.

---

<div class="post-metadata">

**Author:** ![meena](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/meena/32/71304_2.png) [@meena](https://discuss.elastic.co/u/meena)\
**Post date:** [August 19, 2019, 8:05am UTC](https://discuss.elastic.co/t/elasticsearch-exception-type-illegal-state-exception-reason-only-value-lists-are-allowed-in-serialized-settings/195631/3 "2019-08-19T08:05:42Z")

</div>

I have update the query again. Kindly let me know if you need any further details

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [August 19, 2019, 9:26am UTC](https://discuss.elastic.co/t/elasticsearch-exception-type-illegal-state-exception-reason-only-value-lists-are-allowed-in-serialized-settings/195631/4 "2019-08-19T09:26:15Z")

</div>

I would like to see the **full** request, including HTTP verb and path in order to reproduce it.

The request sample ends with a comma, thus is invalid JSON and there might be something missing. It is super important to see everything you did in order to understand and reproduce the issue.

Please read [https://www.elastic.co/help](https://www.elastic.co/help)

---

<div class="post-metadata">

**Author:** ![meena](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/meena/32/71304_2.png) [@meena](https://discuss.elastic.co/u/meena)\
**Post date:** [August 19, 2019, 10:16am UTC](https://discuss.elastic.co/t/elasticsearch-exception-type-illegal-state-exception-reason-only-value-lists-are-allowed-in-serialized-settings/195631/5 "2019-08-19T10:16:02Z")

</div>

The issue was with the index name which i provided in the script as i get when i do a '_GET party_ ' from the existing index.  
But the error message was misleading .

Thanks for your quick response

---

<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:** [September 16, 2019, 10:16am UTC](https://discuss.elastic.co/t/elasticsearch-exception-type-illegal-state-exception-reason-only-value-lists-are-allowed-in-serialized-settings/195631/6 "2019-09-16T10:16:09Z")

</div>

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