<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);">
Depending on your version it'll be a slightly different issue, but something somewhere in there has an ampersand that is causing the PDF generator to barf.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
There's one report here:</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<a href="https://archivesspace.atlassian.net/browse/ANW-1340">https://archivesspace.atlassian.net/browse/ANW-1340</a><br>
</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);">
I've seen these most often in notes and usually on something like J&J or B&T, some kind of a note with an ampersand withOUT any spaces around it. Usually changing those to J & & or B & T will fix it. You can also change it to &amp; and that might do the trick.
 Older versions of ArchivesSpace have more of those bugs than newer versions.</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>
<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 Esh, John C.
 <jesh@towson.edu><br>
<b>Sent:</b> Wednesday, September 22, 2021 3:22 PM<br>
<b>To:</b> archivesspace_users_group@lyralists.lyrasis.org <archivesspace_users_group@lyralists.lyrasis.org><br>
<b>Subject:</b> [Archivesspace_Users_Group] Exporting to PDF errors</font>
<div> </div>
</div>
<style>
<!--
@font-face
        {font-family:Wingdings}
@font-face
        {font-family:"Cambria Math"}
@font-face
        {font-family:Calibri}
p.x_MsoNormal, li.x_MsoNormal, div.x_MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
p.x_MsoListParagraph, li.x_MsoListParagraph, div.x_MsoListParagraph
        {margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
span.x_EmailStyle17
        {font-family:"Calibri",sans-serif;
        color:windowtext}
.x_MsoChpDefault
        {font-family:"Calibri",sans-serif}
@page WordSection1
        {margin:1.0in 1.0in 1.0in 1.0in}
div.x_WordSection1
        {}
ol
        {margin-bottom:0in}
ul
        {margin-bottom:0in}
-->
</style>
<div lang="EN-US" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="x_WordSection1">
<p class="x_MsoNormal">For several finding aids, when I try to export to PDF, I’m getting this error…</p>
<p class="x_MsoNormal"> </p>
<div style="border:solid #CCCCCC 1.0pt; padding:3.0pt 8.0pt 3.0pt 8.0pt; background:#333333">
<p class="x_MsoNormal" style="margin-right:0in; margin-bottom:7.5pt; margin-left:0in; background:#333333; word-break:break-all; border:none; padding:0in">
<span style="font-size:10.0pt; font-family:"Courier New"; color:#33EE33">Generating PDF for Athletics Department records 
</span></p>
<p class="x_MsoNormal" style="margin-right:0in; margin-bottom:7.5pt; margin-left:0in; background:#333333; word-break:break-all; border:none; padding:0in">
<span style="font-size:10.0pt; font-family:"Courier New"; color:#33EE33">org.xml.sax.SAXParseException; lineNumber: 88; columnNumber: 42; 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; border:none; padding:0in">
<span style="font-size:10.0pt; font-family:"Courier New"; color:#33EE33">net.sf.saxon.s9api.DocumentBuilder.build(net/sf/saxon/s9api/DocumentBuilder.java:379)</span></p>
<p class="x_MsoNormal" style="margin-right:0in; margin-bottom:7.5pt; margin-left:0in; background:#333333; word-break:break-all; border:none; padding:0in">
<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; border:none; padding:0in">
<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; border:none; padding:0in">
<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; border:none; padding:0in">
<span style="font-size:10.0pt; font-family:"Courier New"; color:#33EE33">RUBY.parse(/as_server/current/gems/gems/saxon-xslt-0.8.2.2-java/lib/saxon/xml.rb:28)</span></p>
<p class="x_MsoNormal" style="margin-right:0in; margin-bottom:7.5pt; margin-left:0in; background:#333333; word-break:break-all; border:none; padding:0in">
<span style="font-size:10.0pt; font-family:"Courier New"; color:#33EE33">RUBY.XML(/as_server/current/gems/gems/saxon-xslt-0.8.2.2-java/lib/saxon/processor.rb:58)</span></p>
<p class="x_MsoNormal" style="margin-right:0in; margin-bottom:7.5pt; margin-left:0in; background:#333333; word-break:break-all; border:none; padding:0in">
<span style="font-size:10.0pt; font-family:"Courier New"; color:#33EE33">RUBY.XML(/as_server/current/gems/gems/saxon-xslt-0.8.2.2-java/lib/saxon/xml.rb:10)</span></p>
<p class="x_MsoNormal" style="margin-right:0in; margin-bottom:7.5pt; margin-left:0in; background:#333333; word-break:break-all; border:none; padding:0in">
<span style="font-size:10.0pt; font-family:"Courier New"; color:#33EE33">RUBY.to_fo(/as_server/current/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/AS_fop.rb:38)</span></p>
<p class="x_MsoNormal" style="margin-right:0in; margin-bottom:7.5pt; margin-left:0in; background:#333333; word-break:break-all; border:none; padding:0in">
<span style="font-size:10.0pt; font-family:"Courier New"; color:#33EE33">RUBY.to_pdf(/as_server/current/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/AS_fop.rb:44)</span></p>
<p class="x_MsoNormal" style="margin-right:0in; margin-bottom:7.5pt; margin-left:0in; background:#333333; word-break:break-all; border:none; padding:0in">
<span style="font-size:10.0pt; font-family:"Courier New"; color:#33EE33">RUBY.block in run(/as_server/current/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/job_runners/print_to_pdf_runner.rb:51)</span></p>
</div>
<p class="x_MsoNormal">If anyone has any thoughts as to what’s going on, I’d love to hear them. This isn’t the entirety of the error code, but it seems to repeat similar lines after this.</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">Thanks!</p>
<p class="x_MsoNormal"> </p>
<ul type="disc" style="margin-top:0in">
<li class="x_MsoListParagraph" style="margin-left:0in">John</li></ul>
</div>
</div>
</body>
</html>