I'm trying to run a CSW Harvest in GeoNetwork, but I get this error:

"gmd:MD_MetaData, csw: record"  is not a valid value for QName

I'm using GeoNetwork 2.10.3 on Windows 7 64 bit and GeoServer 2.6.2

  • Can you post more details on the error? Can you check the logfile and write the full exception trace? Can you also post the harvester configuration? Apr 9, 2015 at 11:38

1 Answer 1

"gmd:MD_MetaData, csw: record" 

Well, the error message is correct the quoted text is not a valid QName, as we can see from its definition:

QName              ::=   PrefixedName | UnprefixedName
PrefixedName       ::=   Prefix ':' LocalPart
UnprefixedName     ::=   LocalPart
Prefix             ::=   NCName
LocalPart          ::=   NCName


NCName             ::=   Name - (Char* ':' Char*)  /* An XML Name, minus the ":" */

Reference https://en.wikipedia.org/wiki/QName


We have a PrefixedName, the prefix is gmd, we have an :, the LocalPart is therefore MD_MetaData, csw: record which should be an NCName but it is invalid because there is a colon after the csw.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.