<?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 FeatureLayer.Search fails in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/featurelayer-search-fails/m-p/112686#M711</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm running Windows SDK 10.3.1. I"m trying to create a FeatureCursor. The code I'm using used to work about 3 months ago, probably under 10.2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pLayer = pMap.Layer(0)&lt;/P&gt;&lt;P&gt;pFeatureLayer = pLayer&lt;/P&gt;&lt;P&gt;pFeatureCursor = pFeatureLayer.Search(pQueryFilter, True)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The QueryFilter is valid. But that last line of code yields Error HRESULT E_FAIL has been returned from a call to a COM component.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only thing that looks suspicious to me is that pFeatureLayer.FeatureClass is null. I don't know if that's part of the problem, or a red herring.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bill&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Dec 2015 00:08:35 GMT</pubDate>
    <dc:creator>BillKorbholz</dc:creator>
    <dc:date>2015-12-03T00:08:35Z</dc:date>
    <item>
      <title>FeatureLayer.Search fails</title>
      <link>https://community.esri.com/t5/developers-questions/featurelayer-search-fails/m-p/112686#M711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm running Windows SDK 10.3.1. I"m trying to create a FeatureCursor. The code I'm using used to work about 3 months ago, probably under 10.2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pLayer = pMap.Layer(0)&lt;/P&gt;&lt;P&gt;pFeatureLayer = pLayer&lt;/P&gt;&lt;P&gt;pFeatureCursor = pFeatureLayer.Search(pQueryFilter, True)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The QueryFilter is valid. But that last line of code yields Error HRESULT E_FAIL has been returned from a call to a COM component.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only thing that looks suspicious to me is that pFeatureLayer.FeatureClass is null. I don't know if that's part of the problem, or a red herring.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bill&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2015 00:08:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/featurelayer-search-fails/m-p/112686#M711</guid>
      <dc:creator>BillKorbholz</dc:creator>
      <dc:date>2015-12-03T00:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer.Search fails</title>
      <link>https://community.esri.com/t5/developers-questions/featurelayer-search-fails/m-p/112687#M712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This error turned out to be caused by my using a mapped drive to the data source in the map document. I'm now guessing this had something to do with upgrading to Windows 10 and the way I mapped the drive at system startup.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Dec 2015 06:24:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/featurelayer-search-fails/m-p/112687#M712</guid>
      <dc:creator>BillKorbholz</dc:creator>
      <dc:date>2015-12-05T06:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer.Search fails</title>
      <link>https://community.esri.com/t5/developers-questions/featurelayer-search-fails/m-p/112688#M713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What library (dll) are you importing in your code to get the Layer and Feature Layer objects?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Dec 2015 13:51:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/featurelayer-search-fails/m-p/112688#M713</guid>
      <dc:creator>GenaroGarcia</dc:creator>
      <dc:date>2015-12-10T13:51:59Z</dc:date>
    </item>
  </channel>
</rss>

