On Tue, May 24, 2022 at 04:26:37AM -0700, Sergio Luis Alegr??a wrote:
> I migrate from 5.3 to 6.3.
> The database migrate commando run everything ok.
> I can access to my Dspace installation.
>
> But when I run *dspace index-discovery -b *throw the next error:
>
>
>
> *2022-05-24 10:58:41,980 ERROR org.dspace.discovery.SolrServiceImpl @ Error
> while writing item to discovery index: 11086/804 message:Error while
> creating field
> 'search.resourceid{type=sint,properties=indexed,stored,omitNorms,omitTermFreqAndPositions,sortMissingLast,required,
> required=true}' from value
> '01353d2a-229f-4d24-b0ee-5885669e6e29'org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException:
> Error while creating field
> 'search.resourceid{type=sint,properties=indexed,stored,omitNorms,omitTermFreqAndPositions,sortMissingLast,required,
> required=true}' from value '01353d2a-229f-4d24-b0ee-5885669e6e29'*
>
> In solr log throw the next error.
> Caused by: java.lang.NumberFormatException: For input string:
> "c06eb490-7034-46d5-ad20-bd6fd8873786" at
> java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
>
> Seems like something is wrong with key values when the schema change (by
> migration) from id (integer) to uuid (string) in items tables maybe?
Since Solr is saying that 'search.resourceid' is of type 'sint', it appears
that your Solr schema for the 'search' core was not updated.
--
Mark H. Wood
Lead Technology Analyst
University Library
Indiana University - Purdue University Indianapolis
755 W. Michigan Street
Indianapolis, IN 46202
317-274-0749
www.ulib.iupui.edu