Hello,

never worked with zip imports but the command to import zip is different from 
the one to import from a directory see
https://wiki.duraspace.org/display/DSDOC6x/Importing+and+Exporting+Items+via+Simple+Archive+Format#ImportingandExportingItemsviaSimpleArchiveFormat-AddingItemstoaCollectionfromazipfile
Example
[dspace]/bin/dspace import --add [email protected] 
--collection=CollectionID --source=items_dir --zip=filename.zip 
--mapfile=mapfile
Source directory is where your zip file resides

You got
--source=/home/ubuntu/Desktop/orders/bulksample.zip
and no --zip option

Should be something like
--source=/home/ubuntu/Desktop/orders
--zip =bulksample.zip

Hope this helps

Claudia Jürgen


Am 22.05.2019 um 11:24 schrieb Ranjit Chavan:

Hi
my dspce version is 6.0 but i am uploading batch import by following
command
i am getting error
root@ubcourt:/dspace# bin/dspace import --add --eperson=dspace@localhost
--collection=fc51b762-8a25-407e-bd9e-a1db4f3aca71
--source=/home/ubuntu/Desktop/orders/bulksample.zip
--mapfile=/home/Desktop/mapdir/mapfile

my Error is like this please give me some solution.

Destination collections:
Started: 1556631079769
Ended: 1556631081964
Elapsed time: 2 secs (2195 msecs)
Exception: Index: 0, Size: 0
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.rangeCheck(ArrayList.java:657)
at java.util.ArrayList.set(ArrayList.java:448)
at
org.dspace.app.itemimport.ItemImportCLITool.main(ItemImportCLITool.java:344)
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:229)
at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:81)




--
Claudia Juergen
Eldorado

Technische Universität Dortmund
Universitätsbibliothek
Vogelpothsweg 76
44227 Dortmund

Tel.: +49 231-755 40 43
Fax: +49 231-755 40 32
[email protected]<mailto:[email protected]>
www.ub.tu-dortmund.de<http://www.ub.tu-dortmund.de>

Wichtiger Hinweis: Die Information in dieser E-Mail ist vertraulich. Sie ist 
ausschließlich für den Adressaten bestimmt. Sollten Sie nicht der für diese 
E-Mail bestimmte Adressat sein, unterrichten Sie bitte den Absender und 
vernichten Sie diese Mail. Vielen Dank.
Unbeschadet der Korrespondenz per E-Mail, sind unsere Erklärungen 
ausschließlich final rechtsverbindlich, wenn sie in herkömmlicher Schriftform 
(mit eigenhändiger Unterschrift) oder durch Übermittlung eines solchen 
Schriftstücks per Telefax erfolgen.

Important note: The information included in this e-mail is confidential. It is 
solely intended for the recipient. If you are not the intended recipient of 
this e-mail please contact the sender and delete this message. Thank you. 
Without prejudice of e-mail correspondence, our statements are only legally 
binding when they are made in the conventional written form (with personal 
signature) or when such documents are sent by fax.

--
All messages to this mailing list should adhere to the DuraSpace Code of 
Conduct: https://duraspace.org/about/policies/code-of-conduct/
--- You received this message because you are subscribed to the Google Groups "DSpace Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-community/f2488961-1f82-58b5-769b-0c55867738bb%40tu-dortmund.de.

Reply via email to