<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>Patrick, </div>
<div><br>
</div>
<div>     Check for duplicates in your classification hierarchy on the Archon side. It can cause the migration to fail. </div>
<div><br>
</div>
<div>Thanks, </div>
<div><br>
</div>
<div>Phil </div>
<div><br>
</div>
<div>
<div>
<div>
<div class="" style="margin: 0in 0in 0.0001pt; font-size: 11pt;">Phillip Suda<o:p class=""></o:p></div>
<div class="" style="margin: 0in 0in 0.0001pt; font-size: 11pt;">Systems Librarian<o:p class=""></o:p></div>
<div class="" style="margin: 0in 0in 0.0001pt; font-size: 11pt;">Howard-Tilton Memorial Library<o:p class=""></o:p></div>
<div class="" style="margin: 0in 0in 0.0001pt; font-size: 11pt;">Tulane University<o:p class=""></o:p></div>
<div class="" style="margin: 0in 0in 0.0001pt; font-size: 11pt;"><a href="mailto:psuda1@tulane.edu" class="" style="font-family: Verdana, sans-serif; color: rgb(149, 79, 114);">psuda1@tulane.edu</a><o:p class=""></o:p></div>
<div class="" style="margin: 0in 0in 0.0001pt; font-size: 11pt;">504-865-5607</div>
</div>
<div><br>
</div>
</div>
</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span><<a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org">archivesspace_users_group-bounces@lyralists.lyrasis.org</a>> on behalf of "Flanagan, Patrick" <<a href="mailto:PJFlanagan@ship.edu">PJFlanagan@ship.edu</a>><br>
<span style="font-weight:bold">Reply-To: </span>Archivesspace Users Group <<a href="mailto:archivesspace_users_group@lyralists.lyrasis.org">archivesspace_users_group@lyralists.lyrasis.org</a>><br>
<span style="font-weight:bold">Date: </span>Monday, January 11, 2016 at 9:10 AM<br>
<span style="font-weight:bold">To: </span>"Archivesspace Users Group ?[<a href="mailto:archivesspace_users_group@lyralists.lyrasis.org">archivesspace_users_group@lyralists.lyrasis.org</a>]?" <<a href="mailto:archivesspace_users_group@lyralists.lyrasis.org">archivesspace_users_group@lyralists.lyrasis.org</a>><br>
<span style="font-weight:bold">Subject: </span>[Archivesspace_Users_Group] Archon migration SortOrder values<br>
</div>
<div><br>
</div>
<div dir="ltr"><style type="text/css" id="owaParaStyle"></style>
<div fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Good morning,
<div><br>
</div>
<div>A little while ago I messaged the group about a null pointer exception during migration from Archon -> ArchivesSpace. This question is semi-related to that.</div>
<div><br>
</div>
<div>Among the checks to perform before migration is one relating to duplicate SortOrder values in tblCollections_Content. The associated query to perform is: "SELECT ParentID, SortOrder, count(*) from tblCollections_Content Group by ParentID, SortOrder HAVING
 count(*) > 1;"</div>
<div><br>
</div>
<div>I didn't fix that in the current instance I'm migrating because count(*) adds up across 144 rows to be well over 10,000. I'm wondering if that might be the cause of a null pointer exception when attempting to migrate from Archon. A sample of the latest
 error I've received:</div>
<div><br>
</div>
<div>
<div><i>Getting records for: ?p=core/classifications&batch_start=1801</i></div>
<div><i>get: <a href="https://archon.klnpa.org/psa?p=core/classifications&batch_start=1801">
https://archon.klnpa.org/psa?p=core/classifications&batch_start=1801</a></i></div>
<div><i>Status code: 200</i></div>
<div><i>Status text: Created</i></div>
<div><i>response: No matching record(s) found for batch_start=1801</i></div>
<div><i>java.lang.NullPointerException</i></div>
<div><i>        at org.nyu.edu.dlts.utils.ArchonClient.getRootParent(ArchonClient.java:499)</i></div>
<div><i>        at org.nyu.edu.dlts.utils.ArchonClient.getRootParent(ArchonClient.java:520)</i></div>
<div><i>        at org.nyu.edu.dlts.utils.ArchonClient.getClassificationRecords(ArchonClient.java:431)</i></div>
<div><i>        at org.nyu.edu.dlts.utils.ASpaceCopyUtil.copyClassificationRecords(ASpaceCopyUtil.java:918)</i></div>
<div><i>        at org.nyu.edu.dlts.dbCopyFrame$1.run(dbCopyFrame.java:231)</i></div>
<div><i>        at java.lang.Thread.run(Thread.java:745)</i></div>
</div>
<div><i><br>
</i></div>
<div>I was wondering: are the SortOrder values largely arbitrary? If I write up a quick script just to ensure each one has a unique value, would that potentially solve the issue? It's affecting numerous migration attempts. Thank you for your time,</div>
<div><br>
</div>
<div>~Patrick Flanagan</div>
<div>KLN Applications Administrator</div>
<div>Keystone Library Network Hub</div>
<div><br>
</div>
</div>
</div>
</div>
</span>
</body>
</html>