# Import bib file into groups, not creating duplicates

**URL:** <https://discourse.jabref.org/t/import-bib-file-into-groups-not-creating-duplicates/2842>\
**Category:** Help\
**Created:** [July 15, 2021, 1:49pm UTC](https://discourse.jabref.org/t/import-bib-file-into-groups-not-creating-duplicates/2842 "2021-07-15T13:49:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![reox](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.jabref.org/reox/32/2000_2.png) [@reox](https://discourse.jabref.org/u/reox)\
**Post date:** [July 15, 2021, 1:49pm UTC](https://discourse.jabref.org/t/import-bib-file-into-groups-not-creating-duplicates/2842/1 "2021-07-15T13:49:09Z")

</div>

I have a .bib file I want to import into my main library. This bib file contains some existing entries and some new entries.  
I also want to import the file into a group, adding all existing items to the group.  
I used `'C:\Program Files\JabRef\runtime\bin\JabRef.bat' -importToOpen scopus.bib` for triggering the import.

However, I can not figure out how to do that:  
If I click on the “possible duplicate of existing entry. click to resolve” button and select “keep merged entry only”, I still create a duplicate on import. I’m not sure if the help from here: [Find duplicates - JabRef](https://docs.jabref.org/finding-sorting-and-cleaning-entries/findduplicates) applies to the import as well? Because it says when clicking merge, “Both previous entries are removed.” - which can not apply to importing, because there is simply only one entry existing in the library, right?

The usecase for this is the following: I did some search on scopus and downloaded all articles as bib. I then want to create a group containing the search results. If the article is already in my library, I would like to add it to the group (potentially also adding additional fields, found in the import). If it is new, I would like to add it to the library and the group.

A workaround (although, I did not tested it) would probably be to importing regardless of creating duplicates and then merging the entries again.
