Hi Julia,

I believe you are hitting this 
bug: https://github.com/DSpace/DSpace/issues/9896  But, it sounds like you 
are hitting that same issue on a different metadata field, in this case the 
subject.

Essentially, there's a known issue that if you include "::" (double colon) 
in a metadata field, then DSpace will try to parse that value as an 
Authority value, which can cause errors to occur if it's *not* an Authority 
value.

I'm still looking for a volunteer to tackle that issue.

Tim

On Tuesday, May 6, 2025 at 3:33:27 PM UTC-5 [email protected] wrote:

> 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/0870e0e5-4cf4-4e36-9e94-0573e406872bn%40googlegroups.com.

Reply via email to