<?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: Task does not display all rows of ValueTable in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/task-does-not-display-all-rows-of-valuetable/m-p/1349886#M75221</link>
    <description>&lt;P&gt;I have also tried loading different values for the Acres column under the theory that loading None is a problem. ('1' , '1.1', '1.0')&lt;/P&gt;</description>
    <pubDate>Wed, 15 Nov 2023 19:37:44 GMT</pubDate>
    <dc:creator>PhilLarkin1</dc:creator>
    <dc:date>2023-11-15T19:37:44Z</dc:date>
    <item>
      <title>Task does not display all rows of ValueTable</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/task-does-not-display-all-rows-of-valuetable/m-p/1349357#M75182</link>
      <description>&lt;P&gt;I have a Geoprocessing Script Tool that auto-populates parameters via the initalizeParameters function of the ToolValidator class. This works well when the Tool is run from the toolbox.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;def initializeParameters(self):
	# Customize parameter properties. 
	# This gets called when the tool is opened.
	parcels = ['test1','test2']
	valueTable = arcpy.ValueTable(len(parcels))
	valueTable.setColumns(["GPString","GPDouble"])
	for parcel in parcels:
		valueTable.addRow([parcel, None])

	self.params[0].value = valueTable&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tool Display when open from Toolbox:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PhilLarkin1_0-1699993030715.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/85985i7C3AD9FDCA805EA5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PhilLarkin1_0-1699993030715.png" alt="PhilLarkin1_0-1699993030715.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This does not run as expected when using Tasks. Task Display:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PhilLarkin1_1-1699993134611.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/85986i008EF599DDF83283/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PhilLarkin1_1-1699993134611.png" alt="PhilLarkin1_1-1699993134611.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Only the first item in the parcels list is loaded.&lt;/STRONG&gt; There are no errors reported. Does anyone have any suggestions or workarounds? I am using Pro 3.1.0.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 16 Nov 2023 15:16:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/task-does-not-display-all-rows-of-valuetable/m-p/1349357#M75182</guid>
      <dc:creator>PhilLarkin1</dc:creator>
      <dc:date>2023-11-16T15:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: Task does not display all rows of ValueTable</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/task-does-not-display-all-rows-of-valuetable/m-p/1349484#M75191</link>
      <description>&lt;P&gt;I thought that maybe removing the for loop might help. This was substituted using the loadFromString function. It had the same result: the task only displays one of the values.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt; valueTable.loadFromString(';'.join([f"'{i}' 'None'" for i in parcels]))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2023 00:13:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/task-does-not-display-all-rows-of-valuetable/m-p/1349484#M75191</guid>
      <dc:creator>PhilLarkin1</dc:creator>
      <dc:date>2023-11-15T00:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: Task does not display all rows of ValueTable</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/task-does-not-display-all-rows-of-valuetable/m-p/1349886#M75221</link>
      <description>&lt;P&gt;I have also tried loading different values for the Acres column under the theory that loading None is a problem. ('1' , '1.1', '1.0')&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2023 19:37:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/task-does-not-display-all-rows-of-valuetable/m-p/1349886#M75221</guid>
      <dc:creator>PhilLarkin1</dc:creator>
      <dc:date>2023-11-15T19:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: Task does not display all rows of ValueTable</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/task-does-not-display-all-rows-of-valuetable/m-p/1350446#M75262</link>
      <description>&lt;P&gt;Instead of populating the value table i've attempted to set a filter on a column of the VT. This also results in the same issue. The VT is missing when the script tool is run from Tasks. Something is off related to the initalizeParameters in Validation.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Nov 2023 20:08:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/task-does-not-display-all-rows-of-valuetable/m-p/1350446#M75262</guid>
      <dc:creator>PhilLarkin1</dc:creator>
      <dc:date>2023-11-16T20:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: Task does not display all rows of ValueTable</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/task-does-not-display-all-rows-of-valuetable/m-p/1350497#M75264</link>
      <description>&lt;P&gt;When making changes to the validation code, specifically modifying the initializeParameters function, you need to reload the Geoprocessing Tool to get code changes recognized. Who Knew.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you find yourself in this predicament reload the tool or check/uncheck embed in the &lt;STRONG&gt;Task Designer&lt;/STRONG&gt;.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Nov 2023 23:49:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/task-does-not-display-all-rows-of-valuetable/m-p/1350497#M75264</guid>
      <dc:creator>PhilLarkin1</dc:creator>
      <dc:date>2023-11-16T23:49:55Z</dc:date>
    </item>
  </channel>
</rss>

