https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20811
Katrin Fischer <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected], | |[email protected], | |martin.renvoize@ptfs-europe | |.com, | |[email protected] | |om --- Comment #4 from Katrin Fischer <[email protected]> --- Need some reinforcements here, I think we are looking at a bigger issue. With and without the patch I don't get it to work with the -update option: $ ./bulkmarcimport.pl -b -file ../../data/Katrin-biblios.mrc -v -update Characteristic MARC flavour: MARC21 .DBD::mysql::st execute failed: Cannot add or update a child row: a foreign key constraint fails (`koha_kohadev`.`biblio_metadata`, CONSTRAINT `record_metadata_fk_1` FOREIGN KEY (`biblionumber`) REFERENCES `biblio` (`biblionumber`) ON DELETE CASCADE ON UPDATE CASCADE) [for Statement "INSERT INTO `biblio_metadata` ( `format`, `marcflavour`, `metadata`) VALUES ( ?, ?, ? )" with ParamValues: 0='marcxml', 1='MARC21', 2="<?xml version="1.0" encoding="UTF-8"?> <record xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.loc.gov/MARC21/slim http://www.loc.gov/standards/marcxml/schema/MARC21slim.xsd" xmlns="http://www.loc.gov/MARC21/slim"> <leader>00647cas a2200229 4500</leader> <controlfield tag="001">012079189</controlfield> <controlfield tag="003">DE-576</controlfield> <controlfield tag="005">20180708032646.0</controlfield> <controlfield tag="007">tu</controlfield> <controlfield tag="008">860818cuuuuuuuuxx m 0ita c</controlfield> <datafield tag="016" ind1=" " ind2=" "> <subfield code="a">(OCoLC)72970470</subfield> </datafield> <datafield tag="035" ind1=" " ind2=" "> <subfield code="a">(DE-599)BSZ012079189</subfield> </datafield> <datafield tag="040" ind1=" " ind2=" "> <subfield code="a">DE-576</subfield> <subfield code="b">ger</subfield> <subfield code="c">DE-576</subfield> <subfield code="e"..."] at /usr/share/perl5/DBIx/Class/Storage/DBI.pm line 1832, <GEN27> line 1. Use of uninitialized value in sprintf at /home/vagrant/kohaclone/Koha/Exceptions/Exception.pm line 19, <GEN27> line 1. Invalid parameter passed, biblionumber= does not exist I've also tried using it with match: $ ./bulkmarcimport.pl -b -file ../../data/Katrin-biblios.mrc -v -match Control-number,001 -update The result is always the same. -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
