https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44046 Bug ID: 44046 Summary: Exporting records silently skips records whose MARC cannot be read Initiative type: --- Sponsorship --- status: Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: normal Priority: P5 - low Component: Tools Assignee: koha-bugs@lists.koha-community.org Reporter: babarjunaid1122@gmail.com QA Contact: testopia@bugs.koha-community.org Target Milestone: --- Koha::Exporter::Record (Tools > Export data, and misc/export_records.pl) skips any bibliographic record whose stored MARCXML does not parse, or (ISO 2709) does not encode, and carries on. Nothing tells the person exporting: - the command line shows only the parser's own lines (e.g. "PCDATA invalid Char value 31"), with no biblionumber; - "Record N could not be exported" goes only to the Koha logger, and for ISO 2709 at info level, which is usually not written; - export_records.pl exits 0, and the download from the Export screen simply lacks the record. An export used for a migration or a backup can therefore come out short with nothing saying so. To reproduce: put a control character (e.g. 0x1F) into one record's biblio_metadata.metadata, then run misc/export_records.pl --format=xml (or iso2709) --filename=out --starting_biblionumber/--ending_biblionumber around it: the file has one record fewer, the output names no record, the exit code is 0. Reproduced on Koha 26.05.02 (1,093 of 1,094 sample records exported, exit 0); the same code is on main. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.