We have found the problem with a link and were able to resolve it and export a 
finding aid. Thank you everyone for the help!

Kirill.

From: archivesspace_users_group-boun...@lyralists.lyrasis.org 
<archivesspace_users_group-boun...@lyralists.lyrasis.org> On Behalf Of Brian 
Harrington
Sent: Tuesday, March 15, 2022 9:49 AM
To: Archivesspace Users Group <archivesspace_users_group@lyralists.lyrasis.org>
Subject: Re: [Archivesspace_Users_Group] Error generating PDF export for a 
finding aid.

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-boun...@lyralists.lyrasis.org<mailto:archivesspace_users_group-boun...@lyralists.lyrasis.org>
 
<archivesspace_users_group-boun...@lyralists.lyrasis.org<mailto:archivesspace_users_group-boun...@lyralists.lyrasis.org>>
 on behalf of Kirill Batyuk <kbat...@whoi.edu<mailto:kbat...@whoi.edu>>
Date: Tuesday, March 15, 2022 at 9:15 AM
To: Archivesspace Users Group 
<archivesspace_users_group@lyralists.lyrasis.org<mailto:archivesspace_users_group@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-boun...@lyralists.lyrasis.org<mailto:archivesspace_users_group-boun...@lyralists.lyrasis.org>
 
<archivesspace_users_group-boun...@lyralists.lyrasis.org<mailto:archivesspace_users_group-boun...@lyralists.lyrasis.org>>
 On Behalf Of Dan Michelson
Sent: Tuesday, March 15, 2022 8:44 AM
To: Archivesspace Users Group 
<archivesspace_users_group@lyralists.lyrasis.org<mailto:archivesspace_users_group@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 
<jcr...@clemson.edu<mailto:jcr...@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%7C990e159455244d8742d508da068a8a08%7Cd44c5cc6d18c46cc8abd4fdf5b6e5944%7C0%7C0%7C637829489935909486%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=e67Gv6HqfjiS1g71adlxI8208w5ssm94G8zShkKHQWI%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-boun...@lyralists.lyrasis.org<mailto:archivesspace_users_group-boun...@lyralists.lyrasis.org>
 
<archivesspace_users_group-boun...@lyralists.lyrasis.org<mailto:archivesspace_users_group-boun...@lyralists.lyrasis.org>>
 On Behalf Of Kirill Batyuk
Sent: Tuesday, March 15, 2022 8:25 AM
To: 
archivesspace_users_group@lyralists.lyrasis.org<mailto:archivesspace_users_group@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
kbat...@whoi.edu<mailto:kbat...@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%7C990e159455244d8742d508da068a8a08%7Cd44c5cc6d18c46cc8abd4fdf5b6e5944%7C0%7C0%7C637829489936065739%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=5f0bHRZMUxLUM2HCo9JccKBtTbXZpmgGROpxHCRJYWo%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%7C990e159455244d8742d508da068a8a08%7Cd44c5cc6d18c46cc8abd4fdf5b6e5944%7C0%7C0%7C637829489936065739%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=eqpDlTXyOWEMoOA1yElu7buZxPqko%2BxAH7ANRLgowdg%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%7C990e159455244d8742d508da068a8a08%7Cd44c5cc6d18c46cc8abd4fdf5b6e5944%7C0%7C0%7C637829489936065739%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=3MFOM7IDNLdivFBlSoiq7fFcj7cNBgJDvbtsRWaEdJQ%3D&reserved=0>

_______________________________________________
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org<mailto:Archivesspace_Users_Group@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%7C990e159455244d8742d508da068a8a08%7Cd44c5cc6d18c46cc8abd4fdf5b6e5944%7C0%7C0%7C637829489936065739%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=OhumAhGaj%2Bq1Y0NOtOrm5hDYrtRX22FaWiLGOUoskEE%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%7C990e159455244d8742d508da068a8a08%7Cd44c5cc6d18c46cc8abd4fdf5b6e5944%7C0%7C0%7C637829489936065739%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=xDwrtNpwKtFXjNQMDOlYHKstOBfBvZhZ%2BYK6ymYWhwQ%3D&reserved=0>.
_______________________________________________
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group

Reply via email to