[Archivesspace_Users_Group] Error generating PDF export for a finding aid.

Brian Harrington brian.harrington at lyrasis.org
Tue Mar 15 09:48:37 EDT 2022


Hi Kirill,

Usually this error means that you have a <ref> or <extref> with a target that doesn’t exist.  If you have trouble finding it, and want to post an EAD export from the collection here, we can help you track it down.

Brian

From: archivesspace_users_group-bounces at lyralists.lyrasis.org <archivesspace_users_group-bounces at lyralists.lyrasis.org> on behalf of Kirill Batyuk <kbatyuk at whoi.edu>
Date: Tuesday, March 15, 2022 at 9:15 AM
To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org>
Subject: Re: [Archivesspace_Users_Group] Error generating PDF export for a finding aid.
Thank you,

I found an ampersand that was causing this problem, Now I’m getting another error:

Generating PDF for Titanic Discovery collection
org.apache.fop.fo.ValidationException: Missing attribute on fo:basic-link: Either external-destination or internal-destination must be specified. (See position 1107:86)
net.sf.saxon.s9api.Xslt30Transformer.applyTemplates(net/sf/saxon/s9api/Xslt30Transformer.java:451)
java.lang.reflect.Method.invoke(java/lang/reflect/Method.java:498)
org.jruby.javasupport.JavaMethod.invokeDirectWithExceptionHandling(org/jruby/javasupport/JavaMethod.java:426)
org.jruby.javasupport.JavaMethod.invokeDirect(org/jruby/javasupport/JavaMethod.java:293)
org.jruby.RubyClass.finvokeWithRefinements(org/jruby/RubyClass.java:514)
org.jruby.RubyBasicObject.send(org/jruby/RubyBasicObject.java:1755)
org.jruby.RubyKernel.send(org/jruby/RubyKernel.java:2200)
org.jruby.RubyKernel$INVOKER$s$send.call(org/jruby/RubyKernel$INVOKER$s$send.gen)
RUBY.invocation_lambda(/data/archivesspace/gems/gems/saxon-rb-0.8.3-java/lib/saxon/xslt/executable.rb:270)
org.jruby.RubyProc.call(org/jruby/RubyProc.java:291)
org.jruby.RubyProc$INVOKER$i$call.call(org/jruby/RubyProc$INVOKER$i$call.gen)
RUBY.to_destination(/data/archivesspace/gems/gems/saxon-rb-0.8.3-java/lib/saxon/xslt/invocation.rb:73)
RUBY.to_fo(/data/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/AS_fop.rb:44)


Kirill.


From: archivesspace_users_group-bounces at lyralists.lyrasis.org <archivesspace_users_group-bounces at lyralists.lyrasis.org> On Behalf Of Dan Michelson
Sent: Tuesday, March 15, 2022 8:44 AM
To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org>
Subject: Re: [Archivesspace_Users_Group] Error generating PDF export for a finding aid.

Hi Kirill,

The relevant line in your error message is this:
org.xml.sax.SAXParseException; lineNumber: 139; columnNumber: 16002; The reference to entity "G" must end with the ';' delimiter.

I have not seen that specific error before, but I find it's often easiest to export the resource as EAD and look at the XML for the issue.

Also, the staff interface and PUI use different PDF exporters.  Sometimes you can generate a PDF from one and not the other.

All the best,

Dan

P. S. Minor qualification to Jim's note about ampersands.  In our experience, ampersands work fine if there are spaces after them.  It's ampersands immediately followed by a character that throws errors.

On Tue, Mar 15, 2022 at 8:34 AM James E. Cross <jcross at clemson.edu<mailto:jcross at clemson.edu>> wrote:
I am wondering if this is the “&” problem. A PDF cannot be generated if there is an “&” anywhere in the description. We ran into that problem here at Clemson.

Jim Cross
Manuscripts Archivist



James Edward Cross, C.A. CLEMSON UNIVERSITY
Manuscripts Archivist
Special Collections and Archives
Clemson University Libraries
Box 343001
Clemson, SC  29634-3001
Phone: (864) 656-5182
Website: http://library.clemson.edu/depts/specialcollections/<https://nam02.safelinks.protection.outlook.com/?url=http%3A%2F%2Flibrary.clemson.edu%2Fdepts%2Fspecialcollections%2F&data=04%7C01%7Ckbatyuk%40whoi.onmicrosoft.com%7Cce608bae4db044da6de208da06818539%7Cd44c5cc6d18c46cc8abd4fdf5b6e5944%7C0%7C0%7C637829451067255482%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=MVbgBBYfRtD0vkIZcUN0eIsJ9AePbw2%2Fu3WY6CUixUk%3D&reserved=0>
Pronouns: he/him/his
Traditional Cherokee Lands | Site of Fort Hill Plantation
Please do not feel obligated to respond to this message outside of your normal working hours.


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 Kirill Batyuk
Sent: Tuesday, March 15, 2022 8:25 AM
To: archivesspace_users_group at lyralists.lyrasis.org<mailto:archivesspace_users_group at lyralists.lyrasis.org>
Subject: [Archivesspace_Users_Group] Error generating PDF export for a finding aid.

Hi,

Our Archivist is running into a problem with generating PDF for a finding aid. The job fails with the following log:

Generating PDF for Titanic Discovery collection
org.xml.sax.SAXParseException; lineNumber: 139; columnNumber: 16002; The reference to entity "G" must end with the ';' delimiter.
net.sf.saxon.s9api.DocumentBuilder.build(net/sf/saxon/s9api/DocumentBuilder.java:360)
java.lang.reflect.Method.invoke(java/lang/reflect/Method.java:498)
org.jruby.javasupport.JavaMethod.invokeDirectWithExceptionHandling(org/jruby/javasupport/JavaMethod.java:456)
org.jruby.javasupport.JavaMethod.invokeDirect(org/jruby/javasupport/JavaMethod.java:317)
RUBY.build(/data/archivesspace/gems/gems/saxon-rb-0.8.3-java/lib/saxon/document_builder.rb:225)
RUBY.to_fo(/data/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/AS_fop.rb:42)
RUBY.to_pdf(/data/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/AS_fop.rb:58)
RUBY.run(/data/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/job_runners/print_to_pdf_runner.rb:50)
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.request_context.open(/data/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/request_context.rb:24)
RUBY.run(/data/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/job_runners/print_to_pdf_runner.rb:13)
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.invokeOther31: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.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:318)
java.lang.Thread.run(java/lang/Thread.java:750)


Any idea how to resolve this problem?

Thank you,

Kirill Batyuk
Systems Librarian
MBLWHOI Library
Data Library and Archives
Woods Hole Oceanographic Institution
508-289-2850
kbatyuk at whoi.edu<mailto:kbatyuk at whoi.edu>
mblwhoilibrary.org<https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.com%2Fv3%2F__http%3A%2Fmblwhoilibrary.org%2F__%3B!!NkSChLMW7qAT!qzl-Bw_htCSDBNQJszDywSpH7dOtkXO9Vs5MFihCtlGhhw559rfEgq-mCQ8O4cqor2tQ47n6Alhw%24&data=04%7C01%7Ckbatyuk%40whoi.onmicrosoft.com%7Cce608bae4db044da6de208da06818539%7Cd44c5cc6d18c46cc8abd4fdf5b6e5944%7C0%7C0%7C637829451067255482%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=oEwrafZEUMi6RkS8UzKg2JM1yeaP%2BhJzist8Mj%2BTEDQ%3D&reserved=0> --- whoi.edu<https://nam02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwhoi.edu%2F&data=04%7C01%7Ckbatyuk%40whoi.onmicrosoft.com%7Cce608bae4db044da6de208da06818539%7Cd44c5cc6d18c46cc8abd4fdf5b6e5944%7C0%7C0%7C637829451067255482%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=Lk%2BOGjyA3ZEqKmJZ0Hc0Q53A1%2FCDXYzEIU6lLh8fCBY%3D&reserved=0>
ORCID<https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.com%2Fv3%2F__http%3A%2Forcid.org%2F0000-0003-0240-2209__%3B!!NkSChLMW7qAT!qzl-Bw_htCSDBNQJszDywSpH7dOtkXO9Vs5MFihCtlGhhw559rfEgq-mCQ8O4cqor2tQ46IK8ae6%24&data=04%7C01%7Ckbatyuk%40whoi.onmicrosoft.com%7Cce608bae4db044da6de208da06818539%7Cd44c5cc6d18c46cc8abd4fdf5b6e5944%7C0%7C0%7C637829451067255482%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=g4pZ5n7obI6pdDodHC4%2FNsrXMaE62HnnoBvghLJEVQQ%3D&reserved=0>

_______________________________________________
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group at lyralists.lyrasis.org<mailto:Archivesspace_Users_Group at lyralists.lyrasis.org>
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group<https://nam02.safelinks.protection.outlook.com/?url=http%3A%2F%2Flyralists.lyrasis.org%2Fmailman%2Flistinfo%2Farchivesspace_users_group&data=04%7C01%7Ckbatyuk%40whoi.onmicrosoft.com%7Cce608bae4db044da6de208da06818539%7Cd44c5cc6d18c46cc8abd4fdf5b6e5944%7C0%7C0%7C637829451067255482%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=kwJxBN%2FLmstCjrTofkTjWDM1RRdsQy6QD0dJNFAywBs%3D&reserved=0>


--
Dan Michelson
Collections Archivist
Smith College Special Collections

For current library access and services details, see Library Services During COVID-19<https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flibraries.smith.edu%2Flibrary-services-during-covid-19&data=04%7C01%7Ckbatyuk%40whoi.onmicrosoft.com%7Cce608bae4db044da6de208da06818539%7Cd44c5cc6d18c46cc8abd4fdf5b6e5944%7C0%7C0%7C637829451067255482%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=E3HQM8ewmr4o8Q1HHGRAT2S8Js2FIvKyaWtoQRQoyhQ%3D&reserved=0>.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20220315/84a6ab11/attachment.html>


More information about the Archivesspace_Users_Group mailing list