<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"\@SimSun";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"Segoe UI";
        panose-1:2 11 5 2 4 2 4 2 2 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle20
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle21
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle22
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle23
        {mso-style-type:personal;
        font-family:"Segoe UI","sans-serif";
        color:#1F497D;}
span.EmailStyle24
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle25
        {mso-style-type:personal;
        font-family:"Segoe UI","sans-serif";
        color:#1F497D;}
span.EmailStyle26
        {mso-style-type:personal-reply;
        font-family:"Segoe UI","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-AU" link="blue" vlink="purple">
<div class="WordSection1">
<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.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Segoe UI","sans-serif";color:#1F497D"><o:p> </o:p></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.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Segoe UI","sans-serif";color:#1F497D"><o:p> </o:p></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:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Segoe UI","sans-serif";color:#1F497D"> <o:p></o:p></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 %>"<o:p></o:p></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<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D">AppConfig[:plugins] = ['refid_rules']<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:10.0pt;font-family:"Segoe UI","sans-serif";color:#1F497D"><o:p> </o:p></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.:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Segoe UI","sans-serif";color:#1F497D"><o:p> </o:p></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 href="file:///\\A[a-zA-Z0-9\-_:\.%5d*\z\%22%5d%7d"><span style="color:#1F497D;text-decoration:none">\\\\A[a-zA-Z0-9\\\\-_:\\\\.]*\\\\z\"]}</span></a>}>"],"saved": []}<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Segoe UI","sans-serif";color:#1F497D"><o:p> </o:p></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).<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Segoe UI","sans-serif";color:#1F497D"><o:p> </o:p></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!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Segoe UI","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Segoe UI","sans-serif";color:#1F497D">Many thanks<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Segoe UI","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Segoe UI","sans-serif";color:#1F497D">Megan<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Segoe UI","sans-serif";color:#1F497D"><o:p> </o:p></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/"><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"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Segoe UI","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Segoe UI","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
</div>
</body>
</html>