<?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: Python script tool Validation Filter.List just shows empty strings in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/python-script-tool-validation-filter-list-just/m-p/1368352#M69596</link>
    <description>&lt;P&gt;Keep it simple.&lt;/P&gt;&lt;P&gt;Basically, what I think is happening is you're applying the list to a copy of the parameter filter, not the actual filter? (Or maybe not, but that's how it makes sense to me in my head lol) Either way, this works.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;def initializeParameters(self):
        filterlist = ["test1", "test2"]
        self.params[0].filter.list = filterlist
        return&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AlfredBaldenweck_3-1704899307491.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/91068i97AB6E6C7CCB9DAD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AlfredBaldenweck_3-1704899307491.png" alt="AlfredBaldenweck_3-1704899307491.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AlfredBaldenweck_0-1704899182588.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/91065i6896E537F385E09E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AlfredBaldenweck_0-1704899182588.png" alt="AlfredBaldenweck_0-1704899182588.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AlfredBaldenweck_2-1704899297570.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/91067i658003AFE96124E2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AlfredBaldenweck_2-1704899297570.png" alt="AlfredBaldenweck_2-1704899297570.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 10 Jan 2024 15:08:59 GMT</pubDate>
    <dc:creator>AlfredBaldenweck</dc:creator>
    <dc:date>2024-01-10T15:08:59Z</dc:date>
    <item>
      <title>Python script tool Validation Filter.List just shows empty strings</title>
      <link>https://community.esri.com/t5/python-questions/python-script-tool-validation-filter-list-just/m-p/1368338#M69594</link>
      <description>&lt;P&gt;In ArcPro 2.9.5 I have a python script tool in the new toolbox (.atbx) with validation that sets the filter.list.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue I am seeing is that the values in the list are all empty strings.&amp;nbsp; The number of rows is correct but the values are all empty.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've simplified my python code to just set ['test1', 'test'2'] as the filter.list and it shows up like the screenshot below.&amp;nbsp; What could I possibly do differently here to make this work?&amp;nbsp; I am going to try the old style toolbox.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rhughes522_2-1704898401295.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/91062i0DEA8A2345F021C1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rhughes522_2-1704898401295.png" alt="rhughes522_2-1704898401295.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rhughes522_0-1704898290044.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/91059iE12B4EC330731571/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rhughes522_0-1704898290044.png" alt="rhughes522_0-1704898290044.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2024 14:55:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-script-tool-validation-filter-list-just/m-p/1368338#M69594</guid>
      <dc:creator>rhughes522</dc:creator>
      <dc:date>2024-01-10T14:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: Python script tool Validation Filter.List just shows empty strings</title>
      <link>https://community.esri.com/t5/python-questions/python-script-tool-validation-filter-list-just/m-p/1368343#M69595</link>
      <description>&lt;P&gt;Well i copied the script tool into the legacy (.tbx) toolbox and it worked as expected.&amp;nbsp; It seems like this is probably a bug in the new (.atbx) toolbox.&amp;nbsp; I hope this might help.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2024 14:59:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-script-tool-validation-filter-list-just/m-p/1368343#M69595</guid>
      <dc:creator>rhughes522</dc:creator>
      <dc:date>2024-01-10T14:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: Python script tool Validation Filter.List just shows empty strings</title>
      <link>https://community.esri.com/t5/python-questions/python-script-tool-validation-filter-list-just/m-p/1368352#M69596</link>
      <description>&lt;P&gt;Keep it simple.&lt;/P&gt;&lt;P&gt;Basically, what I think is happening is you're applying the list to a copy of the parameter filter, not the actual filter? (Or maybe not, but that's how it makes sense to me in my head lol) Either way, this works.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;def initializeParameters(self):
        filterlist = ["test1", "test2"]
        self.params[0].filter.list = filterlist
        return&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AlfredBaldenweck_3-1704899307491.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/91068i97AB6E6C7CCB9DAD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AlfredBaldenweck_3-1704899307491.png" alt="AlfredBaldenweck_3-1704899307491.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AlfredBaldenweck_0-1704899182588.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/91065i6896E537F385E09E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AlfredBaldenweck_0-1704899182588.png" alt="AlfredBaldenweck_0-1704899182588.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AlfredBaldenweck_2-1704899297570.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/91067i658003AFE96124E2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AlfredBaldenweck_2-1704899297570.png" alt="AlfredBaldenweck_2-1704899297570.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2024 15:08:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-script-tool-validation-filter-list-just/m-p/1368352#M69596</guid>
      <dc:creator>AlfredBaldenweck</dc:creator>
      <dc:date>2024-01-10T15:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: Python script tool Validation Filter.List just shows empty strings</title>
      <link>https://community.esri.com/t5/python-questions/python-script-tool-validation-filter-list-just/m-p/1368357#M69597</link>
      <description>&lt;P&gt;Well my script tool is not really that simple which could be partly to blame for the apparent bug.&amp;nbsp; When I copied it into the legacy toolbox is just worked.&amp;nbsp; I did previously try setting the filter.list using the same syntax on a single line previously and it didn't work.&amp;nbsp; My best guess is that something in the script tool itself was causing an issue.&amp;nbsp; Maybe something with the other parameters.&amp;nbsp; Since I've already deleted the .atbx file I cannot copy the script tool from a legacy into a new .atbx to test again.&amp;nbsp; It would take me too much time to rebuild so I am just going to finish it in the legacy toolbox, then if I have time I will take another look.&amp;nbsp; Thanks for the feedback.&amp;nbsp; When I get some time to rebuild in the .atbx I will give it another try.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2024 15:17:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-script-tool-validation-filter-list-just/m-p/1368357#M69597</guid>
      <dc:creator>rhughes522</dc:creator>
      <dc:date>2024-01-10T15:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: Python script tool Validation Filter.List just shows empty strings</title>
      <link>https://community.esri.com/t5/python-questions/python-script-tool-validation-filter-list-just/m-p/1368359#M69598</link>
      <description>&lt;P&gt;You can copy a script tool from a tbx to an atbx by right-clicking; all you need is an atbx to paste it into.&lt;/P&gt;&lt;P&gt;Definitely when you have time to try again, share more of your parameters/validation and we can figure out what the problem is.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2024 15:25:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-script-tool-validation-filter-list-just/m-p/1368359#M69598</guid>
      <dc:creator>AlfredBaldenweck</dc:creator>
      <dc:date>2024-01-10T15:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: Python script tool Validation Filter.List just shows empty strings</title>
      <link>https://community.esri.com/t5/python-questions/python-script-tool-validation-filter-list-just/m-p/1368363#M69599</link>
      <description>&lt;P&gt;I am getting an error when I try to paste the script tool into a new .atbx toolbox from a legacy but it worked the other direction for me.&amp;nbsp; I've tried creating an .atbx in a different folder too.&amp;nbsp; I just assumed they were not compatible, but this could just be an issue with the Citrix environment or the File System.&amp;nbsp; It's been a headache working in this environment for sure.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rhughes522_0-1704900504489.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/91070iF7743AFE8F40F619/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rhughes522_0-1704900504489.png" alt="rhughes522_0-1704900504489.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2024 15:30:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-script-tool-validation-filter-list-just/m-p/1368363#M69599</guid>
      <dc:creator>rhughes522</dc:creator>
      <dc:date>2024-01-10T15:30:39Z</dc:date>
    </item>
  </channel>
</rss>

