Baboo7 / strapi-plugin-import-export-entries

Import/Export data from and to your database in just few clicks.
179 stars 95 forks source link

[BUG] Duplicate entries are imported #57

Closed SaintNandarOo closed 2 years ago

SaintNandarOo commented 2 years ago

Describe the bug When I import to a collection type with a csv file that contains duplicate value for "Unique field," it imports and creates the duplicate entries without showing any error.

To Reproduce Steps to reproduce the behavior:

  1. Create a collection type that contains the "Unique field"
  2. Prepare CSV file with duplicate value for "Unique field"
  3. Import the file and you can see that it will create duplicate entries

Expected behavior Skip importing the duplicate entries if "Unique field" is defined and show a dialog box for skip entries after importing.

nicoXXXXXtitan commented 2 years ago

+1 I am the same problem.

SaintNandarOo commented 2 years ago

Hey @nicoXXXXXtitan the plugin developer published version 1.15.0 and we can choose the "Id Field" as "Unique field" when we import.

Screen Shot 2022-09-28 at 13 28 11
nicoXXXXXtitan commented 2 years ago

Great ! I had missed this option. Thanks a lot !