<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:x="urn:schemas-microsoft-com:office:excel" 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 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@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;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle21
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@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="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Patrick,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Just taking a quick look at this, I wonder if the issue might have something to do with the relationship between the repository record and its corresponding corporate agent record?  Do both of those records (the repository record and the
 corporate agent record associated with the repo that owns any affected resource records) show up fine in the staff interface?  I’ve heard of similar issues happening, but as it’s not happened in our system, I’ve never seen exactly what causes that problem.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Do you have the ability to run SQL queries?  If so, then this query should provide the URL suffix that you could use to check out the agent records that are linked to each repository record (since I don’t think that the staff interface
 surfaces how the two records are connected):<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-left:.5in">SELECT <o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">    CONCAT('/agents/agent_corporate_entity/', id) AS 'url_stub'<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">FROM<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">    agent_corporate_entity<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">WHERE<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">    id IN (SELECT  agent_representation_id FROM repository)<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">;<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I don’t *<b>think</b>* that those corporate agent records should need to be published not to cause an error, although if that’s the case then that might be a bug.  I’m just curious if the agent records show up at all in the staff interface,
 or if editing those records (even just a meaningless edit) will solve the issue in the public interface after the indexer picks those up again.  Ditto that the repository record itself might need to be re-indexed, but again, I’m just guessing since I haven’t
 encountered this issue first hand, although I know it has impacted other folks.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Mark<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> archivesspace_users_group-bounces@lyralists.lyrasis.org [mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org]
<b>On Behalf Of </b>Flanagan, Patrick<br>
<b>Sent:</b> Monday, 15 April, 2019 1:58 PM<br>
<b>To:</b> archivesspace_users_group@lyralists.lyrasis.org<br>
<b>Subject:</b> [Archivesspace_Users_Group] Unable to view collections (public interface) after upgrading from 1.5.1 to 2.5.2<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div id="divtagdefaultwrapper">
<p><span style="font-size:12.0pt;color:black">I've also attempted to step the upgrades down to 2.5.1, 2.4.0, then 2.1.0, to see if some aspect of the migration was responsible; but the issue remains regardless. The staff interface is not impacted to the best
 of my knowledge.<o:p></o:p></span></p>
<p><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
<p><span style="font-size:12.0pt;color:black">Upon clicking any collection in thew new public interface I'm greeted with the
<b>We're sorry, but something went wrong</b> error message. The log  file indicates the following error at the same time:<o:p></o:p></span></p>
<p><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:Consolas;color:black">Apr 15, 2019 11:28:16 AM org.apache.solr.core.SolrCore execute</span><span style="font-size:12.0pt;color:black"><br>
</span><span style="font-size:12.0pt;font-family:Consolas;color:black">INFO: [collection1] webapp= path=/select params={facet=true&start=0&csv.encapsulator="&q=(id:("\/repositories\/2\/top_containers\/1143")+OR+id:("\/repositories\/2\/top_containers\/1144")+OR+id:("\/repositories\/2\/top_containers\/1145")+OR+id:("\/repositories\/2\/top_containers\/1146")+OR+id:("\/repositories\/2\/top_containers\/1147")+OR+id:("\/repositories\/2\/top_containers\/1149"))&q.op=AND&csv.header=true&csv.escape=\&wt=json&fq=-exclude_by_default:true&fq=suppressed:false&rows=500}
 hits=6 status=0 QTime=2 </span><span style="font-size:12.0pt;color:black"><br>
</span><span style="font-size:12.0pt;font-family:Consolas;color:black">F, [2019-04-15T11:28:16.525748 #54143] FATAL -- : [15f88748-5b17-4145-97f9-9fef25df3ba0]   </span><span style="font-size:12.0pt;color:black"><br>
</span><span style="font-size:12.0pt;font-family:Consolas;color:black">F, [2019-04-15T11:28:16.526196 #54143] FATAL -- : [15f88748-5b17-4145-97f9-9fef25df3ba0]
<b>ActionView::Template::Error (undefined method `[]' for nil:NilClass):</b></span><span style="font-size:12.0pt;color:black"><br>
</span><span style="font-size:12.0pt;font-family:Consolas;color:black">F, [2019-04-15T11:28:16.527030 #54143] FATAL -- : [15f88748-5b17-4145-97f9-9fef25df3ba0]     1: <% if @result && @result.respond_to?(:metadata) %></span><span style="font-size:12.0pt;color:black"><br>
</span><span style="font-size:12.0pt;font-family:Consolas;color:black">[15f88748-5b17-4145-97f9-9fef25df3ba0]     2:
</span><span style="font-size:12.0pt;color:black"><br>
</span><span style="font-size:12.0pt;font-family:Consolas;color:black">[15f88748-5b17-4145-97f9-9fef25df3ba0]     3: <script type="application/ld+json"></span><span style="font-size:12.0pt;color:black"><br>
</span><span style="font-size:12.0pt;font-family:Consolas;color:black">[15f88748-5b17-4145-97f9-9fef25df3ba0]     4: <%= JSON.pretty_generate(@result.metadata).html_safe %></span><span style="font-size:12.0pt;color:black"><br>
</span><span style="font-size:12.0pt;font-family:Consolas;color:black">[15f88748-5b17-4145-97f9-9fef25df3ba0]     5: </script></span><span style="font-size:12.0pt;color:black"><br>
</span><span style="font-size:12.0pt;font-family:Consolas;color:black">[15f88748-5b17-4145-97f9-9fef25df3ba0]     6: <% end %></span><span style="font-size:12.0pt;color:black"><br>
</span><span style="font-size:12.0pt;font-family:Consolas;color:black">F, [2019-04-15T11:28:16.527849 #54143] FATAL -- : [15f88748-5b17-4145-97f9-9fef25df3ba0]   </span><span style="font-size:12.0pt;color:black"><br>
</span><span style="font-size:12.0pt;font-family:Consolas;color:black">F, [2019-04-15T11:28:16.528196 #54143] FATAL -- : [15f88748-5b17-4145-97f9-9fef25df3ba0]
<b>app/models/resource.rb:104</b>:in `metadata'</span><span style="font-size:12.0pt;color:black"><br>
</span><span style="font-size:12.0pt;font-family:Consolas;color:black">[15f88748-5b17-4145-97f9-9fef25df3ba0] app/views/shared/_metadata.html.erb:4:in `_app_views_shared__metadata_html_erb___128582640_2336'</span><span style="font-size:12.0pt;color:black"><br>
</span><span style="font-size:12.0pt;font-family:Consolas;color:black">[15f88748-5b17-4145-97f9-9fef25df3ba0] app/views/layouts/application.html.erb:24:in `_app_views_layouts_application_html_erb___683597418_2334'</span><span style="font-size:12.0pt;color:black"><o:p></o:p></span></p>
</div>
<p><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
<p><span style="font-size:12.0pt;color:black">I investigated a little bit and found a reference to authority ID around that line. It's worth noting that this particular institution seems to have authority ID blank for every agent, which makes the record look
 like this in the staff interface:<o:p></o:p></span></p>
<p><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
<p><span style="font-size:12.0pt;color:black"><img width="791" height="377" style="width:8.2395in;height:3.927in" id="img404119" src="cid:image001.png@01D4F395.78816690"><o:p></o:p></span></p>
<p><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
<p><span style="font-size:12.0pt;color:black">This aspect of the problem might be unrelated, but it was the only lead I had.<o:p></o:p></span></p>
<p><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
<p><span style="font-size:12.0pt;color:black">Any advice would be welcome! I thought I would ask here before heading to Jira with it.<o:p></o:p></span></p>
<p><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
<p><span style="font-size:12.0pt;color:black">Thanks,<o:p></o:p></span></p>
<p><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
<div id="Signature">
<div id="divtagdefaultwrapper">
<p style="background:white"><span style="font-size:12.0pt;color:black">~Patrick Flanagan<o:p></o:p></span></p>
<p style="background:white"><i><span style="font-size:12.0pt;color:black">KLN Applications Administrator</span></i><span style="font-size:12.0pt;color:black"><o:p></o:p></span></p>
<p style="background:white"><i><span style="font-size:12.0pt;color:black">Keystone Library Network Hub</span></i><span style="font-size:12.0pt;color:black"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</body>
</html>