<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!-- p { margin-top: 0px; margin-bottom: 0px; }--></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<p>That is the problem. <span style="font-size:12pt">If you edi</span><span style="font-size:12pt">t:</span><span style="font-size:12pt"> /path/to/archivesspace/</span><span style="font-size:12pt">launcher/ead_export/lib/ead_export.rb</span></p>
<p>and replace (line 91): <br>
</p>
<p><br>
</p>
<p>unitid = unitid.text<br>
</p>
<p><br>
</p>
<p>with:<br>
</p>
<p><span style="font-size:12pt"><br>
</span></p>
<p><span style="font-size:12pt">unitid = unitid.text.gsub(/\//, '_'</span><span style="font-size:12pt">)</span></p>
<p><br>
</p>
<p>That will replace any unitid / with an _ for the EAD filename in the zip (it won't effect the EAD content).<br>
</p>
<p><br>
</p>
<p>Mark<br>
</p>
<p><br>
</p>
<div id="Signature">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div id="Signature" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;">
<div style="margin: 0px;"><font face="Calibri,Arial,Helvetica,sans-serif"><font face="Arial,sans-serif" color="#2F2F2F">Mark Cooper</font><font face="Arial,sans-serif"> </font><font face="Calibri,sans-serif"><br>
</font></font></div>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;">
<div style="margin: 0px;"><font face="Calibri,Arial,Helvetica,sans-serif"><font face="Arial,sans-serif" color="#2F2F2F">LYRASIS -- ​​ArchivesSpace Hosting and Support</font></font></div>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;">
<div style="margin: 0px;"><font face="Calibri,Arial,Helvetica,sans-serif"><a href="mailto:mark.cooper@lyrasis.org" target="_blank" id="NoLP"><font face="Calibri,Arial,Helvetica,sans-serif"><font face="Arial,sans-serif">mark.cooper@lyrasis.org</font></font></a></font></div>
<div style="margin: 0px;"><font face="Calibri,Arial,Helvetica,sans-serif"><font face="Arial,sans-serif"><br>
</font></font></div>
</div>
</div>
</div>
<div style="word-wrap:break-word">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> archivesspace_users_group-bounces@lyralists.lyrasis.org <archivesspace_users_group-bounces@lyralists.lyrasis.org> on behalf of Steven Majewski
 <sdm7g@virginia.edu><br>
<b>Sent:</b> Tuesday, November 18, 2014 11:39 AM<br>
<b>To:</b> Archivesspace Users Group<br>
<b>Subject:</b> [Archivesspace_Users_Group] Error from ead_export.sh</font>
<div> </div>
</div>
<div>
<div><br>
</div>
<div>I’m getting this error trying the ead_export cli after about 1200+ of 3000+ items exported. </div>
<div><br>
</div>
<div>I suspect it’s because the item it’s failing on has slashes in the unitid : </div>
<div><br>
</div>
<div>
<div style="margin:0px; font-family:Menlo; background-color:rgb(255,238,219)"><did></div>
<div style="margin:0px; font-family:Menlo; background-color:rgb(255,238,219)">    <langmaterial></div>
<div style="margin:0px; font-family:Menlo; background-color:rgb(255,238,219)">      <language langcode="eng">English</language></div>
<div style="margin:0px; font-family:Menlo; background-color:rgb(255,238,219)">    </langmaterial></div>
<div style="margin:0px; font-family:Menlo; background-color:rgb(255,238,219)">    <repository></div>
<div style="margin:0px; font-family:Menlo; background-color:rgb(255,238,219)">      <corpname>University of Virginia, Special Collections Dept.</corpname></div>
<div style="margin:0px; font-family:Menlo; background-color:rgb(255,238,219)">    </repository></div>
<div style="margin:0px; font-family:Menlo; background-color:rgb(255,238,219)">    <unittitle>Papers of the Dean of Students</unittitle></div>
<div style="margin:0px; font-family:Menlo; background-color:rgb(255,238,219)">    <unitid>18/2/1.072</unitid></div>
<div style="margin:0px; font-family:Menlo; background-color:rgb(255,238,219)">    <physdesc altrender="whole"></div>
<div style="margin:0px; font-family:Menlo; background-color:rgb(255,238,219)">      <extent altrender="materialtype spaceoccupied">1 arbitrary_whole</extent></div>
<div style="margin:0px; font-family:Menlo; background-color:rgb(255,238,219)">    </physdesc></div>
<div style="margin:0px; font-family:Menlo; background-color:rgb(255,238,219); position:static; z-index:auto">
  </did></div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>and the code appears to be using that id as part of the temporary filename. <br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div style="margin:0px; font-family:Menlo; background-color:rgb(255,206,182)"><span style="color:#692828"><b>archivesspace$</b></span> ./scripts/ead_export.sh admin admin 2 </div>
<div style="margin:0px; font-family:Menlo; background-color:rgb(255,206,182)">Loading ArchivesSpace configuration file from path: /projects/Archivespace/archivesspace/./config/config.rb</div>
<div style="margin:0px; font-family:Menlo; background-color:rgb(255,206,182)">Loading ArchivesSpace configuration file from path: /projects/Archivespace/archivesspace/./config/config.rb</div>
<div style="margin:0px; font-family:Menlo; background-color:rgb(255,206,182)">IOError: No such file or directory</div>
<div style="margin:0px; font-family:Menlo; background-color:rgb(255,206,182)">        create at file:/projects/Archivespace/archivesspace/gems/gems/jruby-jars-1.7.11/lib/jruby-stdlib-complete-1.7.11.jar!/META-INF/jruby.home/lib/ruby/shared/tmpdir.rb:0</div>
<div style="margin:0px; font-family:Menlo; background-color:rgb(255,206,182)">  initialize19 at org/jruby/ext/tempfile/Tempfile.java:94</div>
<div style="margin:0px; font-family:Menlo; background-color:rgb(255,206,182)">           new at org/jruby/RubyIO.java:852</div>
<div style="margin:0px; font-family:Menlo; background-color:rgb(255,206,182)">          main at ../launcher/ead_export/lib/ead_export.rb:93</div>
<div style="margin:0px; font-family:Menlo; background-color:rgb(255,206,182)">          each at org/jruby/RubyArray.java:1613</div>
<div style="margin:0px; font-family:Menlo; background-color:rgb(255,206,182)">          main at ../launcher/ead_export/lib/ead_export.rb:86</div>
<div style="margin:0px; font-family:Menlo; background-color:rgb(255,206,182); position:static; z-index:auto">
        (root) at ../launcher/ead_export/lib/ead_export.rb:107</div>
</div>
</div>
</div>
</div>
</body>
</html>