<?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: 10.7.1 Python tool filters not displaying ArcMap layers in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/10-7-1-python-tool-filters-not-displaying-arcmap/m-p/753141#M5132</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just restarted ArcMap again and, this time, it's working.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Jul 2020 15:28:00 GMT</pubDate>
    <dc:creator>williamwinner</dc:creator>
    <dc:date>2020-07-07T15:28:00Z</dc:date>
    <item>
      <title>10.7.1 Python tool filters not displaying ArcMap layers</title>
      <link>https://community.esri.com/t5/developers-questions/10-7-1-python-tool-filters-not-displaying-arcmap/m-p/753140#M5131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a python toolbox with a parameter set up like:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;        lyrInput &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Parameter&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;name &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"lyrInput"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
                                   displayName&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Input Feature Layer"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
                                   direction&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Input"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
                                   datatype&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"GPFeatureLayer"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;#changed to allow drop-down from open layers&lt;/SPAN&gt;
                                   parameterType&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Required"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
        lyrInput&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;filter&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;list &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Polyline"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;When I open the tool in ArcMap 10.5.1, it shows me the layers that have been added to ArcMap:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="499348" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/499348_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;However, when I open it on our virtual servers using ArcMap 10.7.1, the filter doesn't show any layers added to ArcMap.&amp;nbsp; This means that selections won't be applied:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="499364" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/499364_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's the exact same python script on both versions.&amp;nbsp; But, in 10.7.1, nothing shows.&amp;nbsp; I've tried creating a separate script and setting the filter in the properties and, when no filter is added, it shows me in_memory layers but when I set a filter to the feature layer, it doesn't show anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE: I just noticed that my trying to add the newly created layer to ArcMap is not working.&amp;nbsp; It's giving an error stating, "CreateObject cannot open map document"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 07:58:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/10-7-1-python-tool-filters-not-displaying-arcmap/m-p/753140#M5131</guid>
      <dc:creator>williamwinner</dc:creator>
      <dc:date>2021-12-12T07:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: 10.7.1 Python tool filters not displaying ArcMap layers</title>
      <link>https://community.esri.com/t5/developers-questions/10-7-1-python-tool-filters-not-displaying-arcmap/m-p/753141#M5132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just restarted ArcMap again and, this time, it's working.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2020 15:28:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/10-7-1-python-tool-filters-not-displaying-arcmap/m-p/753141#M5132</guid>
      <dc:creator>williamwinner</dc:creator>
      <dc:date>2020-07-07T15:28:00Z</dc:date>
    </item>
  </channel>
</rss>

