<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="color:rgb(46, 116, 181);font-family:Garamond, serif;background-color:rgb(255, 255, 255);display:inline !important">“Failed to clean XML: The reference to entity "W" must end with the ';' delimiter.”</span><br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="color:rgb(46, 116, 181);font-family:Garamond, serif;background-color:rgb(255, 255, 255);display:inline !important"><br>
</span></div>
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
It's probably still a & thate error saying it's unhappy about an & next to a W</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Look for something like <b>B&W</b> or <b>A&W</b></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);">
Something like this should find it </div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
select * from note where note like '%&W%'</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
It's usually in a note, but not always. Could be a resource title. Could be anywhere, hopefully you have something that can search across all tables easily.</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);">
This haystack is pretty tall.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</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>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> archivesspace_users_group-bounces@lyralists.lyrasis.org <archivesspace_users_group-bounces@lyralists.lyrasis.org> on behalf of Kyle Breneman
 <kbreneman@ubalt.edu><br>
<b>Sent:</b> Thursday, January 6, 2022 9:28 AM<br>
<b>To:</b> Archivesspace Users Group <archivesspace_users_group@lyralists.lyrasis.org><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"}
@font-face
        {font-family:Consolas}
@font-face
        {}
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}
code
        {font-family:"Courier New"}
pre
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New"}
p.x_msonormal0, li.x_msonormal0, div.x_msonormal0
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
span.x_HTMLPreformattedChar
        {font-family:Consolas}
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_xmsonormal0, li.x_xmsonormal0, div.x_xmsonormal0
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
p.x_xxmsonormal, li.x_xxmsonormal, div.x_xxmsonormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
p.x_xxmsochpdefault, li.x_xxmsochpdefault, div.x_xxmsochpdefault
        {margin-right:0in;
        margin-left:0in;
        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:10.0pt;
        font-family:"Calibri",sans-serif}
span.x_xmsohyperlink
        {color:#0563C1;
        text-decoration:underline}
span.x_xmsohyperlinkfollowed
        {color:#954F72;
        text-decoration:underline}
span.x_xxmsohyperlink
        {color:#0563C1;
        text-decoration:underline}
span.x_xxmsohyperlinkfollowed
        {color:#954F72;
        text-decoration:underline}
span.x_xxemailstyle17
        {font-family:"Garamond",serif;
        color:#2E74B5}
span.x_xemailstyle23
        {font-family:"Garamond",serif;
        color:#2E74B5}
span.x_EmailStyle33
        {font-family:"Garamond",serif;
        color:#2E74B5}
span.x_EmailStyle34
        {font-family:"Garamond",serif;
        color:#2E74B5}
.x_MsoChpDefault
        {font-size:10.0pt}
@page WordSection1
        {margin:1.0in 1.0in 1.0in 1.0in}
div.x_WordSection1
        {}
-->
</style>
<div lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="x_WordSection1">
<p class="x_MsoNormal"><span style="font-size:12.0pt; font-family:"Garamond",serif; color:#2E74B5">Andrew, thank you for taking the time to point me to your Github fix.  I
<i>do</i> see the “Failed to clean XML” error in my logs, but in each case it is seemingly upset about missing semicolons: “Failed to clean XML: The reference to entity "W" must end with the ';' delimiter.”</span></p>
<p class="x_MsoNormal"><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">If I understand your Github repo code, it is narrowly targeted at dealing with situations where &amp is immediately followed by a digit, and so would not help
 in my situation.  Have I got that right?</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"><span style="color:#2E74B5"><a href="mailto:kbreneman@ubalt.edu"><span style="font-size:12.0pt; font-family:"Century Gothic",sans-serif">kbreneman@ubalt.edu</span></a></span><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> archivesspace_users_group-bounces@lyralists.lyrasis.org <archivesspace_users_group-bounces@lyralists.lyrasis.org>
<b>On Behalf Of </b>Andrew Morrison<br>
<b>Sent:</b> Thursday, January 6, 2022 5:14 AM<br>
<b>To:</b> archivesspace_users_group@lyralists.lyrasis.org<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>
<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> </p>
<p><a href="https://github.com/archivesspace/archivesspace/pull/2553">https://github.com/archivesspace/archivesspace/pull/2553</a></p>
<p> </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.</p>
<p> </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.
</p>
<p> </p>
<p>Andrew.</p>
<p> </p>
<p> </p>
<div>
<p class="x_MsoNormal">On 05/01/2022 18:14, Blake Carver wrote:</p>
</div>
<blockquote style="margin-top:5.0pt; margin-bottom:5.0pt">
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black">It's going to be a bit of looking for a bunch of needles in a very short hay stack kinda thing.</span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black">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.</span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black">You could also look for "92" "126" and "21" I think the resource number should show up around the error as well.</span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black">Also wouldn't surprise me to see this error in particular, but not always:</span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div>
<div style="border:solid #C2C8CC 1.0pt; padding:5.0pt 8.0pt 5.0pt 8.0pt; background:#F8F9F9">
<pre style="line-height:14.25pt; background:#F8F9F9; word-break:break-all; border:none; padding:0in; border-radius:3px; outline:0px"><code><span style="font-size:9.0pt; color:#68737D">RuntimeError (Failed to clean XML: The entity name must immediately follow the '&' in the entity reference.):</span></code><span style="font-size:9.0pt; font-family:Consolas; color:#68737D"></span></pre>
</div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div class="x_MsoNormal" align="center" style="text-align:center">
<hr size="3" width="98%" align="center">
</div>
<div id="x_divRplyFwdMsg">
<p class="x_MsoNormal"><b><span style="color:black">From:</span></b><span style="color:black">
<a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org">archivesspace_users_group-bounces@lyralists.lyrasis.org</a>
<a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org"><archivesspace_users_group-bounces@lyralists.lyrasis.org></a> on behalf of Kyle Breneman
<a 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 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?</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">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_xmsonormal"><span style="font-size:12.0pt; font-family:"Garamond",serif; color:#2E74B5"> </span></p>
<p class="x_xmsonormal"><a href="https://archivesspace.ubalt.edu/repositories/2/resources/92" target="_blank">https://archivesspace.ubalt.edu/repositories/2/resources/92</a><br>
<br>
<a href="https://archivesspace.ubalt.edu/repositories/2/resources/126" target="_blank">https://archivesspace.ubalt.edu/repositories/2/resources/126</a><br>
<br>
<a href="https://archivesspace.ubalt.edu/repositories/2/resources/21" target="_blank">https://archivesspace.ubalt.edu/repositories/2/resources/21</a></p>
<p class="x_xmsonormal"><span style="font-size:12.0pt; font-family:"Garamond",serif; color:#2E74B5"> </span></p>
<div>
<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"><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>
</div>
<p class="x_xmsonormal"><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_xmsonormal"><b>From:</b> <a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org">
archivesspace_users_group-bounces@lyralists.lyrasis.org</a> <a 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 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_xmsonormal"> </p>
<div style="border:solid black 1.0pt; padding:2.0pt 2.0pt 2.0pt 2.0pt">
<p class="x_xmsonormal" style="background:pink"><b><span style="color:pink">[</span><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><span style="color:pink">]</span></b></p>
</div>
<p class="x_xmsonormal"> </p>
<div>
<div>
<p class="x_xmsonormal"><span style="font-size:12.0pt; color:black">grep the logs for  ERROR or FATAL</span></p>
</div>
<div class="x_MsoNormal" align="center" style="text-align:center">
<hr size="3" width="98%" align="center">
</div>
<div id="x_x_divRplyFwdMsg">
<p class="x_xmsonormal"><b><span style="color:black">From:</span></b><span style="color:black">
</span><a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org">archivesspace_users_group-bounces@lyralists.lyrasis.org</a><span style="color:black"> <</span><a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org">archivesspace_users_group-bounces@lyralists.lyrasis.org</a><span style="color:black">>
 on behalf of Kyle Breneman <</span><a href="mailto:kbreneman@ubalt.edu">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">archivesspace_users_group@lyralists.lyrasis.org</a><span style="color:black"> <</span><a href="mailto:archivesspace_users_group@lyralists.lyrasis.org">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_xmsonormal"> </p>
</div>
</div>
<div>
<div>
<p class="x_xxmsonormal"><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_xxmsonormal"><span style="font-size:12.0pt; font-family:"Garamond",serif; color:#2E74B5"> </span></p>
<p class="x_xxmsonormal"><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_xxmsonormal"><span style="font-size:12.0pt; font-family:"Garamond",serif; color:#2E74B5"> </span></p>
<p class="x_xxmsonormal"><b><span style="font-size:14.0pt">Kyle Breneman</span></b></p>
<p class="x_xxmsonormal"><span style="font-size:12.0pt; font-family:"Century Gothic",sans-serif; color:#70AD47">Integrated Digital Services Librarian</span></p>
<p class="x_xxmsonormal"><span style="font-size:12.0pt; font-family:"Century Gothic",sans-serif; color:black">The University of Baltimore</span></p>
<p class="x_xxmsonormal"><a href="mailto:kbreneman@ubalt.edu"><span style="font-size:12.0pt; font-family:"Century Gothic ,sans-serif",serif">kbreneman@ubalt.edu</span></a></p>
<p class="x_xxmsonormal"><i><span style="font-size:10.0pt">I believe in freedom of thought and
</span></i></p>
<p class="x_xxmsonormal"><i><span style="font-size:10.0pt">freedom of speech. Do you?</span></i></p>
<p class="x_xxmsonormal"> </p>
</div>
</div>
</div>
</div>
</div>
<p class="x_MsoNormal"><br>
<br>
</p>
<pre>_______________________________________________</pre>
<pre>Archivesspace_Users_Group mailing list</pre>
<pre><a href="mailto:Archivesspace_Users_Group@lyralists.lyrasis.org">Archivesspace_Users_Group@lyralists.lyrasis.org</a></pre>
<pre><a href="http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group">http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group</a></pre>
</blockquote>
</div>
</div>
</div>
</body>
</html>