[Archivesspace_Users_Group] FW: Unable to create Accession Report in PDF

Benn Joseph benn.joseph at northwestern.edu
Fri Jul 26 12:58:47 EDT 2019


When we had the same ampersand problem, we did have to fix them all by hand. We’d export the EAD for records that were known ampersand offenders, find the problem characters, and then fix them directly in the Resource record/archival object/etc. But, it was only for ampersands that were not followed by a space! So “AT&T” would cause an error, but “AT & T” is totally fine. You may find it’s the same for you.

Benn Joseph
Head of Archival Processing
Northwestern University Libraries
Northwestern University
www.library.northwestern.edu
benn.joseph at northwestern.edu<mailto:benn.joseph at northwestern.edu%0d>
847.467.6581


From: archivesspace_users_group-bounces at lyralists.lyrasis.org <archivesspace_users_group-bounces at lyralists.lyrasis.org> On Behalf Of Zhang, Bin
Sent: Friday, July 26, 2019 11:31 AM
To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org>
Subject: Re: [Archivesspace_Users_Group] FW: Unable to create Accession Report in PDF

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).

--
Bin

From: <archivesspace_users_group-bounces at lyralists.lyrasis.org<mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org>> on behalf of Blake Carver <blake.carver at lyrasis.org<mailto:blake.carver at lyrasis.org>>
Reply-To: Archivesspace Group <archivesspace_users_group at lyralists.lyrasis.org<mailto:archivesspace_users_group at lyralists.lyrasis.org>>
Date: Thursday, July 25, 2019 at 2:15 PM
To: Archivesspace Group <archivesspace_users_group at lyralists.lyrasis.org<mailto:archivesspace_users_group at lyralists.lyrasis.org>>
Subject: Re: [Archivesspace_Users_Group] FW: Unable to create Accession Report in PDF


"The entity name must immediately follow the '&' in the entity reference."

That makes me think there's an ampersand in that record and it's choking on it when it tries to make the PDF.

Is there anything in there with ampersands? Like "J&J Automotive" or something?
________________________________
From: archivesspace_users_group-bounces at lyralists.lyrasis.org<mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org> <archivesspace_users_group-bounces at lyralists.lyrasis.org<mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org>> on behalf of Zhang, Bin <bzhang at csus.edu<mailto:bzhang at csus.edu>>
Sent: Thursday, July 25, 2019 4:26 PM
To: Archivesspace Group <archivesspace_users_group at lyralists.lyrasis.org<mailto:archivesspace_users_group at lyralists.lyrasis.org>>
Subject: [Archivesspace_Users_Group] FW: Unable to create Accession Report in PDF


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.



Any help is greatly appreciated.



Bin



Log

Follow Log

Generating report

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.

org.xhtmlrenderer.resource.XMLResource$XMLResourceBuilder.createXMLResource(org/xhtmlrenderer/resource/XMLResource.java:191)

org.xhtmlrenderer.resource.XMLResource.load(org/xhtmlrenderer/resource/XMLResource.java:71)

org.xhtmlrenderer.swing.NaiveUserAgent.getXMLResource(org/xhtmlrenderer/swing/NaiveUserAgent.java:211)

org.xhtmlrenderer.pdf.ITextRenderer.loadDocument(org/xhtmlrenderer/pdf/ITextRenderer.java:134)

org.xhtmlrenderer.pdf.ITextRenderer.setDocument(org/xhtmlrenderer/pdf/ITextRenderer.java:149)

java.lang.reflect.Method.invoke(java/lang/reflect/Method.java:498)

org.jruby.javasupport.JavaMethod.invokeDirectWithExceptionHandling(org/jruby/javasupport/JavaMethod.java:453)

org.jruby.javasupport.JavaMethod.invokeDirect(org/jruby/javasupport/JavaMethod.java:314)

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)

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)

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)

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)

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)

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)

org.jruby.RubyProc.call(org/jruby/RubyProc.java:289)

org.jruby.RubyProc.call(org/jruby/RubyProc.java:246)

java.lang.Thread.run(java/lang/Thread.java:748)

Done.





---

Bin Zhang

Digital Information Services Librarian

Library Systems & IT Services, University Library

California State University, Sacramento

+1 (916) 278-5664 | bzhang at csus.edu<mailto:bzhang at csus.edu>

Zoom: https://csus.zoom.us/my/bzhang




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20190726/f0daaafd/attachment.html>


More information about the Archivesspace_Users_Group mailing list