<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: WFS filter issue in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/wfs-filter-issue/m-p/250894#M14295</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Terry,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Not sure that I can offer too much here, but I think the issue is probably on the WFS Server end.&amp;nbsp; Since your filter works with 2 conditions it should also work with 3.&amp;nbsp; The Data Interoperability WFS client is simply transferring whatever is being typed to the WFS Server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mita Hajirakar&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Safe Software, Inc.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Sep 2011 19:59:55 GMT</pubDate>
    <dc:creator>MitaHajirakar</dc:creator>
    <dc:date>2011-09-30T19:59:55Z</dc:date>
    <item>
      <title>WFS filter issue</title>
      <link>https://community.esri.com/t5/data-management-questions/wfs-filter-issue/m-p/250893#M14294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I posted this on the ArcGIS general forum a month ago but never got any response.&amp;nbsp; Hopefully someone more familiar with Data Interop than I am can help me resolve my issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've set up an Interop connection to a WFS service and am seeing odd behavior when applying a filter. Basically what I need to do if filter the data to multiple states for a given survey type. Bascially an expression like this -&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
(state_code = "MT" or state_code = "SD" or state_code = "ND" or state_code = "NE" ) AND (survey = "type1")
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can get the filter to work when I only provide 2 states but when I try to put 3 states in the OR statement I get the usual error stating "The dataset appears to be invalid. Please verify your settings ... and try again". &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Am I writing the OR statement incorrectly or is this a known issue with either ArcGIS or the WFS standards? The 2 versions of the filters are below &amp;amp; I'm using ArcGIS v10.0&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, Terry&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2 states only - works&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;

&amp;lt;ogc:Filter xmlns:ogc="http://www.opengis.net/ogc"&amp;gt;
 &amp;lt;ogc:And&amp;gt;
&amp;nbsp; &amp;lt;ogc:Or&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;ogc:PropertyIsEqualTo&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ogc:PropertyName&amp;gt;STATE_CODE&amp;lt;/ogc:PropertyName&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ogc:Literal&amp;gt;NE&amp;lt;/ogc:Literal&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;/ogc:PropertyIsEqualTo&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;ogc:PropertyIsEqualTo&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ogc:PropertyName&amp;gt;STATE_CODE&amp;lt;/ogc:PropertyName&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ogc:Literal&amp;gt;MT&amp;lt;/ogc:Literal&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;/ogc:PropertyIsEqualTo&amp;gt;
&amp;nbsp; &amp;lt;/ogc:Or&amp;gt;
&amp;nbsp; &amp;lt;ogc:PropertyIsEqualTo&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;ogc:PropertyName&amp;gt;SURVEY_NAME&amp;lt;/ogc:PropertyName&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;ogc:Literal&amp;gt;Type1&amp;lt;/ogc:Literal&amp;gt;
&amp;nbsp; &amp;lt;/ogc:PropertyIsEqualTo&amp;gt;
 &amp;lt;/ogc:And&amp;gt;
&amp;lt;/ogc:Filter&amp;gt;
&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;3 states in the OR - fails&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;lt;ogc:Filter xmlns:ogc="http://www.opengis.net/ogc"&amp;gt;
 &amp;lt;ogc:And&amp;gt;
&amp;nbsp; &amp;lt;ogc:Or&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;ogc:PropertyIsEqualTo&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ogc:PropertyName&amp;gt;STATE_CODE&amp;lt;/ogc:PropertyName&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ogc:Literal&amp;gt;NE&amp;lt;/ogc:Literal&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;/ogc:PropertyIsEqualTo&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;ogc:PropertyIsEqualTo&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ogc:PropertyName&amp;gt;STATE_CODE&amp;lt;/ogc:PropertyName&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ogc:Literal&amp;gt;MT&amp;lt;/ogc:Literal&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;/ogc:PropertyIsEqualTo&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;ogc:PropertyIsEqualTo&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ogc:PropertyName&amp;gt;STATE_CODE&amp;lt;/ogc:PropertyName&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ogc:Literal&amp;gt;WY&amp;lt;/ogc:Literal&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;/ogc:PropertyIsEqualTo&amp;gt;
&amp;nbsp; &amp;lt;/ogc:Or&amp;gt;
&amp;nbsp; &amp;lt;ogc:PropertyIsEqualTo&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;ogc:PropertyName&amp;gt;SURVEY_NAME&amp;lt;/ogc:PropertyName&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;ogc:Literal&amp;gt;Type1&amp;lt;/ogc:Literal&amp;gt;
&amp;nbsp; &amp;lt;/ogc:PropertyIsEqualTo&amp;gt;
 &amp;lt;/ogc:And&amp;gt;
&amp;lt;/ogc:Filter&amp;gt;

&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:26:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/wfs-filter-issue/m-p/250893#M14294</guid>
      <dc:creator>TerryGiles</dc:creator>
      <dc:date>2021-12-11T12:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: WFS filter issue</title>
      <link>https://community.esri.com/t5/data-management-questions/wfs-filter-issue/m-p/250894#M14295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Terry,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Not sure that I can offer too much here, but I think the issue is probably on the WFS Server end.&amp;nbsp; Since your filter works with 2 conditions it should also work with 3.&amp;nbsp; The Data Interoperability WFS client is simply transferring whatever is being typed to the WFS Server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mita Hajirakar&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Safe Software, Inc.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Sep 2011 19:59:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/wfs-filter-issue/m-p/250894#M14295</guid>
      <dc:creator>MitaHajirakar</dc:creator>
      <dc:date>2011-09-30T19:59:55Z</dc:date>
    </item>
  </channel>
</rss>

