Hello,

So it sounds like you got it to work with the "restore" (-r) option after
all?  If so, that's a good thing (though if you don't want it to keep it's
existing handle, that may still not be a perfect solution).

I'm surprised that the "submit" (-s) option didn't work properly.  I'm not
exactly sure what is going on here.  I'd be curious to hear from others to
see if they've seen this behavior before.

After reviewing the AIP documentation again, I noticed this note about
using the "-w" flag with "-s" when moving a Collection from one DSpace to
another:
https://wiki.duraspace.org/display/DSDOC5x/AIP+Backup+and+Restore#AIPBackupandRestore-SubmittingAIP(s)whileskippinganyCollectionApprovalWorkflows

I'm not sure if that could be what is happening here, but it's another
thing to try.  I admit, this error is a bit confusing to me, so I'm hoping
that someone else might have further ideas as well.

Good luck,

Tim

On Fri, Mar 9, 2018 at 11:07 AM Brendow Adriel <[email protected]> wrote:

> C:\comunidades5\bin>dspace packager -s -a -t AIP -e admin -p capes/237132
> "E:\users\brendows\Projects\projetos_1425.zip"
>
> Using DSpace installation in: C:\comunidades5
> Destination parents:
> Owner: capes/237132
>
> Ingesting package located at   E:\users\brendows\Projects\projetos
> _1425.zip
>
> Also ingesting all referenced packages (recursive mode)..
> This may take a while, please check your logs for ongoing status while we
> process each package.
> org.dspace.content.crosswalk.CrosswalkException:
> org.dspace.content.packager.PackageException: Unable to translate Handle to
> Internal ID in group named 'COLLECTION_hdl:capes/224578_SUBMIT' as DSpace
> Object (Handle='hdl:capes/224578') does not exist.
>         at
> org.dspace.content.crosswalk.METSRightsCrosswalk.ingest(METSRightsCrosswalk.java:547)
>         at
> org.dspace.content.crosswalk.METSRightsCrosswalk.ingest(METSRightsCrosswalk.java:447)
>         at
> org.dspace.content.packager.METSManifest.crosswalkXmd(METSManifest.java:1193)
>         at
> org.dspace.content.packager.METSManifest.crosswalkObjectOtherAdminMD(METSManifest.java:1114)
>         at
> org.dspace.content.packager.AbstractMETSIngester.ingestObject(AbstractMETSIngester.java:453)
>         at
> org.dspace.content.packager.AbstractMETSIngester.ingest(AbstractMETSIngester.java:228)
>         at
> org.dspace.content.packager.AbstractPackageIngester.ingestAll(AbstractPackageIngester.java:145)
>         at org.dspace.app.packager.Packager.ingest(Packager.java:515)
>         at org.dspace.app.packager.Packager.main(Packager.java:427)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:498)
>         at
> org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:226)
>         at
> org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:78)
> Caused by: org.dspace.content.packager.PackageException: Unable to
> translate Handle to Internal ID in group named
> 'COLLECTION_hdl:capes/224578_SUBMIT' as DSpace Object
> (Handle='hdl:capes/224578') does not exist.
>         at
> org.dspace.content.packager.PackageUtils.translateGroupNameForImport(PackageUtils.java:932)
>         at
> org.dspace.content.crosswalk.METSRightsCrosswalk.ingest(METSRightsCrosswalk.java:524)
>         ... 14 more
> org.dspace.content.crosswalk.CrosswalkException:
> org.dspace.content.packager.PackageException: Unable to translate Handle to
> Internal ID in group named 'COLLECTION_hdl:capes/224578_SUBMIT' as DSpace
> Object (Handle='hdl:capes/224578') does not exist.
>
>
>
> I check dspace logs and returns it:
>
> 2018-03-09 13:21:48,366 WARN  org.dspace.content.packager.RoleIngester @
> Skipping group named 'COLLECTION_hdl:capes/224578_ADMIN' as it seems to
> correspond to a Community or Collection that does not exist in the system.
> If you are performing an AIP restore, you can ignore this warning as the
> Community/Collection AIP will likely create this group once it is processed.
> 2018-03-09 13:21:48,367 WARN  org.dspace.content.packager.RoleIngester @
> Skipping group named 'COLLECTION_hdl:capes/224578_SUBMIT' as it seems to
> correspond to a Community or Collection that does not exist in the system.
> If you are performing an AIP restore, you can ignore this warning as the
> Community/Collection AIP will likely create this group once it is processed.
>
> So i tested with parameter:
>
> dspace packager -r -a -t AIP -e admin -p capes/223016
> <dir>/projetos_1425.zip
>
> and it works. But this commands is diferent beacause it restore with old
> handle collection and with parameter -s create a new handle.
>
> I'm not sure why this command does not worked.
>
>
> --
> 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 post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/dspace-tech.
> For more options, visit https://groups.google.com/d/optout.
>
-- 
Tim Donohue
Technical Lead for DSpace & DSpaceDirect
DuraSpace.org | DSpace.org | DSpaceDirect.org

-- 
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.

Reply via email to