Hi, Since functionality depends on this value being there, it really should be readonly. Here’s a PR that does that: https://github.com/archivesspace/archivesspace/pull/2726 <https://github.com/archivesspace/archivesspace/pull/2726>
Cheers, James > On Jun 19, 2022, at 11:46 AM, James Bullen <ja...@hudmol.com> wrote: > > > Hi Scott, > > When you create a digital object instance on a resource (or archival object) > it sets instance_type to digital_object behind the scenes (when you create a > container instance you are presented with a dropdown to set the instance_type > - excluding the digital_object value as an option). > > Somehow your instance_type enumeration has lost its digital_object value, so > when it tries to set that value you get the validation error you’re seeing. > In fact the values listed in the error look more like values for > container_type than instance_type, so there might be something deeper going > on. > > Regardless, you should be able to fix this by adding a digital_object value > back into your instance_type enumeration (called instance_instance_type in > the 'Manage Controlled Value Lists' dropdown. > > Hope that helps. > > > Cheers, > James > > >> On Jun 18, 2022, at 11:50 PM, Blake Carver <blake.car...@lyrasis.org >> <mailto:blake.car...@lyrasis.org>> wrote: >> >> translation missing: >> validation_errors.protected_read-only_list_#/instances/0/instance_type._invalid_value__digital_object_.__must_be_one_of__box__volume__oversize_folder__reel__audio__disc__film__video__computer_disk__box-folder__reel-frame__side__sc__package__wcftr__roll__map_case__drawer__aa__ab__ac__ad__ae__baa__ca__cb__cc__cd__da__db__dc__dd__de__df__dg__ea__fe__ff__fg__fh__ga__hb__hc__vbb__vbc__vea__vfa__vha__vhb__vhc__oversize_box__folder__fa__electronic__microfilm__ph_box__video_box__dvd__fb__fc__fd__fi__gb__ha__hd__vpa__vta__box__album__ph_box__disc__video__oversize_folder__box-folder__tape__film_box__tape_box__box/folder__audio__vha >> >> Take a look at the Digital Objects Controlled Value lists >> (/staff/enumerations?id=12) I think you're missing something there. >> "instance_type._invalid_value__digital_object_.__must_be_one_of__box" is >> saying "you're trying to add something that's not in this list, here's >> what's in that list" >> >> >> From: archivesspace_users_group-boun...@lyralists.lyrasis.org >> <mailto:archivesspace_users_group-boun...@lyralists.lyrasis.org> >> <archivesspace_users_group-boun...@lyralists.lyrasis.org >> <mailto:archivesspace_users_group-boun...@lyralists.lyrasis.org>> on behalf >> of Scott Prater <scott.pra...@wisc.edu <mailto:scott.pra...@wisc.edu>> >> Sent: Friday, June 17, 2022 6:05 PM >> To: archivesspace_users_group@lyralists.lyrasis.org >> <mailto:archivesspace_users_group@lyralists.lyrasis.org> >> <archivesspace_users_group@lyralists.lyrasis.org >> <mailto:archivesspace_users_group@lyralists.lyrasis.org>> >> Subject: [Archivesspace_Users_Group] Problem attaching digital objects to >> resources in ArchivesSpace 3.1.1 >> >> Hello, >> >> We have recently begun testing out attaching digital object Instances to our >> resources in ArchivesSpace, version 3.1.1. So far we have no success: we >> can create a digital objects, and we can select one and add it to a resource >> in the Resource edit view, but when we then attempt to save the resource, we >> get the unhelpful "Validation Error" message with no other information. The >> resource is not updated. >> >> I poked around the code, and temporarily disabled the frontend code where >> validation error exceptions are swallowed >> (https://github.com/archivesspace/archivesspace/blob/v3.1.1/frontend/app/controllers/application_controller.rb#L366-L388 >> >> <https://github.com/archivesspace/archivesspace/blob/v3.1.1/frontend/app/controllers/application_controller.rb#L366-L388>). >> I then tried to save the resource with the attached digital object again, >> and this time saw the swallowed error: >> >> translation missing: >> validation_errors.protected_read-only_list_#/instances/0/instance_type._invalid_value__digital_object_.__must_be_one_of__box__volume__oversize_folder__reel__audio__disc__film__video__computer_disk__box-folder__reel-frame__side__sc__package__wcftr__roll__map_case__drawer__aa__ab__ac__ad__ae__baa__ca__cb__cc__cd__da__db__dc__dd__de__df__dg__ea__fe__ff__fg__fh__ga__hb__hc__vbb__vbc__vea__vfa__vha__vhb__vhc__oversize_box__folder__fa__electronic__microfilm__ph_box__video_box__dvd__fb__fc__fd__fi__gb__ha__hd__vpa__vta__box__album__ph_box__disc__video__oversize_folder__box-folder__tape__film_box__tape_box__box/folder__audio__vha >> >> It looks like somehow a type is not getting set, or the backend is >> mistakenly requiring a type on the digital object. There is no place I >> could see in the digital object edit interface where I can select any of >> those types. I did select a "Moving image" type on my test digital object, >> but that did not change the error. >> >> We've upgraded over the years from ArchivesSpace 2.5.1 to 3.1.1, following >> the upgrade steps for each new release. Up to now, we haven't had any >> problems, but perhaps something has been left behind from previous versions? >> Or a table is missing in our latest version? We are running ArchivesSpace >> locally on our own server; we have not made any changes to default >> distributions. >> >> Any help or insight is appreciated (and yes, we did run a full reindex, to >> no avail). >> >> Thanks in advance, >> >> -- Scott >> >> -- >> Scott Prater >> Digital Library Architect >> UW Digital Collections Center >> University of Wisconsin - Madison >> >> >> _______________________________________________ >> Archivesspace_Users_Group mailing list >> Archivesspace_Users_Group@lyralists.lyrasis.org >> <mailto:Archivesspace_Users_Group@lyralists.lyrasis.org> >> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group >> <http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group> >> _______________________________________________ >> Archivesspace_Users_Group mailing list >> Archivesspace_Users_Group@lyralists.lyrasis.org >> <mailto:Archivesspace_Users_Group@lyralists.lyrasis.org> >> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group >> <http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group> > _______________________________________________ > Archivesspace_Users_Group mailing list > Archivesspace_Users_Group@lyralists.lyrasis.org > http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group
_______________________________________________ Archivesspace_Users_Group mailing list Archivesspace_Users_Group@lyralists.lyrasis.org http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group