<?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: Value Table Parameter breaks in PYT in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/value-table-parameter-breaks-in-pyt/m-p/1333424#M68769</link>
    <description>&lt;P&gt;Oh for Pete's sake.&lt;/P&gt;&lt;P&gt;I did actually have two parameters named the same thing. This is embarrassing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 28 Sep 2023 15:59:04 GMT</pubDate>
    <dc:creator>AlfredBaldenweck</dc:creator>
    <dc:date>2023-09-28T15:59:04Z</dc:date>
    <item>
      <title>Value Table Parameter breaks in PYT</title>
      <link>https://community.esri.com/t5/python-questions/value-table-parameter-breaks-in-pyt/m-p/1333413#M68768</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm having a lot of trouble with my value table parameter. Followed the documentation &lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/geoprocessing_and_python/defining-parameters-in-a-python-toolbox.htm" target="_blank" rel="noopener"&gt;here&lt;/A&gt;. In Pro 2.9.5, but that shouldn't matter for this.&lt;/P&gt;&lt;P&gt;I can get the value lists to show up, but I can't get any values to stick. Neither can I get the default values to work.&lt;/P&gt;&lt;P&gt;Would one of you be able to tell me what is wrong with this?&lt;/P&gt;&lt;LI-CODE lang="python"&gt;        param17 = arcpy.Parameter(
                    displayName = "Watermarks (Metadata)",
                    name = "watermarkMD",
                    datatype = "GPValueTable",
                    parameterType = "Optional",
                    direction = "Input")
                    
        param17.columns = [['GPString', 'Dynamic Text'], ['GPString', 'Position']]
        param17.filters[0].type = 'ValueList'
        param17.filters[0].list =["GPSImgDirection","GPSCoordinates",
                                  "DateTime", "File Name", "Name Field", 
                                  "Name Field 2"]
        param17.filters[1].type = 'ValueList'

        param17.filters[1].list =["Upper Left", "Middle Left", "Lower Left",
                          "Upper Center", "Middle Center", 
                          "Lower Center", "Upper Right", 
                          "Middle Right", "Lower Right"]
        param17.values= [['File Name','Upper Right']]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;I can get the two columns to show up, and I can see the values in each list, but selecting them just makes them disappear.&lt;/P&gt;&lt;P&gt;This parameter is not affected by updateMessages(), and only turned off and on by a toggle in updateParameters(). I turned off that toggle functionality just to check and nothing changed.&lt;/P&gt;&lt;P&gt;I have checked, and I don't have two parameters named the same thing, which is normally the issue with this error.&lt;/P&gt;&lt;P&gt;I have also changed up the order of setting the default values/ the value list to match the documentation linked above, and that didn't change anything.&lt;/P&gt;&lt;P&gt;(Changing to all single quotes didn't help either. Ignore my inconsistent use of quotes please)&lt;/P&gt;&lt;P&gt;Basically, I'm out of ideas and am hoping some fresh eyes will catch something I've missed.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2023 15:35:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/value-table-parameter-breaks-in-pyt/m-p/1333413#M68768</guid>
      <dc:creator>AlfredBaldenweck</dc:creator>
      <dc:date>2023-09-28T15:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: Value Table Parameter breaks in PYT</title>
      <link>https://community.esri.com/t5/python-questions/value-table-parameter-breaks-in-pyt/m-p/1333424#M68769</link>
      <description>&lt;P&gt;Oh for Pete's sake.&lt;/P&gt;&lt;P&gt;I did actually have two parameters named the same thing. This is embarrassing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2023 15:59:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/value-table-parameter-breaks-in-pyt/m-p/1333424#M68769</guid>
      <dc:creator>AlfredBaldenweck</dc:creator>
      <dc:date>2023-09-28T15:59:04Z</dc:date>
    </item>
  </channel>
</rss>

