<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi David,</p>
    <p>I see that you haven't received any replies on the list yet.
      Sadly I am not sure what is causing the issues you have. <br>
    </p>
    <p>For the matching I found an older mail thread, suggesting a
      different syntax for the match parameter:<br>
    </p>
    <p><a class="moz-txt-link-freetext" href="http://koha.1045719.n5.nabble.com/bulkmarcimport-problems-td5492136.html">http://koha.1045719.n5.nabble.com/bulkmarcimport-problems-td5492136.html</a></p>
    <p>./bulkmarcimport.pl -d -fk -match=barcode,999c -commit 1000 -v
      -file /tmp/newer40_77000.mrc <br>
    </p>
    <p>From that, maybe try: -match=Control-umber,001</p>
    <p>If you are stuck, stepping into #koha IRC can be also a good
      idea: <br>
    </p>
    <p><a class="moz-txt-link-freetext" href="https://koha-community.org/get-involved/irc/">https://koha-community.org/get-involved/irc/</a><br>
    </p>
    <p>Often people will be able to help you to get to the root of an
      error message there.<br>
    </p>
    <p>Katrin</p>
    <br>
    <div class="moz-cite-prefix">On 22.04.21 11:02, David Schmidt wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:5ccd0889-5a24-41a1-9aca-b639e4330f97@www.fastmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <title></title>
      <style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style>
      <div>Hello koha folks,<br>
      </div>
      <div><br>
      </div>
      <div>###<br>
      </div>
      <div>I hope this is the correct list for this kind of email<br>
      </div>
      <div>###<br>
      </div>
      <div><br>
      </div>
      <div><br>
      </div>
      <div>We are currently exporting about 500k recods from a dabis
        system into a new koha installation.<br>
      </div>
      <div><br>
      </div>
      <div>the export file (MARCXML) goes through some transformations
        using catmandu.<br>
      </div>
      <div><br>
      </div>
      <div>I imported the first 25k records using this command:<br>
      </div>
      <div><br>
      </div>
      <div>```<br>
      </div>
      <div>bulkmarcimport.pl -M MARCXML -file tmp/marc_001.xml<br>
      </div>
      <div>```<br>
      </div>
      <div><br>
      </div>
      <div>after inspecting the records some of the catmandu fixes had
        to be updated and now im trying to update the existing koha
        records with the new marc_002.xml file.<br>
      </div>
      <div><br>
      </div>
      <div>```<br>
      </div>
      <div>bulkmarcimport.pl -M MARCXML -update -isbn -file
        tmp/marc_002.xml<br>
      </div>
      <div>```<br>
      </div>
      <div><br>
      </div>
      <div>this gives me alot of these errors:<br>
      </div>
      <div>```<br>
      </div>
      <div>WARNING: Updating recordĀ  failed at
        /usr/share/koha/bin/migration_tools/bulkmarcimport.pl line 470,
        <GEN24> line 190.<br>
      </div>
      <div>..Use of uninitialized value $originalid in concatenation (.)
        or string at
        /usr/share/koha/bin/migration_tools/bulkmarcimport.pl line 470,
        <GEN24> line 194.<br>
      </div>
      <div>WARNING: Updating recordĀ  failed at
        /usr/share/koha/bin/migration_tools/bulkmarcimport.pl line 470,
        <GEN24> line 194.<br>
      </div>
      <div>```<br>
      </div>
      <div><br>
      </div>
      <div>I also tried using -match but I havent figured out how the
        parameters for -match are supposed to look like<br>
      </div>
      <div>```<br>
      </div>
      <div>bulkmarcimport.pl -m MARCXML -update -match="001" -file
        tmp/marc_002.xml<br>
      </div>
      <div>```<br>
      </div>
      <div><br>
      </div>
      <div>```<br>
      </div>
      <div>.Use of uninitialized value $recorddata in pattern match
        (m//) at /usr/share/koha/bin/migration_tools/bulkmarcimport.pl
        line 603, <GEN24> line 2.<br>
      </div>
      <div>unable to search the database for duplicates : No query
        entered at /usr/share/koha/bin/migration_tools/bulkmarcimport.pl
        line 323, <GEN24> line 2.<br>
      </div>
      <div>```<br>
      </div>
      <div><br>
      </div>
      <div>help or pointers are appreciated.<br>
      </div>
      <div><br>
      </div>
      <div>cheers<br>
      </div>
      <div>david<br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Koha-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Koha-devel@lists.koha-community.org">Koha-devel@lists.koha-community.org</a>
<a class="moz-txt-link-freetext" href="https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel">https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel</a>
website : <a class="moz-txt-link-freetext" href="https://www.koha-community.org/">https://www.koha-community.org/</a>
git : <a class="moz-txt-link-freetext" href="https://git.koha-community.org/">https://git.koha-community.org/</a>
bugs : <a class="moz-txt-link-freetext" href="https://bugs.koha-community.org/">https://bugs.koha-community.org/</a>
</pre>
    </blockquote>
  </body>
</html>