[ http://jira.dspace.org/jira/browse/DS-110?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stuart Lewis resolved DS-110. ----------------------------- Resolution: Won't Fix Assignee: Stuart Lewis Hi Rui, This issue occurs if you try to replace an item where the dublin_core.xml file has the handle included. This is typically there if you have exported the item. An easy fix is to remove the dc.identifer.uri line from dublin_core.xml and re-run the importer. Thanks, Stuart > Batch Import modification > ------------------------- > > Key: DS-110 > URL: http://jira.dspace.org/jira/browse/DS-110 > Project: DSpace 1.x > Issue Type: Bug > Affects Versions: 1.5.1 > Reporter: Rui Ramos > Assignee: Stuart Lewis > > Batch Import Modification with dsrun still fails: > Executing: > $DSHOME/bin/dsrun org.dspace.app.itemimport.ItemImport --replace > --eperson=mana...@repo.up.pt --collection='10216/6765' --source=export > --mapfile=mapfile > with replace tries to insert: > org.postgresql.util.PSQLException: ERROR: duplicate key violates unique > constraint "handle_handle_key" > at > org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:1512) > at > org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1297) > at > org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:188) > at > org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:430) > at > org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:346) > at > org.postgresql.jdbc2.AbstractJdbc2Statement.executeUpdate(AbstractJdbc2Statement.java:300) > at > org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:101) > at > org.dspace.storage.rdbms.DatabaseManager.execute(DatabaseManager.java:1301) > at > org.dspace.storage.rdbms.DatabaseManager.update(DatabaseManager.java:657) > at org.dspace.handle.HandleManager.createHandle(HandleManager.java:206) > at org.dspace.content.InstallItem.installItem(InstallItem.java:114) > at org.dspace.app.itemimport.ItemImport.addItem(ItemImport.java:672) > at > org.dspace.app.itemimport.ItemImport.replaceItems(ItemImport.java:585) > at org.dspace.app.itemimport.ItemImport.main(ItemImport.java:425) > org.postgresql.util.PSQLException: ERROR: duplicate key violates unique > constraint "handle_handle_key" -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.dspace.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ Dspace-devel mailing list Dspace-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-devel