<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=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Helvetica;
panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
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;}
span.EmailStyle17
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
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-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Hi Christie,<o:p></o:p></span></p>
<p class="MsoNormal"><span 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:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">You can resequence your entire database on startup to solve the problem. Or, you can install this plugin and resequence just the offending resource record:
<a href="https://github.com/archivesspace-plugins/resync">https://github.com/archivesspace-plugins/resync</a><o:p></o:p></span></p>
<p class="MsoNormal"><span 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:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">You can read the long history of this issue in JIRA:
<a href="https://archivesspace.atlassian.net/browse/AR-1326">https://archivesspace.atlassian.net/browse/AR-1326</a><o:p></o:p></span></p>
<p class="MsoNormal"><span 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:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">-Noah<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> archivesspace_users_group-bounces@lyralists.lyrasis.org [mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org]
<b>On Behalf Of </b>Peterson, Christie<br>
<b>Sent:</b> Tuesday, April 18, 2017 10:16 AM<br>
<b>To:</b> Archivesspace Users Group <archivesspace_users_group@lyralists.lyrasis.org><br>
<b>Subject:</b> Re: [Archivesspace_Users_Group] Unable to edit archival object after transferring<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">Thanks, yeah, that's what I thought might have happened. Was wondering if anyone else had encountered it and if there was a known fix, since the transfer was done months ago and rolling back the db is not an option at this point.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On Tue, Apr 18, 2017 at 9:48 AM, Lora Davis <<a href="mailto:ljdavis@jhu.edu" target="_blank">ljdavis@jhu.edu</a>> wrote:<o:p></o:p></p>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt">
<div>
<p class="MsoNormal">Hey Christie, <o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Given this:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Helvetica",sans-serif;color:#A94442;background:#F2DEDE">duplicate_entry__297608@archival_object-0__for_key__uniq_ao_pos_</span><o:p></o:p></p>
</div>
</div>
</blockquote>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">I’m thinking that what is going on is that during the merge you’ve ended up with two sets of archival_objects belonging to the same parent that have matching “positions" (the ao field that tells ASpace where to place an object in the collection’s
tree). If you have a way to look at the JSON for the archival objects you could confirm that multiple objects have the same position #. <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">So, for example, archival_objects/2 would be:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<div>
<p class="MsoNormal">{<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> "lock_version": 0,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <span style="color:#FF2600">"position": 0,</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> "publish": true,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> "ref_id": "9759e8ea59d8e8c95237974522c97551",<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> "title": "Research Materials”,<o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"> <snip><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> "parent": {<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <span style="color:#FF2600">"ref": "/repositories/2/archival_objects/1"</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> }<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">}<o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">And archival_objects/3 is also:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<div>
<p class="MsoNormal">{<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> "lock_version": 0,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <span style="color:#FF2600"> "position": 0,</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> "publish": true,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> "ref_id": "4b2114851f10f24ea86c6506fb1a829f",<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> "title": "Rabelais-Villon",<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <snip><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> "parent": {<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <span style="color:#FF2600">"ref": "/repositories/2/archival_objects/1"</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> }<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">}<o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">That said, if this is the culprit, clearly this shouldn’t happen when transferring ao’s from one collection to another via the staff interface!<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Or, I could be way off base… :)<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Lora<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<div>
<div>
<p class="MsoNormal">On Apr 18, 2017, at 8:57 AM, Peterson, Christie <<a href="mailto:cspeterson@email.gwu.edu" target="_blank">cspeterson@email.gwu.edu</a>> wrote:<o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal">Hello, <o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">I'm having a problem with some archival objects where any attempt to edit them through the user interface results in the following error:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Helvetica",sans-serif;color:#A94442;background:#F2DEDE">translation missing:
</span><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__en.no_&d=DwMFaQ&c=imBPVzF25OnBgGmVOlcsiEgHoG1i6YHLR0Sj_gZ4adc&r=F0JE8U9-xhxe_nE7d7aEUi-uqfKqvYJ222bS0oz9mko&m=wQ0lm1Sws0EAC5SGYnSlccdMpQU4arrAmNQhFmZoVZk&s=oFZTbDLle3T8zFxUoF1JkQM_jsxMql-JcJjOZi0k_no&e=" target="_blank"><span style="font-size:10.5pt;font-family:"Helvetica",sans-serif;background:#F2DEDE">en.no</span></a><span style="font-size:10.5pt;font-family:"Helvetica",sans-serif;color:#A94442;background:#F2DEDE">
key - translation missing: </span><a href="mailto:en.validation_errors.database_integrity_constraint_conflict__java__commysqljdbcexceptionsjdbc4__mysqlintegrityconstraintviolationexception__duplicate_entry__297608@archival_object-0__for_key__uniq_ao_pos_"><span style="font-size:10.5pt;font-family:"Helvetica",sans-serif;background:#F2DEDE">en.validation_errors.database_integrity_constraint_conflict__java__commysqljdbcexceptionsjdbc4__mysqlintegrityconstraintviolationexception__duplicate_entry__297608@archival_object-0__for_key__uniq_ao_pos_</span></a><br clear="all">
<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">The only thing I can think of that might be relevant is that these are objects in a series that was transferred from one collection to another via the interface.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Has anyone run into this before? Have any suggestions?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Christie<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p class="MsoNormal">-- <o:p></o:p></p>
<div>
<div>
<p class="MsoNormal">Christie S. Peterson <o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">University Archivist<o:p></o:p></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;color:#500050">George Washington University Libraries<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:#500050">704H Gelman Library</span><span style="font-size:10.0pt;color:#500050"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><a href="mailto:cspeterson@gwu.edu" target="_blank"><span style="font-size:10.0pt">cspeterson@gwu.edu</span></a><span style="font-size:10.0pt;color:#500050"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><a href="tel:(202)%20994-3925" target="_blank"><span style="font-size:10.0pt">202.994.3925</span></a><span style="font-size:10.0pt;color:#500050"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal">_______________________________________________<br>
Archivesspace_Users_Group mailing list<br>
<a href="mailto:Archivesspace_Users_Group@lyralists.lyrasis.org" target="_blank">Archivesspace_Users_Group@lyralists.lyrasis.org</a><br>
<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__lyralists.lyrasis.org_mailman_listinfo_archivesspace-5Fusers-5Fgroup&d=DwMFaQ&c=imBPVzF25OnBgGmVOlcsiEgHoG1i6YHLR0Sj_gZ4adc&r=F0JE8U9-xhxe_nE7d7aEUi-uqfKqvYJ222bS0oz9mko&m=wQ0lm1Sws0EAC5SGYnSlccdMpQU4arrAmNQhFmZoVZk&s=B1Ur4bQrcikUF8YU81rUqVssn7kAkiQ1XvrwnGUhAf4&e=" target="_blank">http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group</a><o:p></o:p></p>
</div>
</blockquote>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><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="https://urldefense.proofpoint.com/v2/url?u=http-3A__lyralists.lyrasis.org_mailman_listinfo_archivesspace-5Fusers-5Fgroup&d=DwMFaQ&c=imBPVzF25OnBgGmVOlcsiEgHoG1i6YHLR0Sj_gZ4adc&r=F0JE8U9-xhxe_nE7d7aEUi-uqfKqvYJ222bS0oz9mko&m=wQ0lm1Sws0EAC5SGYnSlccdMpQU4arrAmNQhFmZoVZk&s=B1Ur4bQrcikUF8YU81rUqVssn7kAkiQ1XvrwnGUhAf4&e=" target="_blank">http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group</a><o:p></o:p></p>
</blockquote>
</div>
<p class="MsoNormal"><br>
<br clear="all">
<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p class="MsoNormal">-- <o:p></o:p></p>
<div>
<div>
<p class="MsoNormal">Christie S. Peterson<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">University Archivist<o:p></o:p></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;color:black">George Washington University Libraries</span><span style="font-size:10.0pt;color:#500050"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:black">704H Gelman Library</span><span style="font-size:10.0pt;color:#500050"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><a href="mailto:cspeterson@gwu.edu" target="_blank"><span style="font-size:10.0pt">cspeterson@gwu.edu</span></a><span style="font-size:10.0pt;color:#500050"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;color:black">202.994.3925</span><span style="font-size:10.0pt;color:#500050"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>