# Cluster Block Exception - Elastic Search 7.4.2

**URL:** <https://discuss.elastic.co/t/cluster-block-exception-elastic-search-7-4-2/209471>\
**Category:** Elasticsearch\
**Created:** [November 26, 2019, 10:39am UTC](https://discuss.elastic.co/t/cluster-block-exception-elastic-search-7-4-2/209471 "2019-11-26T10:39:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![javaamtho](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/javaamtho/32/38820_2.png) [@javaamtho](https://discuss.elastic.co/u/javaamtho)\
**Post date:** [November 26, 2019, 10:39am UTC](https://discuss.elastic.co/t/cluster-block-exception-elastic-search-7-4-2/209471/1 "2019-11-26T10:39:39Z")

</div>

Elastic 7.4, The multiple types of support are deprecated !!

But it's not blocked as per the elastic documentation.

//  
PUT twitter/user/kimchy  
{  
"name": "Shay Banon",  
"user\_name": "kimchy",  
"email": "[shay@kimchy.com](mailto:shay@kimchy.com)"  
}

it should create index with default mapping type.

now, try to create new type index with tweet as below syntax  
//  
PUT twitter/tweet/1  
{  
"user\_name": "kimchy",  
"tweeted\_at": "2017-10-24T09:00:00Z",  
"content": "Types are going away"  
}

Elastic will give following error message  
//  
{  
"error": {  
"root\_cause": [  
{  
"type": "illegal\_argument\_exception",  
"reason": "Rejecting mapping update to [twitter] as the final mapping would have more than 1 type: [user, tweet]"  
}  
],  
"type": "illegal\_argument\_exception",  
"reason": "Rejecting mapping update to [twitter] as the final mapping would have more than 1 type: [user, tweet]"  
},  
"status": 400  
}

and if you re-execute the same GET rest api and it does disable the index and give below error message  
//  
{  
"error": {  
"root\_cause": [  
{  
"type": "cluster\_block\_exception",  
"reason": "index [twitter] blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];"  
}  
],  
"type": "cluster\_block\_exception",  
"reason": "index [twitter] blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];"  
},  
"status": 403  
}

Can you please provide some input here?

---

<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 24, 2019, 10:39am UTC](https://discuss.elastic.co/t/cluster-block-exception-elastic-search-7-4-2/209471/2 "2019-12-24T10:39:54Z")

</div>

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