Hi,

I want to delete a bitstream from an item.  I have a delete_contents file 
inside my SimpleArchiveFormat folder.  The delete_contents file has the 
filename of the file I want to delete, but I get an error message that 
indicates the uuid is needed, not the name of the file.  How do I get the 
uuid of the file from the command line?

Below is the command and the error message.

Best regards,
Paul


command:

bin/dspace itemupdate -e [email protected] -s 
/opt/dspace/SimpleArchiveFormat_421000732 --deletebitstreams

Error message:

Exception processing item item_1: java.lang.IllegalArgumentException: 
Invalid UUID string: test_421000732.pdf
java.lang.IllegalArgumentException: Invalid UUID string: test_421000732.pdf
at java.util.UUID.fromString(UUID.java:194)
at 
org.dspace.content.BitstreamServiceImpl.findByIdOrLegacyId(BitstreamServiceImpl.java:426)
at 
org.dspace.content.BitstreamServiceImpl.findByIdOrLegacyId(BitstreamServiceImpl.java:41)
at 
org.dspace.app.itemupdate.DeleteBitstreamsAction.execute(DeleteBitstreamsAction.java:66)
at org.dspace.app.itemupdate.ItemUpdate.processArchive(ItemUpdate.java:442)
at org.dspace.app.itemupdate.ItemUpdate.main(ItemUpdate.java:355)
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)

-- 
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