Hi all, 

We've received notice of failed import processes when attempting to do some 
metadata cleaning and we suspect it may be related to the use of <srsc> as 
the controlled vocabulary for the dc.subject field.

Here are the steps performed: 

1. Bulk metadata export from a collection through the UI
2. Metadata for dc.subject is cleaned (e.g., adding 'Organism biology')
3. CSV is reimported but the process fails

Error that displays in the Processes output log: 

2025-04-25 10:10:06.890 INFO metadata-import - 27 @ The script has started 
2025-04-25 10:10:07.291 ERROR metadata-import - 27 @ For input string: 
"Organism biology" 2025-04-25 10:10:07.294 ERROR metadata-import - 27 @ 
java.lang.NumberFormatException: For input string: "Organism biology" at 
java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
 
at java.base/java.lang.Integer.parseInt(Integer.java:652) at 
java.base/java.lang.Integer.valueOf(Integer.java:983) at 
org.dspace.app.bulkedit.MetadataImport.compareAndUpdate(MetadataImport.java:748)
 
at 
org.dspace.app.bulkedit.MetadataImport.runImport(MetadataImport.java:415) 
at 
org.dspace.app.bulkedit.MetadataImport.internalRun(MetadataImport.java:217) 
at org.dspace.scripts.DSpaceRunnable.run(DSpaceRunnable.java:150) at 
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
 
at 
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
 
at java.base/java.lang.Thread.run(Thread.java:829)

If we try using the srsc format: NATURAL SCIENCES::Biology::Organism 
biology in the csv, the import completes but only 'NATURAL SCIENCES'  gets 
added as a value for the field. 

Do we need to remove <vocabulary>srsc</vocabulary> in the submission form 
in order to import a free-text value? If yes, this is different from our 
expectation as our understanding was that submission forms do not impact 
metadata import processes, as long as the corresponding elements are 
defined in the metadata registry or in the DSpace configuration (e.g., 
embargo terms). 

Any guidance would be appreciated :)

Thanks!

Julia

-- 
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 [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/dspace-tech/f3938011-e79d-4d71-98d6-8bcecc03eebdn%40googlegroups.com.

Reply via email to