Hi Evelin,

Have you checked the metadata registry 
<https://wiki.lyrasis.org/display/DSDOC8x/Metadata+Registry+Management> for the 
field item.hasbitstream?

You might be able to search for the item with this query too:

        item.hasbitstream:*

You could try running dspace oai import -c since that will clear the index.

-Andrew

> On 13 Jan 2025, at 11:04 PM, Evelin Bányai <[email protected]> wrote:
> 
> Dear All,
> 
> We have upgraded our DSpace from 7.2 to 8.0 near the end of last year. We 
> followed the guide on this site 
> https://wiki.lyrasis.org/display/DSDOC8x/Upgrading+DSpace
> 
> The upgrade seemed to be successful and so far we have encountered only 2 
> issues. One of is them running the dspace oai import script fails with an 
> error.
> 
> Our Environment information:
> DSpace version: 8.0
> Java: 17.0.13+11-Ubuntu-2ubuntu124.04
> Node: v20.18.1
> Tomcat: None. We are using the runnable JAR
> 
> See the output running the following command below: dspace oai import
> Standard Commons Logging discovery in action with spring-jcl: please remove 
> commons-logging.jar from classpath in order to avoid potential conflicts
> OAI 2.0 manager action started
> There are no indexed documents, using full import.
> Full import
> Total: 288 items
> org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error 
> from server at http://10.128.120.16:8983/solr/oai: ERROR: [doc=123456789/339] 
> unknown field 'item.hasbitstream'
>         at 
> org.apache.solr.client.solrj.impl.HttpSolrClient.executeMethod(HttpSolrClient.java:681)
>         at 
> org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:266)
>         at 
> org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:248)
>         at 
> org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:225)
>         at org.apache.solr.client.solrj.SolrClient.add(SolrClient.java:106)
>         at org.apache.solr.client.solrj.SolrClient.add(SolrClient.java:71)
>         at org.apache.solr.client.solrj.SolrClient.add(SolrClient.java:85)
>         at org.dspace.xoai.app.XOAI.index(XOAI.java:342)
>         at org.dspace.xoai.app.XOAI.indexAll(XOAI.java:265)
>         at org.dspace.xoai.app.XOAI.index(XOAI.java:166)
>         at org.dspace.xoai.app.XOAI.main(XOAI.java:628)
>         at 
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at 
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
>         at 
> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.base/java.lang.reflect.Method.invoke(Method.java:569)
>         at 
> org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:283)
>         at 
> org.dspace.app.launcher.ScriptLauncher.handleScript(ScriptLauncher.java:134)
>         at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:99)
> 
> 
> I can see that there is an unknown field called "item.hasbitstream'", but I'm 
> not sure where it's missing from exactly. The item in the error is most 
> probably the first on its list. So probably the problem is not with this item 
> only? 
> 
> Thanks in advance to anyone who can help us with this issue.
> 
> Best regards,
> Evelin
> 
> -- 
> 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] 
> <mailto:[email protected]>.
> To view this discussion visit 
> https://groups.google.com/d/msgid/dspace-tech/821c45d6-cf35-4c26-aa00-b724536e338cn%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/dspace-tech/821c45d6-cf35-4c26-aa00-b724536e338cn%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
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/BE639808-D52F-4BE7-B3E2-8ABA87CF9B15%40gmail.com.

Reply via email to