<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
  </head>
  <body>
    <p>If you do see that "Failed to clean XML" message in the logs,
      then you might be interested in this pull request I submitted
      recently:</p>
    <p><br>
    </p>
    <p><a class="moz-txt-link-freetext" href="https://github.com/archivesspace/archivesspace/pull/2553">https://github.com/archivesspace/archivesspace/pull/2553</a></p>
    <p><br>
    </p>
    <p>I could put the same fix into the form of a plug-in, if that is
      what you are seeing, you have the ability to install plug-ins, and
      you are running 2.7.1 or newer.<br>
    </p>
    <p><br>
    </p>
    <p>It might be a different markup issue, but in my experience the
      logs never tell you which archival object the problem is in. It
      cannot, because by that point it has converted the collection into
      a temporary HTML file, which is the intermediate step before
      converting to PDF. You could try exporting as EAD from the staff
      interface, then validating in an XML editor, but if the issue is
      something which is valid in EAD, then it can be very difficult to
      trace. If you have a local development instance of ArchivesSpace,
      you can modify the code so it doesn't delete the temporary HTML
      files, then validate those. <br>
    </p>
    <p><br>
    </p>
    <p>
      Andrew.</p>
    <p><br>
    </p>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 05/01/2022 18:14, Blake Carver
      wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:DM6PR22MB23096372BA7C4990098732D49F4B9@DM6PR22MB2309.namprd22.prod.outlook.com">
      
      <style type="text/css" style="display:none;">P {margin-top:0;margin-bottom:0;}</style>
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);">
        It's going to be a bit of looking for a bunch of needles in a
        very short hay stack kinda thing.</div>
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);">
        The errors should have either FATAL or ERROR and something about
        pdf around there somewhere. Sometimes there will be allotta
        other FATAL and ERROR around, so you'll need to narrow it down
        based on what each one says.</div>
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);">
        You could also look for "92" "126" and "21" I think the resource
        number should show up around the error as well.</div>
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);">
        Also wouldn't surprise me to see this error in particular, but
        not always:</div>
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);">
        <br>
      </div>
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);">
        <pre dir="ltr" style="padding:6px 10px;font-family:Consolas, "Liberation Mono", Menlo, "Bitstream Vera Sans Mono", Courier, monospace;font-size:12.025px;color:rgb(104, 115, 125);border-radius:3px;display:block;margin:15px 0px;line-height:19px;word-break:break-all;overflow-wrap:break-word;background:rgb(248, 249, 249);border:1px solid rgb(194, 200, 204);outline:0px"><code style="font-size:12px;border-radius:3px;background:none;margin:0px;outline:0px;word-break:break-word">RuntimeError (Failed to clean XML: The entity name must immediately follow the '&' in the entity reference.):</code></pre>
        <br>
      </div>
      <div>
        <div id="Signature">
          <div>
            <div id="divtagdefaultwrapper" dir="ltr" style="color:rgb(0,0,0);
              background-color:rgb(255,255,255)">
            </div>
          </div>
        </div>
      </div>
      <hr style="display:inline-block;width:98%" tabindex="-1">
      <div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b>
          <a class="moz-txt-link-abbreviated" href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org">archivesspace_users_group-bounces@lyralists.lyrasis.org</a>
          <a class="moz-txt-link-rfc2396E" href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org"><archivesspace_users_group-bounces@lyralists.lyrasis.org></a>
          on behalf of Kyle Breneman <a class="moz-txt-link-rfc2396E" href="mailto:kbreneman@ubalt.edu"><kbreneman@ubalt.edu></a><br>
          <b>Sent:</b> Wednesday, January 5, 2022 12:36 PM<br>
          <b>To:</b> Archivesspace Users Group
          <a class="moz-txt-link-rfc2396E" href="mailto:archivesspace_users_group@lyralists.lyrasis.org"><archivesspace_users_group@lyralists.lyrasis.org></a><br>
          <b>Subject:</b> Re: [Archivesspace_Users_Group] Advice on what
          to look for in AS logs after printing error?</font>
        <div> </div>
      </div>
      <style>@font-face
        {font-family:"Cambria Math"}@font-face
        {font-family:Calibri}@font-face
        {font-family:Garamond}@font-face
        {font-family:"Century Gothic"}p.x_MsoNormal, li.x_MsoNormal, div.x_MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}a:link, span.x_MsoHyperlink
        {color:#0563C1;
        text-decoration:underline}a:visited, span.x_MsoHyperlinkFollowed
        {color:#954F72;
        text-decoration:underline}p.x_msonormal0, li.x_msonormal0, div.x_msonormal0
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}p.x_xmsonormal, li.x_xmsonormal, div.x_xmsonormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}p.x_xmsochpdefault, li.x_xmsochpdefault, div.x_xmsochpdefault
        {margin-right:0in;
        margin-left:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}span.x_xmsohyperlink
        {color:#0563C1;
        text-decoration:underline}span.x_xmsohyperlinkfollowed
        {color:#954F72;
        text-decoration:underline}span.x_xemailstyle17
        {font-family:"Garamond",serif;
        color:#2E74B5}span.x_EmailStyle23
        {font-family:"Garamond",serif;
        color:#2E74B5}.x_MsoChpDefault
        {font-size:10.0pt}div.x_WordSection1
        {}</style>
      <div link="#0563C1" vlink="#954F72" lang="EN-US">
        <div class="x_WordSection1">
          <p class="x_MsoNormal"><span style="font-size:12.0pt;
              font-family:"Garamond",serif; color:#2E74B5">Thank
              you for that reminder, Blake!  Another question: the print
              action was being run from the following pages.  Wouldn’t
              clicking the AS print button itself register in the logs? 
              If so, how could I efficiently find those lines?</span></p>
          <p class="x_MsoNormal"><span style="font-size:12.0pt;
              font-family:"Garamond",serif; color:#2E74B5"> </span></p>
          <p class="x_MsoNormal"><a href="https://archivesspace.ubalt.edu/repositories/2/resources/92" target="_blank" moz-do-not-send="true">https://archivesspace.ubalt.edu/repositories/2/resources/92</a><br>
            <br>
            <a href="https://archivesspace.ubalt.edu/repositories/2/resources/126" target="_blank" moz-do-not-send="true">https://archivesspace.ubalt.edu/repositories/2/resources/126</a><br>
            <br>
            <a href="https://archivesspace.ubalt.edu/repositories/2/resources/21" target="_blank" moz-do-not-send="true">https://archivesspace.ubalt.edu/repositories/2/resources/21</a><span style="font-size:12.0pt;
              font-family:"Garamond",serif; color:#2E74B5"></span></p>
          <p class="x_MsoNormal"><span style="font-size:12.0pt;
              font-family:"Garamond",serif; color:#2E74B5"> </span></p>
          <div>
            <p class="x_MsoNormal"><b><span style="font-size:14.0pt;
                  font-family:"Century Gothic",sans-serif;
                  color:#4472C4">Kyle Breneman</span></b></p>
            <p class="x_MsoNormal"><span style="font-size:12.0pt;
                font-family:"Century Gothic",sans-serif;
                color:#70AD47">Integrated Digital Services Librarian</span></p>
            <p class="x_MsoNormal"><span style="font-size:12.0pt;
                font-family:"Century Gothic",sans-serif;
                color:black">The University of Baltimore</span></p>
            <p class="x_MsoNormal"><a href="mailto:kbreneman@ubalt.edu" moz-do-not-send="true"><span style="font-size:12.0pt;
                  font-family:"Century Gothic",sans-serif">kbreneman@ubalt.edu</span></a><span style="font-size:12.0pt; font-family:"Century
                Gothic",sans-serif; color:black"></span></p>
            <p class="x_MsoNormal"><i><span style="font-size:10.0pt;
                  font-family:"Century Gothic",sans-serif;
                  color:#2E74B5">I believe in freedom of thought and
                </span></i></p>
            <p class="x_MsoNormal"><i><span style="font-size:10.0pt;
                  font-family:"Century Gothic",sans-serif;
                  color:#2E74B5">freedom of speech. Do you?</span></i></p>
          </div>
          <p class="x_MsoNormal"><span style="font-size:12.0pt;
              font-family:"Garamond",serif; color:#2E74B5"> </span></p>
          <div>
            <div style="border:none; border-top:solid #E1E1E1 1.0pt;
              padding:3.0pt 0in 0in 0in">
              <p class="x_MsoNormal"><b>From:</b>
                <a class="moz-txt-link-abbreviated" href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org">archivesspace_users_group-bounces@lyralists.lyrasis.org</a>
<a class="moz-txt-link-rfc2396E" href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org"><archivesspace_users_group-bounces@lyralists.lyrasis.org></a>
                <b>On Behalf Of </b>Blake Carver<br>
                <b>Sent:</b> Wednesday, January 5, 2022 12:31 PM<br>
                <b>To:</b> Archivesspace Users Group
                <a class="moz-txt-link-rfc2396E" href="mailto:archivesspace_users_group@lyralists.lyrasis.org"><archivesspace_users_group@lyralists.lyrasis.org></a><br>
                <b>Subject:</b> Re: [Archivesspace_Users_Group] Advice
                on what to look for in AS logs after printing error?</p>
            </div>
          </div>
          <p class="x_MsoNormal"> </p>
          <div style="border:solid black 1.0pt; padding:2.0pt 2.0pt
            2.0pt 2.0pt">
            <p class="x_MsoNormal" style="background:pink"><b><span style="color:pink">[</span></b><b><span style="color:black">EXTERNAL EMAIL: This message
                  originated from a non-UBalt email system. Hover over
                  any links before clicking and use caution when opening
                  attachments.</span></b><b><span style="color:pink">]</span></b></p>
          </div>
          <p class="x_MsoNormal"> </p>
          <div>
            <div>
              <p class="x_MsoNormal"><span style="font-size:12.0pt;
                  color:black">grep the logs for  ERROR or FATAL</span></p>
            </div>
            <div class="x_MsoNormal" style="text-align:center" align="center">
              <hr width="98%" size="3" align="center">
            </div>
            <div id="x_divRplyFwdMsg">
              <p class="x_MsoNormal"><b><span style="color:black">From:</span></b><span style="color:black">
                </span><a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org" moz-do-not-send="true">archivesspace_users_group-bounces@lyralists.lyrasis.org</a><span style="color:black"> <</span><a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org" moz-do-not-send="true">archivesspace_users_group-bounces@lyralists.lyrasis.org</a><span style="color:black">> on behalf of Kyle Breneman
                  <</span><a href="mailto:kbreneman@ubalt.edu" moz-do-not-send="true">kbreneman@ubalt.edu</a><span style="color:black">><br>
                  <b>Sent:</b> Wednesday, January 5, 2022 12:28 PM<br>
                  <b>To:</b> </span><a href="mailto:archivesspace_users_group@lyralists.lyrasis.org" moz-do-not-send="true">archivesspace_users_group@lyralists.lyrasis.org</a><span style="color:black"> <</span><a href="mailto:archivesspace_users_group@lyralists.lyrasis.org" moz-do-not-send="true">archivesspace_users_group@lyralists.lyrasis.org</a><span style="color:black">><br>
                  <b>Subject:</b> [Archivesspace_Users_Group] Advice on
                  what to look for in AS logs after printing error?</span>
              </p>
              <div>
                <p class="x_MsoNormal"> </p>
              </div>
            </div>
            <div>
              <div>
                <p class="x_xmsonormal"><span style="font-size:12.0pt;
                    font-family:"Garamond",serif;
                    color:#2E74B5">Our archives staff have noticed that
                    AS tends to get hung up when users click the Print
                    button on some of our largest collections.  Campus
                    IT tested this today.  The server did not hang for
                    them, but the print action also <i>did not complete</i>. 
                    They got a very, very generic error message
                    (attached).
                  </span></p>
                <p class="x_xmsonormal"><span style="font-size:12.0pt;
                    font-family:"Garamond",serif;
                    color:#2E74B5"> </span></p>
                <p class="x_xmsonormal"><span style="font-size:12.0pt;
                    font-family:"Garamond",serif;
                    color:#2E74B5">I have access to the ArchivesSpace
                    files on the server, including the /logs directory,
                    but I’m not sure how to parse the logs for clues. 
                    Does anyone have advice for how I can sift through
                    the logs?  </span></p>
                <p class="x_xmsonormal"><span style="font-size:12.0pt;
                    font-family:"Garamond",serif;
                    color:#2E74B5"> </span></p>
                <p class="x_xmsonormal"><b><span style="font-size:14.0pt; font-family:"Century
                      Gothic",sans-serif; color:#4472C4">Kyle
                      Breneman</span></b></p>
                <p class="x_xmsonormal"><span style="font-size:12.0pt;
                    font-family:"Century Gothic",sans-serif;
                    color:#70AD47">Integrated Digital Services Librarian</span></p>
                <p class="x_xmsonormal"><span style="font-size:12.0pt;
                    font-family:"Century Gothic",sans-serif;
                    color:black">The University of Baltimore</span></p>
                <p class="x_xmsonormal"><a href="mailto:kbreneman@ubalt.edu" moz-do-not-send="true"><span style="font-size:12.0pt; font-family:"Century
                      Gothic",sans-serif">kbreneman@ubalt.edu</span></a></p>
                <p class="x_xmsonormal"><i><span style="font-size:10.0pt; font-family:"Century
                      Gothic",sans-serif; color:#2E74B5">I believe
                      in freedom of thought and
                    </span></i></p>
                <p class="x_xmsonormal"><i><span style="font-size:10.0pt; font-family:"Century
                      Gothic",sans-serif; color:#2E74B5">freedom of
                      speech. Do you?</span></i></p>
                <p class="x_xmsonormal"> </p>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Archivesspace_Users_Group mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Archivesspace_Users_Group@lyralists.lyrasis.org">Archivesspace_Users_Group@lyralists.lyrasis.org</a>
<a class="moz-txt-link-freetext" href="http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group">http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group</a>
</pre>
    </blockquote>
  </body>
</html>