[Archivesspace_Users_Group] MARCXML Import Error
Eddie Clem
carl.clem at wilkes.edu
Thu May 21 16:56:14 EDT 2020
Mark,
Thanks again for the background information! I was able to add a $f undated
to each 245, and the records did load into AS. Do you know if there is a
way for us to locally edit the mapping table so that item record notes and
barcodes can be imported into the AS records, too?
Thanks!
Eddie
*From:* archivesspace_users_group-bounces at lyralists.lyrasis.org <
archivesspace_users_group-bounces at lyralists.lyrasis.org> *On Behalf Of *Custer,
Mark
*Sent:* Wednesday, May 20, 2020 6:07 PM
*To:* Archivesspace Users Group <
archivesspace_users_group at lyralists.lyrasis.org>
*Subject:* Re: [Archivesspace_Users_Group] MARCXML Import Error
Eddie,
Thanks! Having the file on hand make it much easier to see what’s going
on. The kicker is that the first record that the ASpace MARC importer is
failing on is the record with a title remainder = More “Yale Talks” 😊.
So, the issue is that the ASpace importer isn’t sophisticated enough to
handle every type of MARC record. In this case, the importer is ignoring
the 008 dates in that specific record because those dates are characterized
as Publication and Copyright dates (with the “t” in position 6 of the 008
control field), whereas ASpace is only going to expect begin and/or end
dates. Further, the importer doesn’t look at the 264 field at all, so it’s
not getting the date from there either. An import/export map is available
on the ArchivesSpace website. Here’s a direct link:
https://archivesspace.org/wp-content/uploads/2016/08/MARCXML-Import-Export-Mapping-20130715.xlsx
It’s largely accurate, but I’ve found that sometimes it doesn’t match the
codebase exactly.
Anyhow, it seems that I should be able to add 260s, with a subfield c, for
those records that have the publication and copyright dates in the 008, but
I still got an error when I tried that. Instead, I edited the 008 fields
for the affected records, going with an “s” in position 6, and that made
everything work. And as you said, you could also add a 245$f globally to
get everything to import, but you might want to check and make sure you
don’t wind up duplicate dates in that case, depending on what the importer
does.
A nice feature request would be to update the ASpace MARC importer to
understand 008 fields with publication and copyright dates, as well as the
264 fields, perhaps! But in the meantime, you can edit the MARC records
prior to ingest.
I’m attaching the file that I edited, in hopes that it helps (and that it
works in your instance).
Mark
*From:* archivesspace_users_group-bounces at lyralists.lyrasis.org [
mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org
<archivesspace_users_group-bounces at lyralists.lyrasis.org>] *On Behalf Of *Eddie
Clem
*Sent:* Wednesday, 20 May, 2020 4:36 PM
*To:* Archivesspace Users Group <
archivesspace_users_group at lyralists.lyrasis.org>
*Subject:* Re: [Archivesspace_Users_Group] MARCXML Import Error
Mark,
Thanks for your reply. I’ve attached the file that I was attempting to
import. I can globally add a 245$f undated if that would make ArchivesSpace
happy….
All of my MARC records do have dates in the 008/260/264 fields….
Eddie
*From:* archivesspace_users_group-bounces at lyralists.lyrasis.org <
archivesspace_users_group-bounces at lyralists.lyrasis.org> *On Behalf Of *Custer,
Mark
*Sent:* Wednesday, May 20, 2020 4:31 PM
*To:* archivesspace_users_group at lyralists.lyrasis.org
*Subject:* Re: [Archivesspace_Users_Group] MARCXML Import Error
Eddie,
ArchivesSpace requires a few different data elements to be present before a
new Resource record can be saved. Based on this error, it looks like the
MARC record does not have any date information where the ArchiveSpace
MARCXML importer would expect dates to be present (i.e. dates : At least 1
item(s) is required). And yet, dates are not required in a MARC
bibliographic record, which is why the file can still be completely valid
but not import.
If you have dates in any of the likely places, like the 008 control field,
or even if there are no dates worth mentioning but you add something like
"undated" to a 245 field, subfield f, then I *think* your file will likely
import fine. But if not, can you attach the file so that someone can take
a look?
I hope that helps,
Mark
------------------------------
*From:* archivesspace_users_group-bounces at lyralists.lyrasis.org <
archivesspace_users_group-bounces at lyralists.lyrasis.org> on behalf of Eddie
Clem <carl.clem at wilkes.edu>
*Sent:* Wednesday, May 20, 2020 4:18 PM
*To:* archivesspace_users_group at lyralists.lyrasis.org <
archivesspace_users_group at lyralists.lyrasis.org>
*Subject:* [Archivesspace_Users_Group] MARCXML Import Error
Hi! I am trying to import a MARCXML file (for Resource) into ArchivesSpace.
I am getting the following error. I’ve searched the Help Center and Google,
and I can’t figure out what it means. I’ve also validated the XML file with
Oxygen, and it says “validation successful.” Can anyone help me decipher
what this error means and how I can fix my file so that I can import them?
Thanks!
Eddie
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
IMPORT ERROR
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
The following errors were found:
dates : At least 1 item(s) is required
For JSONModel(:resource):
#<JSONModel(:resource) {"jsonmodel_type"=>"resource", "external_ids"=>[],
"subjects"=>[{"ref"=>"/subjects/import_6fa10e99-e450-4716-8d2b-71e29a999aff"},
{"ref"=>"/subjects/import_d0cc91c6-9e30-48f5-a35f-3c9baf4f85d4"},
{"ref"=>"/subjects/import_0a5f133d-1760-45d2-be64-271410195fbe"},
{"ref"=>"/subjects/import_c8529087-60a9-4c2a-a182-d1ae2b0f87d3"},
{"ref"=>"/subjects/import_de69be06-90fd-4a10-b9c8-2ab9168511d4"}],
"linked_events"=>[], "extents"=>[{"jsonmodel_type"=>"extent", "uri"=>nil,
"number"=>"96", "extent_type"=>"pages ;", "container_summary"=>"96 pages ;
20 cm", "portion"=>"whole"}], "dates"=>[], "external_documents"=>[],
"rights_statements"=>[], "linked_agents"=>[{"role"=>"creator", "terms"=>[],
"ref"=>"/agents/people/import_adeb7943-39cb-4d6b-ab28-d73897843cb6"}],
"restrictions"=>false, "revision_statements"=>[], "instances"=>[],
"deaccessions"=>[], "related_accessions"=>[], "classifications"=>[],
"notes"=>[{"jsonmodel_type"=>"note_multipart",
"subnotes"=>[{"jsonmodel_type"=>"note_text", "content"=>"On cover: A guide
to Bible reading for the average man."}], "uri"=>nil, "label"=>"General
Note", "type"=>"odd"}],
"uri"=>"/repositories/import/resources/import_d9b1ad80-0a30-46d1-9ded-715442ce5096",
"level"=>"item", "language"=>"eng", "finding_aid_description_rules"=>"rda",
"title"=>"An Old Testament primer / : / by Walter Evans Cooke; introduction
by Burton J. Hendrick.",
"id_0"=>"imported-c0ee1ab4-6789-4f90-8997-8dcbdf30c88e"}>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
*Eddie Clem, MLS*
Technical Services Librarian
E.S. Farley Library | Wilkes University
Acquisitions, Cataloging, & Systems
[image:
https://cdn2.hubspot.net/hubfs/53/tools/email-signature-generator/icons/phone-icon-2x.png]
570-408-4258
[image:
https://cdn2.hubspot.net/hubfs/53/tools/email-signature-generator/icons/email-icon-2x.png]
carl.clem at wilkes.edu
[image:
https://cdn2.hubspot.net/hubfs/53/tools/email-signature-generator/icons/link-icon-2x.png]
www.wilkes.edu/library
<https://nam05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.wilkes.edu%2Flibrary&data=02%7C01%7Cmark.custer%40yale.edu%7Cf86a0b66b67046fba96c08d7fcfd7cc4%7Cdd8cbebb21394df8b4114e3e87abeb5c%7C0%7C0%7C637256037964330195&sdata=NMcLZzr%2FRKEj6HjKjIEFTU6cSdudtJ8jxiA4rdx6YP4%3D&reserved=0>
[image:
https://cdn2.hubspot.net/hubfs/53/tools/email-signature-generator/icons/address-icon-2x.png]
84 W. South St., Wilkes-Barre, PA 18766
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20200521/958177b5/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 178 bytes
Desc: not available
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20200521/958177b5/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 172 bytes
Desc: not available
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20200521/958177b5/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 372 bytes
Desc: not available
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20200521/958177b5/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.png
Type: image/png
Size: 428 bytes
Desc: not available
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20200521/958177b5/attachment-0003.png>
More information about the Archivesspace_Users_Group
mailing list