<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<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);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
"The entity name must immediately follow the '&' in the entity reference."</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);">
That makes me think there's an ampersand in that record and it's choking on it when it tries to make the PDF.</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);">
Is there anything in there with ampersands? Like "J&J Automotive" or something?</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 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</font>
<div> </div>
</div>
<style>
<!--
@font-face
{font-family:"Cambria Math"}
@font-face
{font-family:DengXian}
@font-face
{font-family:Calibri}
@font-face
{}
@font-face
{font-family:"Helvetica Neue"}
p.x_MsoNormal, li.x_MsoNormal, div.x_MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Calibri",sans-serif}
h3
{margin-right:0in;
margin-left:0in;
font-size:13.5pt;
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}
pre
{margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New"}
p.x_msonormal0, li.x_msonormal0, div.x_msonormal0
{margin-right:0in;
margin-left:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif}
span.x_Heading3Char
{font-family:"Calibri",sans-serif;
font-weight:bold}
span.x_HTMLPreformattedChar
{font-family:"Courier New"}
span.x_EmailStyle21
{font-family:"Calibri",sans-serif;
color:windowtext}
span.x_EmailStyle22
{font-family:"Calibri",sans-serif;
color:windowtext}
.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: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></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt"> </span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt">Any help is greatly appreciated.</span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt"> </span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt">Bin</span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt"> </span></p>
<div style="border:none; border-bottom:solid #DDDDDD 1.0pt; padding:0in 0in 0in 0in">
<p class="x_MsoNormal" style="background:#F6F6F6"><span style="font-size:18.0pt; font-family:"Helvetica Neue"; color:#333333">Log</span></p>
<p class="x_MsoNormal" style="background:#F6F6F6; vertical-align:middle"><span style="font-size:18.0pt; font-family:"Helvetica Neue"; color:#333333">Follow Log</span></p>
</div>
<div style="border:solid #CCCCCC 1.0pt; padding:3.0pt 8.0pt 3.0pt 8.0pt">
<p class="x_MsoNormal" style="margin-right:0in; margin-bottom:7.5pt; margin-left:0in; background:#333333; word-break:break-all">
<span style="font-size:10.0pt; font-family:"Courier New"; color:#33EE33">Generating report</span></p>
<p class="x_MsoNormal" style="margin-right:0in; margin-bottom:7.5pt; margin-left:0in; 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></p>
<p class="x_MsoNormal" style="margin-right:0in; margin-bottom:7.5pt; margin-left:0in; 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></p>
<p class="x_MsoNormal" style="margin-right:0in; margin-bottom:7.5pt; margin-left:0in; 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></p>
<p class="x_MsoNormal" style="margin-right:0in; margin-bottom:7.5pt; margin-left:0in; 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></p>
<p class="x_MsoNormal" style="margin-right:0in; margin-bottom:7.5pt; margin-left:0in; 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></p>
<p class="x_MsoNormal" style="margin-right:0in; margin-bottom:7.5pt; margin-left:0in; 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></p>
<p class="x_MsoNormal" style="margin-right:0in; margin-bottom:7.5pt; margin-left:0in; 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></p>
<p class="x_MsoNormal" style="margin-right:0in; margin-bottom:7.5pt; margin-left:0in; 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></p>
<p class="x_MsoNormal" style="margin-right:0in; margin-bottom:7.5pt; margin-left:0in; 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></p>
<p class="x_MsoNormal" style="margin-right:0in; margin-bottom:7.5pt; margin-left:0in; 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></p>
<p class="x_MsoNormal" style="margin-right:0in; margin-bottom:7.5pt; margin-left:0in; 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></p>
<p class="x_MsoNormal" style="margin-right:0in; margin-bottom:7.5pt; margin-left:0in; 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></p>
<p class="x_MsoNormal" style="margin-right:0in; margin-bottom:7.5pt; margin-left:0in; 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></p>
<p class="x_MsoNormal" style="margin-right:0in; margin-bottom:7.5pt; margin-left:0in; 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></p>
<p class="x_MsoNormal" style="margin-right:0in; margin-bottom:7.5pt; margin-left:0in; 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></p>
<p class="x_MsoNormal" style="margin-right:0in; margin-bottom:7.5pt; margin-left:0in; 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></p>
<p class="x_MsoNormal" style="margin-right:0in; margin-bottom:7.5pt; margin-left:0in; 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></p>
<p class="x_MsoNormal" style="margin-right:0in; margin-bottom:7.5pt; margin-left:0in; 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></p>
<p class="x_MsoNormal" style="margin-right:0in; margin-bottom:7.5pt; margin-left:0in; background:#333333; word-break:break-all">
<span style="font-size:10.0pt; font-family:"Courier New"; color:#33EE33">Done.</span></p>
</div>
<p class="x_MsoNormal"><span style="font-size:11.0pt"> </span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt"> </span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; color:#1F497D">---</span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; color:#1F497D">Bin Zhang</span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; color:#1F497D">Digital Information Services Librarian</span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; color:#1F497D">Library Systems & IT Services, University Library</span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; color:#1F497D">California State University, Sacramento</span></p>
<p class="x_MsoNormal"><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></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; color:black">Zoom: https://csus.zoom.us/my/<b>bzhang</b></span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; color:black"> </span></p>
<p class="x_MsoNormal"> </p>
</div>
</div>
</body>
</html>