You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create metadata error
could not execute batch; SQL [insert into Metadata (data, changeDate, createDate, displayorder, doctype, extra, popularity, rating, root, schemaId, title, isTemplate, isHarvested, harvestUri, harvestUuid, groupOwner, owner, source, uuid, id) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)]; nested exception is org.hibernate.exception.SQLGrammarException: could not execute batch
To Reproduce
Steps to reproduce the behavior:
Go to Contribute -> Add new record
Click on 'Dataset' and 'Template for Vector data in ISO19139 (preferred!)'
Click on any group for the 'In ..' option.
See error in the top-left
Expected behavior
Before we were able to create new records, so something must have changed
In detail, from the browser, this is the request URL: http://geonetwork-tmc-prod.thinkwhere-labs.com:8080/geonetwork/srv/api/records/duplicate?metadataType=METADATA&sourceUuid=2010&isChildOfSource=false&group=2&isVisibleByAllGroupMembers=false&targetUuid=&hasCategoryOfSource=true
(this is url is not public)
Describe the bug
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Before we were able to create new records, so something must have changed
In detail, from the browser, this is the request URL:
http://geonetwork-tmc-prod.thinkwhere-labs.com:8080/geonetwork/srv/api/records/duplicate?metadataType=METADATA&sourceUuid=2010&isChildOfSource=false&group=2&isVisibleByAllGroupMembers=false&targetUuid=&hasCategoryOfSource=true
(this is url is not public)
And the response is:
We are using VERSION geonetwork:3.12.8-postgres, running in Docker.
As other posts suggest, we have checked the hibernate_sequence in the database, and the count of records in the 'metadata' TABLE.
hibernate_sequence:
Current value: 5734
Increment: 1
Start: 100
Minimum: 1
Maximum: 9223372036854775807
Cache: 1
The last ID in the metadata table was 4250
Every time we tried adding a new record to the table, the above sequence was adding 1 (5734, 5735, 5736, ..) which proves the sequence works?
WHAT WE HAVE TRIED SO FAR:
Lack of more ideas.
Thanks in advance,
The text was updated successfully, but these errors were encountered: