Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When you import data into a table that already exists and has a primary key assigned, if the delimited file contains duplicate values in the primary key field, the error message just says something like, "C:\xampp\htdocs\drupal\sites\all\modules\tw\tw_import\tw_import_delimited.module at line 247", instead of something helpful like, "Duplicate value in primary key" plus the troublesome line of data. This makes it difficult to find out where the problem is originating.
Comments
Comment #1
mikeryan"needs work" would only apply if there were a patch provided that needed work, bug reports without patches should be "active" status.
I cannot reproduce this - when I try importing a file with rows with duplicate primary keys, the 2nd row with the same key is silently skipped (also non-optimal, I admit). I'm not sure how to address this without first querying for the existence of the PK.
Comment #2
vunger CreditAttribution: vunger commentedThanks, I'll keep that in mind for future bug reports.
Comment #3
mikeryan