# Getting error in importing multiple collections from mongodb to elasticsearch 7.7.0

**URL:** <https://discuss.elastic.co/t/getting-error-in-importing-multiple-collections-from-mongodb-to-elasticsearch-7-7-0/194226>\
**Category:** Elasticsearch\
**Created:** [August 7, 2019, 11:38am UTC](https://discuss.elastic.co/t/getting-error-in-importing-multiple-collections-from-mongodb-to-elasticsearch-7-7-0/194226 "2019-08-07T11:38:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kunal\_Adhikari](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kunal_adhikari/32/45028_2.png) [@Kunal\_Adhikari](https://discuss.elastic.co/u/Kunal_Adhikari)\
**Post date:** [August 7, 2019, 11:38am UTC](https://discuss.elastic.co/t/getting-error-in-importing-multiple-collections-from-mongodb-to-elasticsearch-7-7-0/194226/1 "2019-08-07T11:38:33Z")

</div>

\</\>  
ERRO[0001] \_bulk failed list [0] error="&elastic.ErrorDetails{Type:"illegal\_argument\_exception", Reason:"Rejecting mapping update to [my\_application1] as the final mapping would have more than 1 type: [test\_collection1, test]", ResourceType:"", ResourceId:"", Index:"", Phase:"", Grouped:false, CausedBy:map[string]interface {}(nil), RootCause:\*elastic.ErrorDetails(nil), FailedShards:map[string]interface {}(nil)}" executionID=1 id=5d4a922f033fa855be972a26 index="my\_application1" type=test version=5 writer=elasticsearch  
\</\>

I am trying to import data from my mongodb database to elasticsearch 7.7.0 using Transporter but its only taking one collection from my database and showing this above error.

---

<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 4, 2019, 11:38am UTC](https://discuss.elastic.co/t/getting-error-in-importing-multiple-collections-from-mongodb-to-elasticsearch-7-7-0/194226/2 "2019-09-04T11:38:39Z")

</div>

Closed on September 4, 2019, 11:38am UTC

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