[Archivesspace_Users_Group] Validation errors preventing migration of data to ArchivesSpace

Megan Williams MWILLIAM at nla.gov.au
Thu Nov 27 01:05:40 EST 2014

We are in the midst of migrating our data (tight timeframe, of course) from Archivists' Toolkit 2.0.0 Update 15 to ArchivesSpace 1.1.0.  We are using both the migration plugin and the refid plugin, and have encountered validation errors that prevent most of our resource records from migrating.

As per advice from Nathan Steven, we are using the refid plugin with the option of "refid_none" to ensure that no refids are copied and that ArchivesSpace assigns new ones instead.

The following config changes were made in the ArchivesSpace v1.1.0 config file for loading the "refid_rules" plugin:

AppConfig[:refid_rule] = "<%= repository['repo_code'] %>_<%= resource['formatted_id']  %>_<%= SecureRandom.hex %>"
## Plug-ins to load. They will load in the order specified
AppConfig[:plugins] = ['refid_rules']

Post-migration we found that most of our resource records had not migrated.  The migration error log is attached; the errors appear to be primarily validation errors relating to "refids", i.e.:

{"errors": ["Server error: #<:ValidationException: :errors=>{\"ref_id\"=>[\"Did not match regular expression: \\\\A[a-zA-Z0-9\\\\-_:\\\\.]*\\\\z\"]}<file:///\\A[a-zA-Z0-9\-_:\.%5d*\z\%22%5d%7d>}>"],"saved": []}

We were previously able to migrate all of our resources in an earlier trial migration to ArchivesSpace version using the default migration settings on the migration plugin (without the refid plugin).

Any ideas/advice on where we went wrong would be greatly appreciated!

Many thanks


Megan Williams | A/g Assistant Curator | Pictures & Manuscripts Branch | National Library of Australia | Canberra ACT 2600 | w: www.nla.gov.au<http://www.nla.gov.au/>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20141127/837c3e14/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: migration_error[2].log
Type: application/octet-stream
Size: 12319 bytes
Desc: migration_error[2].log
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20141127/837c3e14/attachment.obj>

More information about the Archivesspace_Users_Group mailing list