Bug 16180 - Receiving items with duplicate barcodes from import (addorderiso2709.pl) causes internal error
Summary: Receiving items with duplicate barcodes from import (addorderiso2709.pl) caus...
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Acquisitions (show other bugs)
Version: Main
Hardware: All All
: P3 normal (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-31 18:53 UTC by Jesse Weaver
Modified: 2016-04-04 13:27 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Weaver 2016-03-31 18:53:45 UTC
DBD::mysql::st execute failed: Duplicate entry 'O' for key 'itembarcodeidx' at /usr/share/koha/lib/C4/Items.pm line 2171.
addorderiso2709.pl: DBD::mysql::st execute failed: Column 'itemnumber' cannot be null at /usr/local/share/perl/5.10.1/DBIx/Class/Storage/DBI.pm line 1834.
DBIx::Class::Storage::DBI::_dbh_execute(): Column 'itemnumber' cannot be null at /usr/share/koha/lib/Koha/Acquisition/Order.pm line 65

(Where "O" was the duplicate barcode in question)
Comment 1 Jonathan Druart 2016-04-04 13:27:17 UTC
It looks like tricky to fix. Do you have an idea on how to fix it correctly?