Thanks for the response, Andrea.

Do I need to do anything after updating the solrconfig.xml file, as you 

I tried running but stats-util with just the -r flag, but it doesn't work.  I 
confirmed this by looking at, which only uses r if b is 

          else if(line.hasOption('b'))



From: Andrea Schweer []
Sent: Wednesday, July 22, 2015 5:32 PM
To: Anthony Petryk <>;
Subject: Re: [Dspace-tech] stats-util error "Document is missing mandatory 
uniqueKey field: uid"

Hi Anthony,
On 23/07/15 01:37, Anthony Petryk wrote:
DSpace 4.3.   We're getting an error when trying to run dspace stats-util -br: 
"Document is missing mandatory uniqueKey field: uid".  We want to run this 
command specifically to remove stats for deleted bitstreams (-r option).

This sounds like the same root problem as 
DS-2212<>, which is fixed in version 
5.2.  But I just wanted to check: is there any way to get this to work without 

You're actually running into If I 
remember correctly then you may be able to fix this by applying this small 
change to the solrconfig.xml for the statistics core:

However, chances are that you'll then just run into further issues such as 

If you're only after removing deleted bitstreams, try leaving out the "b" flag 
("Reindex the bitstreams to ensure we have the bundle name"). Re-indexing will 
hit the uid bug (and probably the _version_ one too); deleting (-r only) 
shouldn't have the same issue since it won't try adding documents to the solr 



Dr Andrea Schweer

IRR Technical Specialist, ITS Information Systems

The University of Waikato, Hamilton, New Zealand
DSpace-tech mailing list
List Etiquette:

Reply via email to