# elasticsearch.exceptions.RequestError: TransportError(400, 'illegal\_argument\_exception', 'Rejecting mapping update to \[sg\_index\_checker\_progress\] as the final mapping would have more than 1 type: \[\_doc, sg\_index\_checker\_progress\]')

**URL:** <https://discuss.elastic.co/t/elasticsearch-exceptions-requesterror-transporterror-400-illegal-argument-exception-rejecting-mapping-update-to-sg-index-checker-progress-as-the-final-mapping-would-have-more-than-1-type-doc-sg-index-checker-progress/244364>\
**Category:** Elasticsearch\
**Tags:** docker\
**Created:** [August 10, 2020, 8:19am UTC](https://discuss.elastic.co/t/elasticsearch-exceptions-requesterror-transporterror-400-illegal-argument-exception-rejecting-mapping-update-to-sg-index-checker-progress-as-the-final-mapping-would-have-more-than-1-type-doc-sg-index-checker-progress/244364 "2020-08-10T08:19:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![samandhare](https://avatars.discourse-cdn.com/v4/letter/s/3bc359/32.png) [@samandhare](https://discuss.elastic.co/u/samandhare)\
**Post date:** [August 10, 2020, 8:19am UTC](https://discuss.elastic.co/t/elasticsearch-exceptions-requesterror-transporterror-400-illegal-argument-exception-rejecting-mapping-update-to-sg-index-checker-progress-as-the-final-mapping-would-have-more-than-1-type-doc-sg-index-checker-progress/244364/1 "2020-08-10T08:19:00Z")

</div>

Hi All,  
I am getting this error on elastic search. Could you please help me here.!  
Thanks in advance

Loading articles from Springer API(Eddie) into sg\_index\_checker  
Processing dates 2020-01-01 00:00:00 - 2020-08-11 00:00:00(not included)  
PUT [http://localhost:9200/sg\_index\_checker\_progress/sg\_index\_checker\_progress/article-2020-01-01](http://localhost:9200/sg_index_checker_progress/sg_index_checker_progress/article-2020-01-01) [status:400 request:0.052s]  
Traceback (most recent call last):  
File "/Users/sam1546/Documents/Indexing-check/knowledge-graph/scigraph-new-indexing-checks/venv/lib/python3.7/site-packages/elasticsearch/transport.py", line 312, in perform\_request  
status, headers, data = connection.perform\_request(method, url, params, body, ignore=ignore, timeout=timeout)  
File "/Users/sam1546/Documents/Indexing-check/knowledge-graph/scigraph-new-indexing-checks/venv/lib/python3.7/site-packages/elasticsearch/connection/http\_urllib3.py", line 129, in perform\_request  
self.\_raise\_error(response.status, raw\_data)  
File "/Users/sam1546/Documents/Indexing-check/knowledge-graph/scigraph-new-indexing-checks/venv/lib/python3.7/site-packages/elasticsearch/connection/base.py", line 125, in \_raise\_error  
raise HTTP\_EXCEPTIONS.get(status\_code, TransportError)(status\_code, error\_message, additional\_info)  
**elasticsearch.exceptions.RequestError: TransportError(400, 'illegal\_argument\_exception', 'Rejecting mapping update to [sg\_index\_checker\_progress] as the final mapping would have more than 1 type: [\_doc, sg\_index\_checker\_progress]')**

---

<div class="post-metadata">

**Author:** ![dominique.bejean](https://avatars.discourse-cdn.com/v4/letter/d/dc4da7/32.png) [@dominique.bejean](https://discuss.elastic.co/u/dominique.bejean)\
**Post date:** [August 10, 2020, 8:51am UTC](https://discuss.elastic.co/t/elasticsearch-exceptions-requesterror-transporterror-400-illegal-argument-exception-rejecting-mapping-update-to-sg-index-checker-progress-as-the-final-mapping-would-have-more-than-1-type-doc-sg-index-checker-progress/244364/2 "2020-08-10T08:51:26Z")

</div>

Hi Sam,

Il looks like your are trying to use mapping types in a recent ES version (7.0+ ?). As per documentation

> Indices created in Elasticsearch 6.0.0 or later may only contain a single [mapping type](https://www.elastic.co/guide/en/elasticsearch/reference/6.8/mapping.html#mapping-type). Indices created in 5.x with multiple mapping types will continue to function as before in Elasticsearch 6.x. Types will be deprecated in APIs in Elasticsearch 7.0.0, and completely removed in 8.0.0

Your URL should be [http://localhost:9200/sg\_index\_checker\_progress/\_doc/article-2020-01-01](http://localhost:9200/sg_index_checker_progress/_doc/article-2020-01-01)

Dominique

---

<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 7, 2020, 8:51am UTC](https://discuss.elastic.co/t/elasticsearch-exceptions-requesterror-transporterror-400-illegal-argument-exception-rejecting-mapping-update-to-sg-index-checker-progress-as-the-final-mapping-would-have-more-than-1-type-doc-sg-index-checker-progress/244364/3 "2020-09-07T08:51:33Z")

</div>

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