[GeoNetwork-users] Problem editing metadata

Hi -

    While editing a partial metadata record that was created by harvesting a GeoServer wms service, I get the following error when attempting to save

    THE REQUESTED OPERATION COULD NOT BE PERFORMED.

IllegalStateException : Element not found at ref =

    Does anyone know how to fix this?

Garey Mills
Library Systems Office
UC Berkeley

Garey,

I've seen this error a few times when editing ISO19115 metadata - you might not be using this in which case what follows mightn't help. In my experience it has been due to a mandatory code list field which doesn't have a value in your imported metadata. It seems such records will import ok (I imagine they *might* be caught if you turn validation on in the harvesting!), but fail to edit subsequently.

For example, in ISO19115 there's a code in the maintenance information class MD_MaintenanceInformation called maintenanceAndUpdateFrequency. It should have a code value from the list in MD_MaintenanceFrequencyCode. If this field is empty (i.e. not one of the prescribed values) Geonetwork seems to put in gco:nilReason which upsets the editor. Check your metadata for this kind of thing - it might fix your problem.

Regards,

David Herbert
British Antarctic Survey.

-----Original Message-----
From: Garey Mills [mailto:gmills@anonymised.com]
Sent: 07 May 2010 17:25
To: geonetwork-users@lists.sourceforge.net
Subject: [GeoNetwork-users] Problem editing metadata

Hi -

    While editing a partial metadata record that was created by
harvesting a GeoServer wms service, I get the following error when
attempting to save

    THE REQUESTED OPERATION COULD NOT BE PERFORMED.

IllegalStateException : Element not found at ref =

    Does anyone know how to fix this?

Garey Mills
Library Systems Office
UC Berkeley

------------------------------------------------------------------------------

_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

Hi Gary,

I've received those before. If memory serves me right, there were 2 possible sources for that. First, there was a problem in an earlier version of GN but that has since been patched. So if you aren't using the latest version please do so if possible (I don't recall what version that was fixed in). Second, and maybe more probable but ugly is the data itself. I've imported a lot of FGDC data that came in fine but future editing would create this error. I found that the primary source of this was the data format in the imported data. The FGDC data that I brought in had a wide range of date formats, e.g., January 2008, 1/4/08, etc. Once I fixed the FGDC data to use the proper format of yyyy-mm-dd then after importing editing worked fine.

Now that you've imported the data fixing the dates (if that's the source of the problem) could be a challenge. You may have to edit the data as it resides the databases or try to export out to a MEF (which is zip file), edit the XML in there, then re-import the MEF (MEF i/o is done with GAST which is part of GeoNetwork in case you haven't used this yet).

Regards, Bob

Bob Nutsch
GIS Coordinator
State of North Dakota
Phone: (701) 328-3212
bnutsch@anonymised.com
Twitter: @BobNutsch
www.nd.gov/gis
NDGIS Users Conference Oct. 11-13, 2011 !!

-----Original Message-----
From: Garey Mills [mailto:gmills@anonymised.com]
Sent: Friday, May 07, 2010 11:25 AM
To: geonetwork-users@lists.sourceforge.net
Subject: [GeoNetwork-users] Problem editing metadata

Hi -

    While editing a partial metadata record that was created by
harvesting a GeoServer wms service, I get the following error when
attempting to save

    THE REQUESTED OPERATION COULD NOT BE PERFORMED.

IllegalStateException : Element not found at ref =

    Does anyone know how to fix this?

Garey Mills
Library Systems Office
UC Berkeley

------------------------------------------------------------------------------

_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork