All,
(originally posted in an older thread, but I don't think anyone saw it!)...
I've noticed my stats scripts are failing due to
incorrect metadata. It appears some items have been
submitted with two dc.date.accessioned fields; one valid, and one
empty. An excerpt from when I tried to run the stats manually:
# su -c '/home/dspace/bin/dspace stat-monthly' tomcat55
Exception: ERROR: invalid input syntax for type timestamp: ""
org.postgresql.util.PSQLException: ERROR: invalid input syntax for
type timestamp: ""
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:1531)
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1313)
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:188)
I've used the following query to find items with empty fields:
select item_id from metadatavalue where metadata_field_id=11 and text_value='';
... but I'm not sure how to delete those metadata fields from the
item? There are several hundred of these items, so it's not practical to get
their handles and do it manually...
Thanks,
Alan
--
Alan Orth
alan...@gmail.com
http://alaninkenya.org
http://mjanja.co.ke
"In heaven all the interesting people are missing." -Friedrich Nietzsche