Dear All,
Exception: Error exporting METS for DSpace Object, type=ITEM, handle=10665.1/8822, dbID=8907 org.dspace.content.packager.PackageValidationException: Error exporting METS for DSpace Object, type=ITEM, handle=10665.1/8822, dbID=8907, Reason: edu.harvard.hul.ois.mets.helper.MetsException: ID "bitstream_2" already exists at org.dspace.content.packager.AbstractMETSDisseminator.disseminate(AbstractMETSDisseminator.java:280)
Is there a way to find all these problematic items with bundles that have duplicate sequence_id in their bitstreams? In the error stated above, I executed the SQL query mentioned in the thread that I referenced and below is the result:
bundle_id | bitstream_id | sequence_id
-----------+--------------+-------------
39844 | 46401 | 4
39844 | 46400 | 3
42083 | 53559 | 42
42083 | 53558 | 41
33805 | 39798 | 2
46843 | 57468 | 44
46843 | 57467 | 43
33806 | 39799 | 2
(8 rows)
Note the duplicate sequence_id=2. I would like to find all items that have these duplicate sequence_id and delete all them.
Thanks in advance and regards,
euler.