coreyalix01

WFS GetFeature with a FeatureId fails (10.1 SP1)

Discussion created by coreyalix01 on Jul 24, 2013
Latest reply on Jul 25, 2013 by coreyalix01
I've discovered that this request fails:

<?xml version="1.0" encoding="UTF-8"?>
<wfs:GetFeature
service="WFS"
version="1.1.0"
maxFeatures="1"
xmlns:wfs="http://www.opengis.net/wfs">
<wfs:Query typeName="LV_Properties">
  <Filter xmlns="http://www.opengis.net/ogc">
                   <FeatureId fid="14" />
  </Filter>
</wfs:Query>
</wfs:GetFeature>


But this request succeeds:

<?xml version="1.0" encoding="UTF-8"?>
<wfs:GetFeature
service="WFS"
version="1.1.0"
maxFeatures="1"
xmlns:wfs="http://www.opengis.net/wfs">
<wfs:Query typeName="LV_Properties">
  <Filter xmlns="http://www.opengis.net/ogc">
                     <PropertyIsEqualTo><PropertyName>FID</PropertyName><Literal>14</Literal></PropertyIsEqualTo>
  </Filter>
</wfs:Query>
</wfs:GetFeature>

Can someone confirm if my first request is incorrect or if this is a defect in 10.1?  The error I receive in the first request is as follows:

<ows:ExceptionReport version='1.1.0' language='en' xmlns:ows='http://www.opengis.net/ows'><ows:Exception exceptionCode='NoApplicableCode'><ows:ExceptionText>Generic WFS service error.</ows:ExceptionText></ows:Exception></ows:ExceptionReport>

Outcomes