Bulk Import

54 views
Skip to first unread message

Tianyi Gu

unread,
Apr 18, 2023, 8:28:02 PM4/18/23
to DSpace Technical Support
Hello,

I run a command to import AIP package data as below:

import --add --eperson=te...@test.edu -c 123456789/1885 --source=/import --zip=Authors_AAFC.zip --mapfile=/export/author_aafc

The AIP package is attached. I am testing the relationship file and get an error message as following:
......
158 item99
        Processing relationships file: relationships
Started: 1681863513493
Ended: 1681863524808
Elapsed time: 11 secs (11315 msecs)
java.lang.Exception: Error committing changes to database: Bad mapfile line:
</dublin_core>, aborting most recent changes
        at org.dspace.app.itemimport.ItemImport.internalRun(ItemImport.java:229)
        at org.dspace.scripts.DSpaceRunnable.run(DSpaceRunnable.java:104)
        at org.dspace.app.launcher.ScriptLauncher.executeScript(ScriptLauncher.java:149)
        at org.dspace.app.launcher.ScriptLauncher.handleScript(ScriptLauncher.java:131)
        at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:98)
Caused by: java.lang.Exception: Bad mapfile line:
</dublin_core>
        at org.dspace.app.itemimport.ItemImportServiceImpl.processRelationshipFile(ItemImportServiceImpl.java:501)
        at org.dspace.app.itemimport.ItemImportServiceImpl.addRelationships(ItemImportServiceImpl.java:349)
        at org.dspace.app.itemimport.ItemImportServiceImpl.addItems(ItemImportServiceImpl.java:323)
        at org.dspace.app.itemimport.ItemImportCLI.process(ItemImportCLI.java:87)
        at org.dspace.app.itemimport.ItemImport.internalRun(ItemImport.java:222)
        ... 4 more


Please advice.

Thank you,
Tianyi
Authors_AAFC.zip

Jose Blanco

unread,
Apr 19, 2023, 12:55:01 PM4/19/23
to Tianyi Gu, DSpace Technical Support
It looks like it does not like something about your map file. Take a
look at it. There may be some problem with the xml.

-Jose
> --
> All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
> ---
> You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/2efc8e5f-23a4-4003-84ed-fd284bb70417n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages