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

mikeryan’s picture

Status: Needs work » Postponed (maintainer needs more info)

"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.

vunger’s picture

Thanks, I'll keep that in mind for future bug reports.

mikeryan’s picture

Status: Postponed (maintainer needs more info) » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.