<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:DengXian;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"\@DengXian";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"Helvetica Neue";
        panose-1:2 0 5 3 0 0 0 2 0 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
h3
        {mso-style-priority:9;
        mso-style-link:"Heading 3 Char";
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:13.5pt;
        font-family:"Calibri",sans-serif;
        font-weight:bold;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.Heading3Char
        {mso-style-name:"Heading 3 Char";
        mso-style-priority:9;
        mso-style-link:"Heading 3";
        font-family:"Calibri Light",sans-serif;
        color:#1F3763;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Consolas",serif;}
p.xmsonormal, li.xmsonormal, div.xmsonormal
        {mso-style-name:x_msonormal;
        margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Calibri",sans-serif;}
p.xmsonormal0, li.xmsonormal0, div.xmsonormal0
        {mso-style-name:x_msonormal0;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
p.xmsochpdefault, li.xmsochpdefault, div.xmsochpdefault
        {mso-style-name:x_msochpdefault;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:10.0pt;
        font-family:"Calibri",sans-serif;}
span.xmsohyperlink
        {mso-style-name:x_msohyperlink;
        color:#0563C1;
        text-decoration:underline;}
span.xmsohyperlinkfollowed
        {mso-style-name:x_msohyperlinkfollowed;
        color:#954F72;
        text-decoration:underline;}
span.xheading3char
        {mso-style-name:x_heading3char;
        font-family:"Calibri",sans-serif;
        font-weight:bold;}
span.xhtmlpreformattedchar
        {mso-style-name:x_htmlpreformattedchar;
        font-family:"Courier New";}
span.xemailstyle21
        {mso-style-name:x_emailstyle21;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.xemailstyle22
        {mso-style-name:x_emailstyle22;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle31
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Thanks Blake!  We do have “&” in accession records (in title and various other fields).  It’s going to be a lot of work to replace all of them.  Is this something the software can look for and take care of?  We were able to get the same
 report in other formats with no problem (JSON, RTF, HTML).  <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">-- <o:p></o:p></p>
</div>
<p class="MsoNormal">Bin <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:12.0pt;color:black">From: </span></b><span style="font-size:12.0pt;color:black"><archivesspace_users_group-bounces@lyralists.lyrasis.org> on behalf of Blake Carver <blake.carver@lyrasis.org><br>
<b>Reply-To: </b>Archivesspace Group <archivesspace_users_group@lyralists.lyrasis.org><br>
<b>Date: </b>Thursday, July 25, 2019 at 2:15 PM<br>
<b>To: </b>Archivesspace Group <archivesspace_users_group@lyralists.lyrasis.org><br>
<b>Subject: </b>Re: [Archivesspace_Users_Group] FW: Unable to create Accession Report in PDF<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black">"The entity name must immediately follow the '&' in the entity reference."<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black">That makes me think there's an ampersand in that record and it's choking on it when it tries to make the PDF.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black">Is there anything in there with ampersands? Like "J&J Automotive" or something?<o:p></o:p></span></p>
</div>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="2" width="98%" align="center">
</div>
<div id="divRplyFwdMsg">
<p class="MsoNormal"><b><span style="color:black">From:</span></b><span style="color:black"> archivesspace_users_group-bounces@lyralists.lyrasis.org <archivesspace_users_group-bounces@lyralists.lyrasis.org> on behalf of Zhang, Bin <bzhang@csus.edu><br>
<b>Sent:</b> Thursday, July 25, 2019 4:26 PM<br>
<b>To:</b> Archivesspace Group <archivesspace_users_group@lyralists.lyrasis.org><br>
<b>Subject:</b> [Archivesspace_Users_Group] FW: Unable to create Accession Report in PDF</span>
<o:p></o:p></p>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="xmsonormal"><span style="font-size:11.0pt">We are having problem creating Accession Report in PDF format.  All other formats (JSON, CSV, RTF) are working, just not the PDF format.  I have attached log below.</span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-size:11.0pt"> </span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-size:11.0pt">Any help is greatly appreciated.</span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-size:11.0pt"> </span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-size:11.0pt">Bin</span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-size:11.0pt"> </span><o:p></o:p></p>
<div style="border:none;border-bottom:solid #DDDDDD 1.0pt;padding:0in 0in 0in 0in">
<p class="xmsonormal" style="background:#F6F6F6"><span style="font-size:18.0pt;font-family:"Helvetica Neue";color:#333333">Log</span><o:p></o:p></p>
<p class="xmsonormal" style="background:#F6F6F6;vertical-align:middle"><span style="font-size:18.0pt;font-family:"Helvetica Neue";color:#333333">Follow Log</span><o:p></o:p></p>
</div>
<div style="border:solid #CCCCCC 1.0pt;padding:3.0pt 8.0pt 3.0pt 8.0pt">
<p class="xmsonormal" style="margin-bottom:7.5pt;background:#333333;word-break:break-all">
<span style="font-size:10.0pt;font-family:"Courier New";color:#33EE33">Generating report</span><o:p></o:p></p>
<p class="xmsonormal" style="margin-bottom:7.5pt;background:#333333;word-break:break-all">
<span style="font-size:10.0pt;font-family:"Courier New";color:#33EE33">Can't load the XML resource (using TRaX transformer). org.xml.sax.SAXParseException; lineNumber: 316990; columnNumber: 95; The entity name must immediately follow the '&' in the entity reference.</span><o:p></o:p></p>
<p class="xmsonormal" style="margin-bottom:7.5pt;background:#333333;word-break:break-all">
<span style="font-size:10.0pt;font-family:"Courier New";color:#33EE33">org.xhtmlrenderer.resource.XMLResource$XMLResourceBuilder.createXMLResource(org/xhtmlrenderer/resource/XMLResource.java:191)</span><o:p></o:p></p>
<p class="xmsonormal" style="margin-bottom:7.5pt;background:#333333;word-break:break-all">
<span style="font-size:10.0pt;font-family:"Courier New";color:#33EE33">org.xhtmlrenderer.resource.XMLResource.load(org/xhtmlrenderer/resource/XMLResource.java:71)</span><o:p></o:p></p>
<p class="xmsonormal" style="margin-bottom:7.5pt;background:#333333;word-break:break-all">
<span style="font-size:10.0pt;font-family:"Courier New";color:#33EE33">org.xhtmlrenderer.swing.NaiveUserAgent.getXMLResource(org/xhtmlrenderer/swing/NaiveUserAgent.java:211)</span><o:p></o:p></p>
<p class="xmsonormal" style="margin-bottom:7.5pt;background:#333333;word-break:break-all">
<span style="font-size:10.0pt;font-family:"Courier New";color:#33EE33">org.xhtmlrenderer.pdf.ITextRenderer.loadDocument(org/xhtmlrenderer/pdf/ITextRenderer.java:134)</span><o:p></o:p></p>
<p class="xmsonormal" style="margin-bottom:7.5pt;background:#333333;word-break:break-all">
<span style="font-size:10.0pt;font-family:"Courier New";color:#33EE33">org.xhtmlrenderer.pdf.ITextRenderer.setDocument(org/xhtmlrenderer/pdf/ITextRenderer.java:149)</span><o:p></o:p></p>
<p class="xmsonormal" style="margin-bottom:7.5pt;background:#333333;word-break:break-all">
<span style="font-size:10.0pt;font-family:"Courier New";color:#33EE33">java.lang.reflect.Method.invoke(java/lang/reflect/Method.java:498)</span><o:p></o:p></p>
<p class="xmsonormal" style="margin-bottom:7.5pt;background:#333333;word-break:break-all">
<span style="font-size:10.0pt;font-family:"Courier New";color:#33EE33">org.jruby.javasupport.JavaMethod.invokeDirectWithExceptionHandling(org/jruby/javasupport/JavaMethod.java:453)</span><o:p></o:p></p>
<p class="xmsonormal" style="margin-bottom:7.5pt;background:#333333;word-break:break-all">
<span style="font-size:10.0pt;font-family:"Courier New";color:#33EE33">org.jruby.javasupport.JavaMethod.invokeDirect(org/jruby/javasupport/JavaMethod.java:314)</span><o:p></o:p></p>
<p class="xmsonormal" style="margin-bottom:7.5pt;background:#333333;word-break:break-all">
<span style="font-size:10.0pt;font-family:"Courier New";color:#33EE33">RUBY.generate_pdf(/data/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/reports/report_generator.rb:54)</span><o:p></o:p></p>
<p class="xmsonormal" style="margin-bottom:7.5pt;background:#333333;word-break:break-all">
<span style="font-size:10.0pt;font-family:"Courier New";color:#33EE33">RUBY.generate(/data/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/reports/report_generator.rb:26)</span><o:p></o:p></p>
<p class="xmsonormal" style="margin-bottom:7.5pt;background:#333333;word-break:break-all">
<span style="font-size:10.0pt;font-family:"Courier New";color:#33EE33">RUBY.run(/data/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/job_runners/reports_runner.rb:39)</span><o:p></o:p></p>
<p class="xmsonormal" style="margin-bottom:7.5pt;background:#333333;word-break:break-all">
<span style="font-size:10.0pt;font-family:"Courier New";color:#33EE33">data.archivesspace.data.tmp.jetty_minus_0_dot_0_dot_0_dot_0_minus_8089_minus_backend_dot_war_minus___minus_any_minus_.webapp.WEB_minus_INF.app.lib.background_job_queue.invokeOther45:run(data/archivesspace/data/tmp/jetty_minus_0_dot_0_dot_0_dot_0_minus_8089_minus_backend_dot_war_minus___minus_any_minus_/webapp/WEB_minus_INF/app/lib//data/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/background_job_queue.rb:126)</span><o:p></o:p></p>
<p class="xmsonormal" style="margin-bottom:7.5pt;background:#333333;word-break:break-all">
<span style="font-size:10.0pt;font-family:"Courier New";color:#33EE33">data.archivesspace.data.tmp.jetty_minus_0_dot_0_dot_0_dot_0_minus_8089_minus_backend_dot_war_minus___minus_any_minus_.webapp.WEB_minus_INF.app.lib.background_job_queue.run_pending_job(/data/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/background_job_queue.rb:126)</span><o:p></o:p></p>
<p class="xmsonormal" style="margin-bottom:7.5pt;background:#333333;word-break:break-all">
<span style="font-size:10.0pt;font-family:"Courier New";color:#33EE33">RUBY.block in start_background_thread(/data/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/background_job_queue.rb:169)</span><o:p></o:p></p>
<p class="xmsonormal" style="margin-bottom:7.5pt;background:#333333;word-break:break-all">
<span style="font-size:10.0pt;font-family:"Courier New";color:#33EE33">org.jruby.RubyProc.call(org/jruby/RubyProc.java:289)</span><o:p></o:p></p>
<p class="xmsonormal" style="margin-bottom:7.5pt;background:#333333;word-break:break-all">
<span style="font-size:10.0pt;font-family:"Courier New";color:#33EE33">org.jruby.RubyProc.call(org/jruby/RubyProc.java:246)</span><o:p></o:p></p>
<p class="xmsonormal" style="margin-bottom:7.5pt;background:#333333;word-break:break-all">
<span style="font-size:10.0pt;font-family:"Courier New";color:#33EE33">java.lang.Thread.run(java/lang/Thread.java:748)</span><o:p></o:p></p>
<p class="xmsonormal" style="margin-bottom:7.5pt;background:#333333;word-break:break-all">
<span style="font-size:10.0pt;font-family:"Courier New";color:#33EE33">Done.</span><o:p></o:p></p>
</div>
<p class="xmsonormal"><span style="font-size:11.0pt"> </span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-size:11.0pt"> </span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-size:11.0pt;color:#1F497D">---</span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-size:11.0pt;color:#1F497D">Bin Zhang</span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-size:11.0pt;color:#1F497D">Digital Information Services Librarian</span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-size:11.0pt;color:#1F497D">Library Systems & IT Services, University Library</span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-size:11.0pt;color:#1F497D">California State University, Sacramento</span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-size:11.0pt;color:#1F497D">+1 (916) 278-5664 | <a href="mailto:bzhang@csus.edu"><span style="color:#954F72">bzhang@csus.edu</span></a></span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-size:11.0pt;color:black">Zoom: https://csus.zoom.us/my/<b>bzhang</b></span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-size:11.0pt;color:black"> </span><o:p></o:p></p>
<p class="xmsonormal"> <o:p></o:p></p>
</div>
</div>
</div>
</body>
</html>