-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi there,

~  I'm having some troubles in the batch import to DSpace. I'm using
version 1.5.0.
~ Whem doing simple dsrun to import the thing works, but if i try to
replace an existing item i get a strange error.

Adding the item works, them i export it.

- -bash-3.1$ /dspace/dspace-dev/bin/dsrun
org.dspace.app.itemexport.ItemExport -d archives -i X/5719 -n 1 -t ITEM
Exporting Item 15159 to archives/1
Attempting to create file archives/1/dublin_core.xml

Then i move archive/1 to archives/dspace and try to replace using the
command:

/dspace/dspace-dev/bin/dsrun org.dspace.app.itemimport.ItemImport -r -c
X/1810 -e [EMAIL PROTECTED] -m mapfile -s archives -t

Which gives ok.

And then when i execute it without the -t option i get this error:


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.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"


What i'm i doing wrong ? is the replace dsrun with replace working in
1.5.0 version ?

Any help would be apreciated. I don't know if this is the rigth
mailing-list to ask this, sorry if not.


Cheers, Rui


- --
Rui Ramos
==============================================
Universidade do Porto - IRICUP
Praça Gomes Teixeira, 4099-002 Porto, Portugal
email: rramos[at]reit.up.pt
phone: +351 22 040 8164
==============================================
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQEcBAEBAgAGBQJIsoOSAAoJEL1uR0bdnTWSl7IH/jJK7MoDPDjFTPkmE3xvd8fj
plloF8BRRBiFjQ90a5sTERKPQ1hDlucjwhbPO32eqOGFj8yty2XNAtJxu+JeaH8n
z9G+V7fWFEoJnDUOO5HwGaiwBmwfbTf6g31rpgVGCYm39n29WFuf9D6H1sea/3GV
v14B+SVUJLBA95VrrfUx0wUq+fOR77APOXQeWCaH95enuJ60WLdVf7DyAjZO7Pu8
TrpQtiI4NSg/MG6P3xSvPE4RzsCBSTKfN6/M3M6KeDZHQbdJe90H4sFaQ4IrCbCw
9aBsnt8mC+FshLKr72XKWhcBQUWzpU75w6ZJkYhbjOg7nc63GJZwwVAkz5vPl1k=
=XMg0
-----END PGP SIGNATURE-----



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to