Issue while importing the metadata using CSV in DSpace 8.1 (UUID String too large & Invalid UUID string)

107 views
Skip to first unread message

Bhavesh Patel

unread,
Feb 17, 2025, 6:38:54 AM2/17/25
to dspac...@googlegroups.com
Dear Team,

I am facing an issue while importing the data in the DSpace 8.1 version.

I am using the Import Metadata feature and providing a CSV file for importing the data.

I am getting the following error in this process output.

CSV File
image.png

2025-02-17 16:55:56.606 INFO metadata-import - 8 @ The script has started
2025-02-17 16:55:56.651 ERROR metadata-import - 8 @ Error reading file: UUID string too large
2025-02-17 16:55:56.652 ERROR metadata-import - 8 @ java.lang.Exception: Error reading file: UUID string too large
	at org.dspace.app.bulkedit.MetadataImport.internalRun(MetadataImport.java:207)
	at org.dspace.scripts.DSpaceRunnable.run(DSpaceRunnable.java:150)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: java.lang.IllegalArgumentException: UUID string too large
	at java.base/java.util.UUID.fromString1(UUID.java:266)
	at java.base/java.util.UUID.fromString(UUID.java:260)
	at org.dspace.app.bulkedit.DSpaceCSV.addItem(DSpaceCSV.java:571)
	at org.dspace.app.bulkedit.DSpaceCSV.<init>(DSpaceCSV.java:289)
	at org.dspace.app.bulkedit.MetadataImport.internalRun(MetadataImport.java:199)
	... 4 more
image.png

Peter Sutton-Long

unread,
Feb 17, 2025, 7:16:13 AM2/17/25
to DSpace Technical Support
Hi  Bhavesh,

You're seeing this error because your csv file is missing a mandatory id column. If you're editing the metadata of existing items then you'll need to create a new column with 'id' as the header; this column should contain the uuid for each item you want to edit.

If you want to use metadata-import to create new metadata-only items then create this column but use a plus sign '+' instead of the uuid.

There's more info on the 'id' column here: https://wiki.lyrasis.org/display/DSDOC8x/Batch+Metadata+Editing, including how to create metadata-only items.

Yours sincerely,

Peter

Bhavesh Patel

unread,
Feb 18, 2025, 12:47:14 AM2/18/25
to Peter Sutton-Long, DSpace Technical Support
Dear Peter,

Thank you for your email, I kept '+' sign, and it shows status Completed.

But the records are not showing on that collection.

image.png

It shows only existing records, imported records are not showing, do we need to do anything after the import process?
image.png

Regards
Bhavesh




--
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 dspace-tech...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/dspace-tech/fea8bdf5-7aba-4127-a9df-89c1966da10dn%40googlegroups.com.

Franziska Rapp

unread,
Feb 19, 2025, 3:37:22 AM2/19/25
to dspac...@googlegroups.com

Hi,

the argument -v means the csv is just validated, but no import run. There is a checkbox "Validate only" which you can uncheck if you'd like to actually run the import.

Best regards
Franziska

To view this discussion visit https://groups.google.com/d/msgid/dspace-tech/CAGsrr0WJVScmxE7Wa7f2cqfkcOJT9AB0HJt0%2BP_VdU59LW3XPw%40mail.gmail.com.
-- 
Franziska Rapp

Academic Librarian
Ulm University

bhave...@gmail.com

unread,
Feb 20, 2025, 7:05:59 AM2/20/25
to DSpace Technical Support
Thank you Franziska, after removing the -v then It's importing and display successfully. 
Reply all
Reply to author
Forward
0 new messages