<p dir="ltr">This seems to be an issue with the ref id plugin, and not the migration plugin sinces it worked before with no problem. </p>
<div class="gmail_quote">On Nov 27, 2014 7:09 AM, "Megan Williams" <<a href="mailto:MWILLIAM@nla.gov.au">MWILLIAM@nla.gov.au</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-AU" link="blue" vlink="purple">
<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<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"><b><span lang="EN-US" style="font-size:9.0pt;font-family:"Calibri","sans-serif";color:#a6a6a6">Megan Williams</span></b><span lang="EN-US" style="font-size:9.0pt;font-family:"Calibri","sans-serif";color:#31849b">
<b>|</b> </span><span lang="EN-US" style="font-size:9.0pt;font-family:"Calibri","sans-serif";color:gray">A/g Assistant Curator
</span><b><span lang="EN-US" style="font-size:9.0pt;font-family:"Calibri","sans-serif";color:#31849b">|</span></b><span lang="EN-US" style="font-size:9.0pt;font-family:"Calibri","sans-serif";color:#31849b">
</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Calibri","sans-serif";color:gray">Pictures & Manuscripts Branch</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Calibri","sans-serif";color:#31849b">
<b>|</b></span><span lang="EN-US" style="font-size:9.0pt;font-family:"Calibri","sans-serif";color:#3366ff">
</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Calibri","sans-serif";color:gray">National Library of Australia</span><b><span lang="EN-US" style="font-size:9.0pt;font-family:"Calibri","sans-serif";color:#31849b"> |</span></b><span lang="EN-US" style="font-size:9.0pt;font-family:"Calibri","sans-serif";color:#3366ff">
</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Calibri","sans-serif";color:gray">Canberra ACT 2600</span><span lang="EN-US" 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">|
</span></b><span style="font-size:9.0pt;font-family:"Calibri","sans-serif";color:#31849b">w:
</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Calibri","sans-serif";color:gray"><a href="http://www.nla.gov.au/" target="_blank"><span style="color:gray">www.nla.gov.au</span></a></span><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","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>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Segoe UI","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
</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>