[Archivesspace_Users_Group] Error Generating PDF

Majewski, Steven Dennis (sdm7g) sdm7g at virginia.edu
Thu Jan 16 15:53:55 EST 2020


Ha! I didn’t even know that was valid EAD! — Steve. 

> On Jan 16, 2020, at 3:48 PM, Custer, Mark <mark.custer at yale.edu> wrote:
> 
> Justin,
>  
> I just took a quick look, and it appears that the issue is due to a nested bioghist note, which ArchivesSpace doesn’t support.  That nested note is also followed by two more bioghist notes, which look to be complete duplicates of the nested bioghist note.  So, short answer:  delete that first bioghist note.
>  
> The ASpace EAD-to-PDF transformation process will add IDs to elements that don’t have IDs (see https://github.com/archivesspace/archivesspace/blob/master/stylesheets/as-helper-functions.xsl#L22-L32 <https://github.com/archivesspace/archivesspace/blob/master/stylesheets/as-helper-functions.xsl#L22-L32>) and it looks like in this file there was some sort of import error perhaps??? Because of that, once the EAD is transformed into a PDF file, those nested notes wind up with the same ID (which is used for internal linking purposes in the PDF), and that is what is causing the error.
>  
> Here’s the duplicative EAD that’s being output, slightly altered to remove most of the text:
>  
>     <bioghist id="aspace_e399b9ecb1260e6afc1ed9b4b2a8c876">
>         <head>Biographical / Historical</head>
>         <bioghist altrender="Biographical Information" encodinganalog="545$a">
>             <p>Georgia Ragsdale Curtis lived in Roanoke, Virginia ... Georgia Ragsdale Curtis died
>                 on April 11, 2008. </p>
>         </bioghist>
>         <bioghist altrender="Administrative History" encodinganalog="545$b">
>             <head>Administrative History:</head>
>             <p>Georgia Ragsdale Curtis lived in Roanoke, Virginia ...
>                 until her death in 2008.</p>
>         </bioghist>
>     </bioghist>
> 
>     <bioghist id="aspace_80845d08a7b4567ffc074921441fc4dd">
>         <head>Biographical Information:</head>
>         <p>Georgia Ragsdale Curtis lived in Roanoke, Virginia ... Georgia Ragsdale Curtis died on April 11, 2008. </p>
>     </bioghist>
>     <bioghist id="aspace_0094949f395f6cc76548c3ac2046a51a">
>         <head>Administrative History:</head>
>         <p>Georgia Ragsdale Curtis lived in Roanoke, Virginia ... 
>             until her death in 2008.</p>
>     </bioghist>
>  
> If you delete that entire first bioghist note from ASpace (the one with ID = e399b9ecb1260e6afc1ed9b4b2a8c876), and just leave those two bioghist notes below (which are repeats of the nested bioghist note), you should be good to go.
>  
> Mark
>  
>  
>  
> From: archivesspace_users_group-bounces at lyralists.lyrasis.org [mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org] On Behalf Of Dalton, Justin
> Sent: Thursday, 16 January, 2020 3:07 PM
> To: Majewski, Steven Dennis (sdm7g) <sdm7g at virginia.edu>
> Cc: Archivesspace_Users_Group at lyralists.lyrasis.org
> Subject: Re: [Archivesspace_Users_Group] Error Generating PDF
>  
> I took a look and I can't find any duplicate ids, but perhaps I'm just missing it.  I have attached the EAD file from ArchivesSpace.
>  
> Thanks!
>  
> Justin Dalton 
> Applications Administrator
> W&M Libraries | William & Mary
> 757-221-3101
> jcdalton at wm.edu <mailto:jcdalton at wm.edu>
>  
> From: Majewski, Steven Dennis (sdm7g)
> Sent: Thursday, January 16, 2020 2:28 PM
> To: Dalton, Justin
> Cc: Archivesspace_Users_Group at lyralists.lyrasis.org <mailto:Archivesspace_Users_Group at lyralists.lyrasis.org>
> Subject: Re: [Archivesspace_Users_Group] Error Generating PDF 
>  
> It’s saying you’ve got more than one EAD element with id=“d3e97” . 
> I assume you’re generating PDF from the staff interface, which first serializes resource as EAD XML and then runs that thru the FOP processor ( which is where it’s catching and complaining about the error in the EAD ( org.apache.fop.fo…  ) 
>  
> You should export resource as EAD and look for duplicate id’s , or post it here and we’ll take a look. 
>  
>  
> I don’t think ArchivesSpace would have generated or assigned duplicate IDs: was this resource created by importing EAD that might have contained duplicates ?  
>  
>  
>  
> — Steve M. 
>  
>  
> 
> 
> On Jan 16, 2020, at 2:06 PM, Dalton, Justin <jcdalton at wm.edu <mailto:jcdalton at wm.edu>> wrote:
>  
> That is what I get for trying to write an email right before lunch.  Sorry about that, the error is below.
>  
> Generating PDF for Georgia Ragsdale Curtis Papers  
> org.apache.fop.fo.ValidationException: Property ID "d3e97" (found on "fo:block") previously used; ID values must be unique within a document! (See position 363:37)
> org.apache.xalan.transformer.TransformerIdentityImpl.transform(org/apache/xalan/transformer/TransformerIdentityImpl.java:502)
> java.lang.reflect.Method.invoke(java/lang/reflect/Method.java:498)
> org.jruby.javasupport.JavaMethod.invokeDirectWithExceptionHandling(org/jruby/javasupport/JavaMethod.java:468)
> org.jruby.javasupport.JavaMethod.invokeDirect(org/jruby/javasupport/JavaMethod.java:326)
> RUBY.to_pdf(/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/AS_fop.rb:49)
> RUBY.block in run(/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/job_runners/print_to_pdf_runner.rb:51)
> 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(/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/request_context.rb:24)
> RUBY.run(/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/job_runners/print_to_pdf_runner.rb:14)
> 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(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//archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/background_job_queue.rb:126)
> 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(/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(/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)
>  
>  
> Justin Dalton 
> Applications Administrator
> W&M Libraries | William & Mary
> 757-221-3101
> jcdalton at wm.edu <mailto:jcdalton at wm.edu>
>  
>  From:Majewski, Steven Dennis (sdm7g)
> Sent: Thursday, January 16, 2020 2:02 PM
> To: Dalton, Justin
> Subject: Re: [Archivesspace_Users_Group] Error Generating PDF
>  
>  
> What error ? 
>  
> 
> 
> On Jan 16, 2020, at 12:04 PM, Dalton, Justin <jcdalton at wm.edu <mailto:jcdalton at wm.edu>> wrote:
>  
> I'm receiving the following error message when trying to generate a PDF.  Anyone else had this error, or suggestions on how to fix it?
>  
> Thanks
>  
> Justin Dalton 
> Applications Administrator
> W&M Libraries | William & Mary
> 757-221-3101
> jcdalton at wm.edu <mailto:jcdalton at wm.edu>
> _______________________________________________
> 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://nam05.safelinks.protection.outlook.com/?url=http%3A%2F%2Flyralists.lyrasis.org%2Fmailman%2Flistinfo%2Farchivesspace_users_group&data=02%7C01%7Cmark.custer%40yale.edu%7C6a9b4a9437d8440e226f08d79abf9fda%7Cdd8cbebb21394df8b4114e3e87abeb5c%7C0%7C1%7C637148020264321251&sdata=jbupYYM2Hg9KvL%2By03WPhIoGzL9GsuMvguzx2c7eEfg%3D&reserved=0>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20200116/5774ef9a/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4974 bytes
Desc: not available
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20200116/5774ef9a/attachment.bin>


More information about the Archivesspace_Users_Group mailing list