From: Jose G. <jos...@ge...> - 2013-12-16 07:45:13
|
Hi Alex The xml.metadata.insert accepts the parameter uuidAction with these values: - nothing (default value): uses the metadata uuid in the xml file, if exists throws an exception as you describe. - overwrite: if the uuid exists in the database, overwrites the metadata with the inserted one. - generateUUID: generates a new uuid for the metadata to be inserted. Regards, Jose García On Fri, Dec 13, 2013 at 8:57 PM, Alex Lopes <ale...@gm...>wrote: > Hi All, > > I'm developing an script to import some metadata to a geonetwork server. > But some metadata already exist on the destination server. In such case, > the following messagem is returned: ERROR: duplicate key value violates > unique constraint "metadata_uuid_key". > > I believe, I could delete (using xml.metadata.delete) the metadata and then > import it (using xml.metadata.import). > > Since I'm new to geonetwork I don't know whether is it the suitable way to > do it. > > Can anyone confirm to me whether is it suitable or is there another better > way to do it? > > Thank you, > -- > Alex Lopes Pereira > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > GeoNetwork-users mailing list > Geo...@li... > https://lists.sourceforge.net/lists/listinfo/geonetwork-users > GeoNetwork OpenSource is maintained at > http://sourceforge.net/projects/geonetwork > -- * GeoCat Bridge for ArcGIS allows instant publishing of data and metadata on GeoServer and GeoNetwork. Visit http://geocat.net <http://geocat.net/> for details. _________________________Jose GarcíaGeoCat bvVeenderweg 13 6721 WD BennekomThe Netherlandshttp://GeoCat.net <http://geocat.net/> * |