<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></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><br>
</p>
<p>Hi Marcus,</p>
<p><br>
</p>
<p>You're repository has lost it's link to its agent record. The json in the invalid_object is showing :</p>
<p><span style="font-size:10.5pt; font-family:'Helvetica','sans-serif'; color:#a94442"><span style="background:#F2DEDE">{\"linked_agents\"=>[{\"role\"=>\"transmitter\", \"ref\"=>\"/agents/corporate_entities\"},</span></span></p>
<p><br>
</p>
<p>which is an incomplete URI ( there needs to be an identifier at the end of /agents/corporate_entities ) </p>
<p><br>
</p>
<p>In your db, take a look at the repository table, specificly the row for the repository you're transferring out of. There should be an id that points to a valid row in the agent_corporate_entity table. Can you check that?</p>
<p><br>
</p>
<p>b,chris. <br>
</p>
<p><br>
</p>
<div id="Signature">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div class="BodyFragment"><font size="2">
<div class="PlainText">Chris Fitzpatrick | <font size="2">Developer, ArchivesSpace</font><br>
Skype: chrisfitzpat  | Phone: 918.236.6048<br>
http://archivesspace.org/<br>
</div>
</font></div>
</div>
</div>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> archivesspace_users_group-bounces@lyralists.lyrasis.org <archivesspace_users_group-bounces@lyralists.lyrasis.org> on behalf of MATTHEW R FRANCIS
 <mrf22@psu.edu><br>
<b>Sent:</b> Wednesday, October 14, 2015 6:30 PM<br>
<b>To:</b> Archivesspace Users Group<br>
<b>Subject:</b> Re: [Archivesspace_Users_Group] Can't Transfer Resources Between Repositories</font>
<div> </div>
</div>
<div>
<div style="font-family:arial,helvetica,sans-serif; font-size:10pt; color:#000000">
<div>Just to piggy-back on this conversation.</div>
<div><br>
</div>
<div>The vast majority of the time that we attempt to transfer records between repositories it occurs with zero issues. Unfortunately, we have one resource record that so far we have been unable to transfer (we have attempted and failed in v.1.2 and now v.1.4).
 However, our error is appears to be stemming from a different source as seen below. Any advice on how we can resolve this?</div>
<div><br>
</div>
<div>-Matt</div>
<div><br>
</div>
<div><img style="-moz-user-select: none;" src="cid:6fb56d2e744e08a7d00416347c0cbce4e3cc6ae2@zimbra"></div>
<div><br>
</div>
<div>
<div><strong><span face="georgia, serif" size="2" style="font-size:small">Matt</span><span face="georgia, serif" size="2" style="font-family:georgia,serif; font-size:small"> Francis</span></strong></div>
<div><span face="georgia, serif" size="2" style="font-family:georgia,serif; font-size:small">Archivist for Collection Management</span></div>
<div><span face="georgia, serif" size="2" style="font-family:georgia,serif; font-size:small">Special Collections Library<br>
Penn State University</span></div>
</div>
<div><br>
</div>
<hr id="zwchr">
<div><b>From: </b>"Brad Westbrook" <brad.westbrook@lyrasis.org><br>
<b>To: </b>"Archivesspace Users Group" <archivesspace_users_group@lyralists.lyrasis.org><br>
<b>Sent: </b>Wednesday, October 14, 2015 11:43:47 AM<br>
<b>Subject: </b>Re: [Archivesspace_Users_Group] Can't Transfer        Resources        Between        Repositories</div>
<div><br>
</div>
<div>
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:'Calibri','sans-serif'; color:#1f497d">Hi.</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:'Calibri','sans-serif'; color:#1f497d"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:'Calibri','sans-serif'; color:#1f497d">I have not been able to verify either Marcus or Matt’s reports.  Using test.archivesspace.org, I was able to transfer both accession and resource records
 across multiple repositories.  </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:'Calibri','sans-serif'; color:#1f497d"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:'Calibri','sans-serif'; color:#1f497d">Would either of you mind trying to replicate the problem in test.archivesspace.org or in sandbox.archivesspace.org?</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:'Calibri','sans-serif'; color:#1f497d"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:'Calibri','sans-serif'; color:#1f497d">Thanks,</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:'Calibri','sans-serif'; color:#1f497d"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:'Calibri','sans-serif'; color:#1f497d">Brad</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:'Calibri','sans-serif'; color:#1f497d"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:'Calibri','sans-serif'; color:#1f497d"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:'Calibri','sans-serif'; color:#1f497d"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:'Calibri','sans-serif'; color:#1f497d"> </span></p>
<div>
<div style="border:none; border-top:solid #B5C4DF 1.0pt; padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt; font-family:'Tahoma','sans-serif'">From:</span></b><span style="font-size:10.0pt; font-family:'Tahoma','sans-serif'"> archivesspace_users_group-bounces@lyralists.lyrasis.org [mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org]
<b>On Behalf Of </b>Matthew J Gorzalski<br>
<b>Sent:</b> Wednesday, October 14, 2015 9:45 AM<br>
<b>To:</b> Archivesspace Users Group<br>
<b>Subject:</b> Re: [Archivesspace_Users_Group] Can't Transfer Resources Between Repositories</span></p>
</div>
</div>
<p class="MsoNormal"> </p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:'Georgia','serif'">I’ve had the same problem transferring accession records from one repository to another.  I don’t have the technical knowledge to explore a solution, but I confirm you aren’t
 the only one having this issue.</span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:'Georgia','serif'"> </span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:'Georgia','serif'">Matt Gorzalski</span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:'Georgia','serif'">SIU Carbondale</span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:'Georgia','serif'"> </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'">
<a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org" target="_blank">
archivesspace_users_group-bounces@lyralists.lyrasis.org</a> [<a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org" target="_blank">mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org</a>]
<b>On Behalf Of </b>Ladd, Marcus<br>
<b>Sent:</b> Wednesday, October 14, 2015 8:30 AM<br>
<b>To:</b> <a href="mailto:archivesspace_users_group@lyralists.lyrasis.org" target="_blank">
archivesspace_users_group@lyralists.lyrasis.org</a><br>
<b>Subject:</b> [Archivesspace_Users_Group] Can't Transfer Resources Between Repositories</span></p>
<p class="MsoNormal"> </p>
<div>
<p class="MsoNormal">Has anyone else been having issues with transferring resources between repositories? I've been stumped on this for months. Every time I try and transfer a resources (regardless of which resource or to/from which repository), I get the following
 error:</p>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt; font-family:'Helvetica','sans-serif'; color:#a94442">Transfer<span style="background:#F2DEDE"> Failed: {"error":{"linked_agents/0/ref":["Must be one of: JSONModel(:agent_corporate_entity) uri, JSONModel(:agent_family)
 uri, JSONModel(:agent_person) uri, JSONModel(:agent_software) uri (you provided a String)"]},"warning":null,"invalid_object":"#<JSONModel(:event) {\"linked_agents\"=>[{\"role\"=>\"transmitter\", \"ref\"=>\"/agents/corporate_entities\"}, {\"role\"=>\"recipient\",
 \"ref\"=>\"/agents/corporate_entities/40\"}], \"linked_records\"=>[{\"role\"=>\"</span>transfer<span style="background:#F2DEDE">\", \"ref\"=>\"/repositories/5/resources/240\"}], \"event_type\"=>\"custody_</span>transfer<span style="background:#F2DEDE">\",
 \"timestamp\"=>\"2015-08-11T20:31:45Z\", \"jsonmodel_type\"=>\"event\", \"external_ids\"=>[]}>"}</span></span></p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">I have also attached a screenshot of the error if anyone is able to provide any suggestions.</p>
</div>
<div>
<p class="MsoNormal">Thanks,</p>
</div>
<div>
<p class="MsoNormal">Marcus</p>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-family:'Arial','sans-serif'"> </span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:'Arial','sans-serif'">--------</span></p>
</div>
<p class="MsoNormal"><b><span style="font-family:'Arial','sans-serif'">Marcus Ladd</span></b></p>
<div>
<p class="MsoNormal"><span style="font-family:'Arial','sans-serif'">Special Collections Digital Librarian</span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:'Arial','sans-serif'">Miami University, Oxford, OH</span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"> </p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
_______________________________________________<br>
Archivesspace_Users_Group mailing list<br>
Archivesspace_Users_Group@lyralists.lyrasis.org<br>
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group</div>
</div>
</div>
</div>
</div>
</body>
</html>