https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38913

Jonathan Druart <jonathan.dru...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jonathan.dru...@gmail.com

--- Comment #12 from Jonathan Druart <jonathan.dru...@gmail.com> ---
This is clearly not enough (could go on a separate bugs).

Testing this patch I have noticed several things:
1. 
$ ./misc/migration_tools/bulkmarcimport.pl -b -file test.xml -m=MARCXML
.UTF-8 "\xC4" does not map to Unicode at /usr/share/perl5/MARC/File/Encode.pm
line 35.

Not really useful to guess where the error is, but we know it's in the file so
we can search in it easily

2. Stage the file and import using the UI

            id: 2                                                               
        status: failed                                                          
      progress: 0                                                               
          size: 1                                                               
borrowernumber: 51                 
          type: marc_import_commit_batch
         queue: long_tasks                                                      
          data:
{"report":{"import_batch_id":"1","num_items_added":null,"num_ignored":null,"num_items_replaced":null,"num_items_errored":null,"num_added":null,"num_updated":null},"import_batch_id":"1","overlay_fra
mework":null,"messages":[],"frameworkcode":""}
       context:
{"firstname":null,"surname":"koha","flags":"1","number":"51","register_name":null,"emailaddress":null,"desk_id":null,"desk_name":null,"branchname":"Centerville","register_id":null,"shibboleth":"0",
"cardnumber":"42","branch":"CPL","interface":"intranet","id":"koha"}
   enqueued_on: 2025-01-20 08:40:28                                             
    started_on: 2025-01-20 08:40:29                                             
      ended_on: 2025-01-20 08:40:29   

No info on the failure.

There is something in the log, but that should go in the report of the job

==> /var/log/koha/kohadev/worker-output.log <==                                 
Record length of 527856 is larger than the MARC spec allows (99999 bytes). at
/usr/share/perl5/MARC/File/USMARC.pm line 314.    
UTF-8 "\x85" does not map to Unicode at /usr/share/perl5/MARC/File/Encode.pm
line 35.

3. Now the record is in the DB, start a full reindex:

% koha-elasticsearch --rebuild -b  kohadev
UTF-8 "\xC4" does not map to Unicode at /usr/share/perl5/MARC/File/Encode.pm
line 35.
Something went wrong rebuilding indexes for kohadev

No info on the problematic record! We should tell which record failed.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://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/

Reply via email to