[Koha] Introduction / Problem with bulk import

Paul Hoffman paul at flo.org
Sat May 26 03:30:45 NZST 2018


Willkommen, Markus!

On Fri, May 25, 2018 at 09:04:56AM +0200, Markus Becker wrote:
> - Third, i have a problem with the bulk-import of MARC21XML-Records to
> Koha and i hope, someone can give me a little hint (technical details
> of the Koha-installation below):
> 
> When i try to import the MARC21XML-File with the bulkmarcimport.pl via
> console (following
> http://kohageek.blogspot.de/2016/05/bulk-marc-import-using-command-line.html),
> i get the following error:
> 
> > ..Use of uninitialized value in concatenation (.) or string at
> > /usr/share/perl5/MARC/File/XML.pm line 397, <GEN46> chunk 5.
> >
> > 2 MARC records done in 0.16786003112793 seconds
> 
> The 2 MARC records were *not* imported.
> 
> The error is occurring with MARC21XML-files created with my own
> conversion-script and with files exported from Koha itself.
> 
> Any hints for me?

It sounds as though the file you are trying to import is not a 
well-formed XML document; it may be truncated in the middle of a record.  
Can you post it for us to look at?  What XML library does your 
conversion script use?

Alternatively, if you have installed libexpat you can use the xmlwf 
command to check that the file is well-formed.  Or try xmllint if you 
have installed libxml.  For example:

    xmlwf FILE
    xmlwf -n FILE
    xmllint --noout FILE

Paul.

-- 
Paul Hoffman <paul at flo.org>
Systems Librarian
Fenway Libraries Online
c/o Wentworth Institute of Technology
550 Huntington Ave.
Boston, MA 02115
(617) 442-2384 (FLO main number)


More information about the Koha mailing list