[Archivesspace_Users_Group] Repository record and corresponding agent representation

Blake Carver blake.carver at lyrasis.org
Wed Nov 20 08:35:04 EST 2019


>  "NoMethodError (undefined > method `[]=' for nil:NilClass)"

Usually when I see that error a restart will clear things up. It seems to be one of those very generic errors that pop up from time to time and I've never been able to find a consistent cause. I'm assuming that there's no other errors logged at the same time. Sometimes there's more useful stuff above and below the ol' "nil" error that could point to a more specific problem.

BUT

>  the PUI display of “collection inventory” is broken...

That leads me to believe there might be a problem with the index as well.  I'd try doing a full reindex.

If the restart/reindex doesn't get things back to where they should be, dial up the logelevel to debug and see if you can dig a new error out of the logs. There could be a problem in your data, but it's hard to tell until you try the restart/reindex.

________________________________
From: archivesspace_users_group-bounces at lyralists.lyrasis.org <archivesspace_users_group-bounces at lyralists.lyrasis.org> on behalf of Wetherill, Julie M. <julie_wetherill at harvard.edu>
Sent: Wednesday, November 20, 2019 8:02 AM
To: archivesspace_users_group at lyralists.lyrasis.org <archivesspace_users_group at lyralists.lyrasis.org>
Subject: [Archivesspace_Users_Group] Repository record and corresponding agent representation


Can anyone describe for me or point me to documentation about the relationship between a repository record and its corporate body agent representation? Twice recently, our ASpace PUI (v2.5.2) has been mysteriously disrupted by a bug that is associated with missing metadata in either a repository record or the parallel corporate-body agent record. In the first case, resources in a specific repository were not displaying and in the current case, the PUI display of “collection inventory” is broken. In both cases, this error was in the logs:



"NoMethodError (undefined > method `[]=' for nil:NilClass)"



This user list discussion thread: http://lyralists.lyrasis.org/mailman/htdig/archivesspace_users_group/2019-April/006715.html refers to this error and says this about the issue and how to fix it: “The agent_representation_id value in the repository table was null. I 'fixed' it by making a small edit to the Repository and saving it.” Unfortunately for us, this approach did not fix it although we have 30 repositories and haven’t yet determined which repo record may be the issue (if it is the issue).



Any ideas? Thanks. -julie



Julie Wetherill

Library Technology Services

Harvard University
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20191120/bf8d6a6e/attachment.html>


More information about the Archivesspace_Users_Group mailing list