<div dir="ltr">The PDF exporter first generates EAD XML file and parses that to generate the PDF. If the XML is invalid the PDF export will fail.  In this case, it looks like you have unescaped ampersands somewhere that the XML parser is trying to interpret as XML entities. If you find these, replacing them with &amp; should make this error go away.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Sep 22, 2021 at 3:23 PM Esh, John C. <<a href="mailto:jesh@towson.edu">jesh@towson.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">





<div lang="EN-US" style="overflow-wrap: break-word;">
<div class="gmail-m_-1480061851777364488WordSection1">
<p class="MsoNormal">For several finding aids, when I try to export to PDF, I’m getting this error…<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div style="border:1pt solid rgb(204,204,204);padding:3pt 8pt;background:rgb(51,51,51)">
<p class="MsoNormal" style="margin-right:0in;margin-bottom:7.5pt;margin-left:0in;background:rgb(51,51,51);word-break:break-all;border:none;padding:0in">
<span style="font-size:10pt;font-family:"Courier New";color:rgb(51,238,51)">Generating PDF for Athletics Department records 
<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-right:0in;margin-bottom:7.5pt;margin-left:0in;background:rgb(51,51,51);word-break:break-all;border:none;padding:0in">
<span style="font-size:10pt;font-family:"Courier New";color:rgb(51,238,51)">org.xml.sax.SAXParseException; lineNumber: 88; columnNumber: 42; The entity name must immediately follow the '&' in the entity reference.<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-right:0in;margin-bottom:7.5pt;margin-left:0in;background:rgb(51,51,51);word-break:break-all;border:none;padding:0in">
<span style="font-size:10pt;font-family:"Courier New";color:rgb(51,238,51)">net.sf.saxon.s9api.DocumentBuilder.build(net/sf/saxon/s9api/DocumentBuilder.java:379)<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-right:0in;margin-bottom:7.5pt;margin-left:0in;background:rgb(51,51,51);word-break:break-all;border:none;padding:0in">
<span style="font-size:10pt;font-family:"Courier New";color:rgb(51,238,51)">java.lang.reflect.Method.invoke(java/lang/reflect/Method.java:498)<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-right:0in;margin-bottom:7.5pt;margin-left:0in;background:rgb(51,51,51);word-break:break-all;border:none;padding:0in">
<span style="font-size:10pt;font-family:"Courier New";color:rgb(51,238,51)">org.jruby.javasupport.JavaMethod.invokeDirectWithExceptionHandling(org/jruby/javasupport/JavaMethod.java:453)<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-right:0in;margin-bottom:7.5pt;margin-left:0in;background:rgb(51,51,51);word-break:break-all;border:none;padding:0in">
<span style="font-size:10pt;font-family:"Courier New";color:rgb(51,238,51)">org.jruby.javasupport.JavaMethod.invokeDirect(org/jruby/javasupport/JavaMethod.java:314)<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-right:0in;margin-bottom:7.5pt;margin-left:0in;background:rgb(51,51,51);word-break:break-all;border:none;padding:0in">
<span style="font-size:10pt;font-family:"Courier New";color:rgb(51,238,51)">RUBY.parse(/as_server/current/gems/gems/saxon-xslt-0.8.2.2-java/lib/saxon/xml.rb:28)<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-right:0in;margin-bottom:7.5pt;margin-left:0in;background:rgb(51,51,51);word-break:break-all;border:none;padding:0in">
<span style="font-size:10pt;font-family:"Courier New";color:rgb(51,238,51)">RUBY.XML(/as_server/current/gems/gems/saxon-xslt-0.8.2.2-java/lib/saxon/processor.rb:58)<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-right:0in;margin-bottom:7.5pt;margin-left:0in;background:rgb(51,51,51);word-break:break-all;border:none;padding:0in">
<span style="font-size:10pt;font-family:"Courier New";color:rgb(51,238,51)">RUBY.XML(/as_server/current/gems/gems/saxon-xslt-0.8.2.2-java/lib/saxon/xml.rb:10)<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-right:0in;margin-bottom:7.5pt;margin-left:0in;background:rgb(51,51,51);word-break:break-all;border:none;padding:0in">
<span style="font-size:10pt;font-family:"Courier New";color:rgb(51,238,51)">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)<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-right:0in;margin-bottom:7.5pt;margin-left:0in;background:rgb(51,51,51);word-break:break-all;border:none;padding:0in">
<span style="font-size:10pt;font-family:"Courier New";color:rgb(51,238,51)">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)<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-right:0in;margin-bottom:7.5pt;margin-left:0in;background:rgb(51,51,51);word-break:break-all;border:none;padding:0in">
<span style="font-size:10pt;font-family:"Courier New";color:rgb(51,238,51)">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)<u></u><u></u></span></p>
</div>
<p class="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.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thanks!<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<ul style="margin-top:0in" type="disc">
<li class="gmail-m_-1480061851777364488MsoListParagraph" style="margin-left:0in">John<u></u><u></u></li></ul>
</div>
</div>

_______________________________________________<br>
Archivesspace_Users_Group mailing list<br>
<a href="mailto:Archivesspace_Users_Group@lyralists.lyrasis.org" target="_blank">Archivesspace_Users_Group@lyralists.lyrasis.org</a><br>
<a href="http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group" rel="noreferrer" target="_blank">http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><font size="2" style="background-color:rgb(255,255,255)" color="#666666">Trevor Thornton</font><div><font size="2" style="background-color:rgb(255,255,255)" color="#666666">Applications Developer, Digital Library Initiatives</font></div><div><font size="2" style="background-color:rgb(255,255,255)" color="#666666">North Carolina State University Libraries</font></div></div></div></div></div></div></div>