Hi Anis, do you have any modified code or tests running? Or modified relationships config in core / test config?
I've run the import tests locally (scoping just to that class with it.test=.....) myself and got 17 / 17 successes. It looks like a duplicate relationship occurring during import (note: this is actually an Import test, not Export). This is odd because at a glance, it doesn't look like any UUIDs are reused in the test class, and new items are imported from the basic test XML each time. Perhaps a map file lingering around that is causing the UUID to be used as if it's a re-import / resumption? In the failsafe logs created by Maven, can you see any additional references to those UUIDs? Cheers Kim On Friday, October 28, 2022 at 7:28:36 PM UTC+13 Anis wrote: > Hey, I'm running the latest code for DSpace 7 and getting the following > error on the ItemExport CLI integration test (pasting the relevant parts): > > [ERROR] > importItemByZipSafWithRelationships(org.dspace.app.itemimport.ItemImportCLIIT) > > > Caused by: org.hibernate.exception.ConstraintViolationException: could not > execute batch > Caused by: org.h2.jdbc.JdbcBatchUpdateException: Unique index or primary > key violation: "PUBLIC.U_CONSTRAINT_INDEX_4 ON PUBLIC.RELATIONSHIP(LEFT_ID > NULLS FIRST, TYPE_ID NULLS FIRST, RIGHT_ID NULLS FIRST) VALUES ( /* key:25 > */ UUID '959d80aa-1c4f-41d8-a89e-33eedbf7da33', 59, UUID > '367396af-6633-44f1-9776-abf85b63ad2a')"; SQL statement: > insert into PUBLIC.relationship (latest_version_status, left_id, > left_place, leftward_value, type_id, right_id, right_place, > rightward_value, id) values (?, ?, ?, ?, ?, ?, ?, ?, ?) [23505-210] > > any idea how to fix this? > -- 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 on the web visit https://groups.google.com/d/msgid/dspace-tech/55946d5e-5212-4211-865f-edc374739baan%40googlegroups.com.
