Hello,

I'm trying to import an AIP package exported from a DSpace 7.4 installation 
into another DSpace 7.6.5 installation.

I'm using the *-s* option for the import because the idea is to import the 
entire old structure (communities, collections, and items) into a new 
DSpace community.

Using the *-s* flag, the importer should generate new handles for all the 
elements. However, when I use the *-a* option to import the entire 
hierarchy, the operation gets stuck when it tries to create the first 
collection belonging to the newly created communities. It attempts to 
create the collection within a community that has the original handle 
contained in the exported XML file.

Basically, I'm using this command: sudo /opt/dspace-7/bin/dspace packager 
-s -a -t AIP -e [email protected] -p 123456789/7 
/shares/dspace/import/dspace-aip.zip

I can see in the log (dspace-cli.log) that the importer create all the 
communities and when it tries to create the first child collection it 
searches for the "original" parent handle from the old DSpace and gives 
this exception:

java.lang.UnsupportedOperationException: Could not find a parent 
DSpaceObject referenced as '123456789/192' in the METS Manifest for object 
hdl:123456789/193. A parent DSpaceObject must be specified from either the 
'packager' command or noted in the METS Manifest itself.

The system doesn't know which community to put the collections into because 
the newly created communities obviously have a different handle than the 
one originally exported.

I tried also to add -o ignoreHandle=true, that should be enabled by default 
for "submission" mode.

How can I import my communities and collections?

Thanks,

Andrea

-- 
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 [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/dspace-tech/8fcbf8bf-c6e0-4ff9-80ca-11180d172347n%40googlegroups.com.

Reply via email to