<?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 ArcGIS Pro Python Toolbox - arcpy.ArcSDESQLExecute is not bringing all the results in the query in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-python-toolbox-arcpy-arcsdesqlexecute/m-p/1563482#M90671</link>
    <description>&lt;P&gt;Hello,&lt;BR /&gt;I created a Python toolbox (.pyt) and when configuring the parameters, I discovered (on my own since I couldn't find it in the official documentation) that it is possible to list the values ​​through a database query.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Example:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;def getParameterInfo(self):
    """Define parameter definitions"""
    param = arcpy.Parameter(
        displayName="Select one option",
        name="id",
        datatype="GPString",
        parameterType="Required",
        direction="Input",
    )

    sql = """
    SELECT
        t.FIELD
    FROM
        TABLE T
    ORDER BY
        t.FIELD;
    """
    conn = arcpy.ArcSDESQLExecute(SDE_FILE)
    values = [row[0] for row in conn.execute(sql)]
    param.filter.list = values

    return [param]&lt;/LI-CODE&gt;&lt;P&gt;However, some users reported that it is not loading all the data from the table. I was able to verify this and to solve it, I created a new project, added the toolbox and voila, the query brought all the values.&lt;/P&gt;&lt;P&gt;Any solution or is this another bug?&lt;/P&gt;</description>
    <pubDate>Fri, 29 Nov 2024 19:50:22 GMT</pubDate>
    <dc:creator>byander</dc:creator>
    <dc:date>2024-11-29T19:50:22Z</dc:date>
    <item>
      <title>ArcGIS Pro Python Toolbox - arcpy.ArcSDESQLExecute is not bringing all the results in the query</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-python-toolbox-arcpy-arcsdesqlexecute/m-p/1563482#M90671</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;I created a Python toolbox (.pyt) and when configuring the parameters, I discovered (on my own since I couldn't find it in the official documentation) that it is possible to list the values ​​through a database query.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Example:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;def getParameterInfo(self):
    """Define parameter definitions"""
    param = arcpy.Parameter(
        displayName="Select one option",
        name="id",
        datatype="GPString",
        parameterType="Required",
        direction="Input",
    )

    sql = """
    SELECT
        t.FIELD
    FROM
        TABLE T
    ORDER BY
        t.FIELD;
    """
    conn = arcpy.ArcSDESQLExecute(SDE_FILE)
    values = [row[0] for row in conn.execute(sql)]
    param.filter.list = values

    return [param]&lt;/LI-CODE&gt;&lt;P&gt;However, some users reported that it is not loading all the data from the table. I was able to verify this and to solve it, I created a new project, added the toolbox and voila, the query brought all the values.&lt;/P&gt;&lt;P&gt;Any solution or is this another bug?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2024 19:50:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-python-toolbox-arcpy-arcsdesqlexecute/m-p/1563482#M90671</guid>
      <dc:creator>byander</dc:creator>
      <dc:date>2024-11-29T19:50:22Z</dc:date>
    </item>
  </channel>
</rss>

