<div dir="ltr"><div>Also, the <a href="https://docs.google.com/a/nyu.edu/document/d/1Uj2qKtSKLGMm1VPDmDtuNG4eL8zgAJNhOHc93j0S7TE/pub">option</a> to specify no refids is "<span class="">-refid_none</span>", not "refid_none" (notice the "-"), so this will likely cause the errors you seeing since the migration plugin will just use the default setting of generating random ref_ids if it doesn't understand the option.<br><br> <br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 27, 2014 at 1:05 AM, Megan Williams <span dir="ltr"><<a href="mailto:MWILLIAM@nla.gov.au" target="_blank">MWILLIAM@nla.gov.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div link="blue" vlink="purple" lang="EN-AU">
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Segoe UI","sans-serif";color:#1f497d">We are in the midst of migrating our data (tight timeframe, of course) from Archivists’ Toolkit 2.0.0 Update 15 to ArchivesSpace 1.1.0. We are using both
the migration plugin and the refid plugin, and have encountered validation errors that prevent most of our resource records from migrating.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Segoe UI","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Segoe UI","sans-serif";color:#1f497d">As per advice from Nathan Steven, we are using the refid plugin with the option of “refid_none” to ensure that no refids are copied and that ArchivesSpace
assigns new ones instead.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Segoe UI","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Segoe UI","sans-serif";color:#1f497d">The following config changes were made in the ArchivesSpace v1.1.0 config file for loading the "refid_rules" plugin:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Segoe UI","sans-serif";color:#1f497d"> <u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d">AppConfig[:refid_rule] = "<%= repository['repo_code'] %>_<%= resource['formatted_id'] %>_<%= SecureRandom.hex %>"<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d">## Plug-ins to load. They will load in the order specified<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d">AppConfig[:plugins] = ['refid_rules']<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:10.0pt;font-family:"Segoe UI","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Segoe UI","sans-serif";color:#1f497d">Post-migration we found that most of our resource records had not migrated. The migration error log is attached; the errors appear to be primarily validation
errors relating to "refids", i.e.:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Segoe UI","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d">{"errors": ["Server error: #<:ValidationException: :errors=>{\"ref_id\"=>[\"Did not match regular expression:
<a><span style="color:#1f497d;text-decoration:none">\\\\A[a-zA-Z0-9\\\\-_:\\\\.]*\\\\z\"]}</span></a>}>"],"saved": []}<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Segoe UI","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Segoe UI","sans-serif";color:#1f497d">We were previously able to migrate all of our resources in an earlier trial migration to ArchivesSpace version 1.0.7.1 using the default migration settings
on the migration plugin (without the refid plugin).<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Segoe UI","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Segoe UI","sans-serif";color:#1f497d">Any ideas/advice on where we went wrong would be greatly appreciated!<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Segoe UI","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Segoe UI","sans-serif";color:#1f497d">Many thanks<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Segoe UI","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Segoe UI","sans-serif";color:#1f497d">Megan<span class="HOEnZb"><font color="#888888"><u></u><u></u></font></span></span></p><span class="HOEnZb"><font color="#888888">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Segoe UI","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:9.0pt;font-family:"Calibri","sans-serif";color:#a6a6a6" lang="EN-US">Megan Williams</span></b><span style="font-size:9.0pt;font-family:"Calibri","sans-serif";color:#31849b" lang="EN-US">
<b>|</b> </span><span style="font-size:9.0pt;font-family:"Calibri","sans-serif";color:gray" lang="EN-US">A/g Assistant Curator
</span><b><span style="font-size:9.0pt;font-family:"Calibri","sans-serif";color:#31849b" lang="EN-US">|</span></b><span style="font-size:9.0pt;font-family:"Calibri","sans-serif";color:#31849b" lang="EN-US">
</span><span style="font-size:9.0pt;font-family:"Calibri","sans-serif";color:gray" lang="EN-US">Pictures & Manuscripts Branch</span><span style="font-size:9.0pt;font-family:"Calibri","sans-serif";color:#31849b" lang="EN-US">
<b>|</b></span><span style="font-size:9.0pt;font-family:"Calibri","sans-serif";color:#3366ff" lang="EN-US">
</span><span style="font-size:9.0pt;font-family:"Calibri","sans-serif";color:gray" lang="EN-US">National Library of Australia</span><b><span style="font-size:9.0pt;font-family:"Calibri","sans-serif";color:#31849b" lang="EN-US"> |</span></b><span style="font-size:9.0pt;font-family:"Calibri","sans-serif";color:#3366ff" lang="EN-US">
</span><span style="font-size:9.0pt;font-family:"Calibri","sans-serif";color:gray" lang="EN-US">Canberra ACT 2600</span><span style="font-size:9.0pt;font-family:"Calibri","sans-serif";color:#31849b" lang="EN-US">
</span><b><span style="font-size:9.0pt;font-family:"Calibri","sans-serif";color:#31849b">|
</span></b><span style="font-size:9.0pt;font-family:"Calibri","sans-serif";color:#31849b">w:
</span><span style="font-size:9.0pt;font-family:"Calibri","sans-serif";color:gray" lang="EN-US"><a href="http://www.nla.gov.au/" target="_blank"><span style="color:gray">www.nla.gov.au</span></a></span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Segoe UI","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Segoe UI","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
</font></span></div>
</div>
<br>_______________________________________________<br>
Archivesspace_Users_Group mailing list<br>
<a href="mailto:Archivesspace_Users_Group@lyralists.lyrasis.org">Archivesspace_Users_Group@lyralists.lyrasis.org</a><br>
<a href="http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group" target="_blank">http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">Nathan Stevens<br>Programmer/Analyst<br>Digital Library Technology Services<br>New York University<br><br>1212-998-2653<br><a href="mailto:ns96@nyu.edu" target="_blank">ns96@nyu.edu</a></div>
</div>