On Tue, Feb 18, 2014 at 7:59 AM, Sig. Gaetano RUFINO <[email protected]> wrote:
> org.apache.solr.client.solrj.impl.HttpSolrServer $ RemoteSolrException : 
> Document is missing mandatory field uniqueKey : item.handle

Hi Gaetano,

this is the cause of the error. Obviously, some of your items are
missing a handle. This should not normally happen.

Here's how you can find the item_ids of these items using SQL:

SELECT item.item_id
FROM item
WHERE NOT EXISTS
  (SELECT resource_id FROM handle WHERE handle.resource_id =
item.item_id AND handle.resource_type_id = 2)

You should add a handle for each of them to the handle table (replace
123456789 with your handle prefix and 111111 with your item_id):
INSERT INTO handle (handle_id, handle, resource_type_id, resource_id)
VALUES (nextval('handle_seq'), '123456789/'||currval('handle_seq'), 2,
'111111');


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Reply via email to