Hello,
Does anyone know if it should be possible to send multiple CSW update transactions to a record in Geonetwork in the same session? When I try it, the first update succeeds but all subsequent updates fail with an ExceptionRecord: "Cannot process transaction: Raised exception while searching metadata".
I am using a script from the wiki (http://trac.osgeo.org/geonetwork/wiki/HowToDoCSWTransactionOperations) which I modified to send the same update request several times:
for n in range(0,2):
request = urllib2.Request(url_csw, xml_request, header_xml)
response = opener.open(request)
# CSW respons
xml_response = response.read()
print xml_response
Logging out and back in between requests doesn't help either.
But if I run the entire function twice (this time with only one update request), then both updates succeed:
if __name__=="__main__":
gn_csw_transaction()