[Archivesspace_Users_Group] Print to PDF job failing

Custer, Mark mark.custer at yale.edu
Tue Nov 20 15:42:33 EST 2018


I'd suggest exporting the EAD file and taking a look at the file that way (and I'd be happy to take a look if you can send it to me).

Those "ns2" namespace prefixes are likely from Archivist's Toolkit, which at some point started appending that prefix for the xlink namespace (which is fine, but everything that looks like XML in the AT and ASpace is treated as text, and things can get messy when namespace prefixed are hardcoded in that text!).  ArchivesSpace has a process to clean the XML upon export, which generally fixes a lot of those hard-coded namespace prefixes, but I'm honestly not sure why you'd be getting that error without seeing the entire EAD file since you shouldn't even need a valid EAD file for the PDF process to potentially still work.  There are other reasons why the PDF file not be created, but I can't think of why that type of invalidity would cause it to fail on its own.  Anyhow, the issue that's being reported is that the EAD file that ASpace will produce for this record will have the following at the top of the file:


Whereas what you have further down in your file on that ref tag is "ns2:", and if you export that same file from the AT (or whatever else caused the ns2 prefix to get in there), you'd see this at the top of the file:


And "xlink" does not equal "ns2", even though they're both trying to stand in for the same namespace.

All that said, the only way that I can think to troubleshoot the issue is investigating the EAD file itself, since the process for creating a PDF from the staff interface is 1) export the EAD, then 2) convert that EAD into a PDF file.


From: archivesspace_users_group-bounces at lyralists.lyrasis.org [mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org] On Behalf Of Busch, Ed
Sent: Tuesday, 20 November, 2018 2:59 PM
To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org>
Subject: Re: [Archivesspace_Users_Group] Print to PDF job failing

The collection probably has a component title of the form <title ns2:actuate="onrequest" render="italic">The Alert</title>--. These will generate an error when creating a finding aid in PDF format. The ns2 text around the title should be removed. For example, <title actuate="onrequest" render="italic">The Alert</title> from the example above.

So, you get to figure out which one it is. If you have access to the backend DB, you can probably come up with a query to find it. Or you can go through your Resource component lines looking for it.

Good luck!

Ed Busch, MLIS
Electronic Records Archivist
Michigan State University Archives
Conrad Hall
943 Conrad Road, Room 101
East Lansing, MI 48824
buschedw at msu.edu<mailto:buschedw at msu.edu>

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 Zachary L Pelli
Sent: Tuesday, November 20, 2018 2:52 PM
To: archivesspace_users_group at lyralists.lyrasis.org<mailto:archivesspace_users_group at lyralists.lyrasis.org>
Subject: [Archivesspace_Users_Group] Print to PDF job failing

Hey all,

One of our archivists is having an issue with a Print to PDF job with a particular collection (other large collections work fine).

In the log within AS Background Jobs section, it gives this:

Generating PDF for John M. Oesterreicher papers
org.xml.sax.SAXParseException; lineNumber: 28; columnNumber: 76; The prefix "ns2" for attribute "ns2:actuate" associated with an element type "ref" is not bound.
RUBY.block in run(/var/local/archivesspace/archivesspace250/data/tmp/jetty-
RUBY.block in start_background_thread(/var/local/archivesspace/archivesspace250/data/tmp/jetty-

Has anyone encountered this problem before?


Zach Pelli
Digital Collections Infrastructure Developer
Seton Hall University Libraries

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

More information about the Archivesspace_Users_Group mailing list