Hello,

Based on the "projetos_1425.zip" that you sent along, it looks like that
ZIP file *represents* the Collection with handle "capes/224578" (which is
the same Collection that is said to be not found in the original error
message).

Since that's the case, it sounds to me like you should use the *submit*
mode, and you MUST tell DSpace what Community this Collection should be
added under.

So, your command MUST include a "-p [parent-handle]" parameter, similar to
this:

dspace packager -s -a -t AIP -e admin -p
[handle-of-community-to-add-collection-under]
C:\Users\brendows\Downloads\1425\dados_comunidades\projetos_1425.zip

In summary, I think DSpace is throwing an error here because it's getting
confused.  You are trying to import a Collection, but have not told DSpace
where that Collection should be added in your Community / Collection
hierarchy.  So, if you specify the parent Community, then it likely will
work.

Good luck, and please report back to this list on what you find.

- Tim

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

> I exported a Collection with yours son objects:
>
> This packager was generated with this command
>
>
> dspace packager -d -a -t AIP -i capes/22478 -e admin <[email protected]>
> C:\Users\brendows\downloads\1425\dados_comunidades\projetos_1425.zip
>
>
> I Added the principal zip  and a son zip file of this collection in
> annex. These zip files contains a mets.xml of importation, if you want
> verify it.
>
> The problem too is  this collection don't exists more in old dspace
> repository, just this backup package from collection.
>
> I just want import this collection in another dspace. What is the better
> and best way to do this restore or submit this collection?
>
>
> Em quinta-feira, 8 de março de 2018 16:42:22 UTC-3, Brendow Adriel
> escreveu:
>>
>> vs: DSPACE 5.6
>>
>>
>> Hello guys,
>>
>>  i'm trying to restore or submit a collection with all son objects
>> (submition content of collection)
>>
>> dspace packager -r -a -f -t AIP  -e admin
>> C:\Users\brendows\Downloads\1425\datas\projetos_1425.zip
>>
>> dspace packager -s -a -t AIP  -e admin
>> C:\Users\brendows\Downloads\1425\dados_comunidades\projetos_1425.zip
>>
>>
>> How i can solve this problem?
>>
>>
>> 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.
>>
> --
> 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