geonetwork / core-geonetwork

GeoNetwork is a catalog application to manage spatially referenced resources. It provides powerful metadata editing and search functions as well as an interactive web map viewer. It is currently used in numerous Spatial Data Infrastructure initiatives across the world.
http://geonetwork-opensource.org/
GNU General Public License v2.0
416 stars 487 forks source link

AnzMEST 2.10.3 HTML5UI SQL Server Primary Key Violation on New Metadata Record #718

Closed lukebassett closed 8 years ago

lukebassett commented 9 years ago

Using HTML5UI (classic UI works fine)

When creating new meta record from a template:

SQLServerException: Violation of PRIMARY KEY constraint 'PKMetadata3213E83F917906FB'. Cannot insert duplicate key in object 'dbo.Metadata'. The duplicate key value is (10).

Log:

2015-01-20 14:05:29,637 INFO [jeeves.request] - HTML Request (from 0:0:0:0:0:0:0:1) : /geonetwork/srv/eng/metadata.create.new 2015-01-20 14:05:29,637 INFO [jeeves.service] - Dispatching : metadata.create.new 2015-01-20 14:05:29,721 ERROR [jeeves.service] - Exception when executing service 2015-01-20 14:05:29,721 ERROR [jeeves.service] - (C) Exc : com.microsoft.sqlserver.jdbc.SQLServerException: Violation of PRIMARY KEY constraint 'PKMetadata3213E83F917906FB'. Cannot insert duplicate key in object 'dbo.Metadata'. The duplicate key value is (10). 2015-01-20 14:05:29,721 INFO [jeeves.service] - -> dispatching to error for : metadata.create.new 2015-01-20 14:05:29,721 INFO [jeeves] - Overrides being applied to configuration file: ._geonetwork/loc/eng/xml/strings.xml 2015-01-20 14:05:29,721 INFO [jeeves] - Adding xml elements to 2015-01-20 14:05:30,168 INFO [jeeves] - Overrides being applied to configuration file: ._WEB-INF/config-gui.xml 2015-01-20 14:05:30,169 INFO [jeeves] - Adding xml elements to search 2015-01-20 14:05:30,169 INFO [jeeves] - Adding xml elements to editor-subtemplate/mapping 2015-01-20 14:05:30,189 INFO [jeeves.service] - -> transforming with stylesheet : C:\apps\anzmest\web\geonetwork\xsl/error.xsl 2015-01-20 14:05:30,220 INFO [jeeves.service] - -> end error transformation for : metadata.create.new 2015-01-20 14:05:30,220 INFO [jeeves.service] - -> error ended for : metadata.create.new

Delawen commented 8 years ago

Automatic close of issue because no activity was detected on the last year.