metadata import issue -

79 views
Skip to first unread message

Jayachristrayar S

unread,
Jan 16, 2025, 6:05:54 AM1/16/25
to DSpace Technical Support
hello everyone,
I tried to modify metadata and import to Dspace-CRIS, but it shows this error; anyone, please help?

 ./dspace metadata-import --file /build/metadata.csv --email cc504330-c9e7-4914-8159-9401ddc15c10 --validate-only
The script has started
java.lang.NumberFormatException: For input string: "ROR-ID"
        at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:67)
        at java.base/java.lang.Integer.parseInt(Integer.java:668)
        at java.base/java.lang.Integer.valueOf(Integer.java:999)
        at org.dspace.app.bulkedit.MetadataImport.getBulkEditValueFromCSV(MetadataImport.java:1191)
        at org.dspace.app.bulkedit.MetadataImport.compareAndUpdate(MetadataImport.java:730)
        at org.dspace.app.bulkedit.MetadataImport.runImport(MetadataImport.java:427)
        at org.dspace.app.bulkedit.MetadataImport.internalRun(MetadataImport.java:223)
        at org.dspace.scripts.DSpaceRunnable.run(DSpaceRunnable.java:162)
        at org.dspace.app.launcher.ScriptLauncher.executeScript(ScriptLauncher.java:174)
        at org.dspace.app.launcher.ScriptLauncher.handleScript(ScriptLauncher.java:151)
        at org.dspace.app.launcher.ScriptLauncher.handleScript(ScriptLauncher.java:125)
        at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:100)

mw...@iu.edu

unread,
Jan 16, 2025, 8:05:04 AM1/16/25
to dspac...@googlegroups.com
On Thu, Jan 16, 2025 at 11:05:54AM +0000, Jayachristrayar S wrote:
> hello everyone,
> I tried to modify metadata and import to Dspace-CRIS, but it shows this error; anyone, please help?
>
> ./dspace metadata-import --file /build/metadata.csv --email cc504330-c9e7-4914-8159-9401ddc15c10 --validate-only
> The script has started
> java.lang.NumberFormatException: For input string: "ROR-ID"
> at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:67)

Well, you have the string "ROR-ID" in a field that expects a number.
Maybe your CSV has a column header row and the tool isn't expecting one?

--
Mark H. Wood
Lead Technology Analyst

University Library
Indiana University Indianapolis
755 W. Michigan Street
Indianapolis, IN 46202
317-274-0749
library.indianapolis.iu.edu
signature.asc

Jayachristrayar S

unread,
Jan 16, 2025, 11:38:05 PM1/16/25
to DSpace Technical Support
I attached my CSV file  it is directly exported from the Dspace-cris 
metadata.csv

Andrew Thompson

unread,
Jan 21, 2025, 7:58:12 PM1/21/25
to DSpace Technical Support
The csv file has lots of blank rows. Probably why your other email is hitting an invalid UUID error message. Also, try deleting columns and rows you don't need from the csv to make it easier to reason about.

Reply all
Reply to author
Forward
0 new messages