<?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 - Arcpy GPSQLExpression Parameter Dependency in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-arcpy-gpsqlexpression-parameter/m-p/256445#M11265</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have two input parameters&amp;nbsp;in my python toolbox tool, First one is GPTableView and has MutliVlaue=True and second parameter is GPSQLExpression and set the dependency to parameter 1. Every thing works fine if i give single feature class input.&lt;/P&gt;&lt;P&gt;If i select multiple input feature classes or table, shows "Internal error initializing expression"&amp;nbsp; error.&lt;/P&gt;&lt;P&gt;My ArcGIS Pro version is 2.5.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: The same code works fine in ArcGIS Desktop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;pipeseg_layer = arcpy.Parameter(
    &lt;SPAN style="color: #660099;"&gt;displayName&lt;/SPAN&gt;=&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"Input PipeSegment Features or Records"&lt;/SPAN&gt;,
    &lt;SPAN style="color: #660099;"&gt;name&lt;/SPAN&gt;=&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"pipeseg_layer"&lt;/SPAN&gt;,
    &lt;SPAN style="color: #660099;"&gt;datatype&lt;/SPAN&gt;=&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"GPTableView"&lt;/SPAN&gt;,
    &lt;SPAN style="color: #660099;"&gt;parameterType&lt;/SPAN&gt;=&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"Required"&lt;/SPAN&gt;,
    &lt;SPAN style="color: #660099;"&gt;multiValue&lt;/SPAN&gt;=&lt;SPAN style="color: #000080;"&gt;True&lt;/SPAN&gt;,
    &lt;SPAN style="color: #660099;"&gt;direction&lt;/SPAN&gt;=&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"Input"&lt;/SPAN&gt;)
&lt;PRE class="lia-code-sample line-numbers language-none"&gt;pipeseg_metallic_where = arcpy.Parameter(
    &lt;SPAN style="color: #660099;"&gt;displayName&lt;/SPAN&gt;=&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"Input Pipe Material Type Metallic Where Clause"&lt;/SPAN&gt;,
    &lt;SPAN style="color: #660099;"&gt;name&lt;/SPAN&gt;=&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"pipeseg_metallic_where"&lt;/SPAN&gt;,
    &lt;SPAN style="color: #660099;"&gt;datatype&lt;/SPAN&gt;=&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"GPSQLExpression"&lt;/SPAN&gt;,
    &lt;SPAN style="color: #660099;"&gt;parameterType&lt;/SPAN&gt;=&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"Optional"&lt;/SPAN&gt;,
    &lt;SPAN style="color: #660099;"&gt;direction&lt;/SPAN&gt;=&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"Input"&lt;/SPAN&gt;)
pipeseg_metallic_where.parameterDependencies = [pipeseg_layer.name]&lt;/PRE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" height="394" src="https://community.esri.com/legacyfs/online/501593_pastedImage_2.png" width="509" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 12:38:32 GMT</pubDate>
    <dc:creator>SivaSontineni</dc:creator>
    <dc:date>2021-12-11T12:38:32Z</dc:date>
    <item>
      <title>ArcGIS Pro - Arcpy GPSQLExpression Parameter Dependency</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-arcpy-gpsqlexpression-parameter/m-p/256445#M11265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have two input parameters&amp;nbsp;in my python toolbox tool, First one is GPTableView and has MutliVlaue=True and second parameter is GPSQLExpression and set the dependency to parameter 1. Every thing works fine if i give single feature class input.&lt;/P&gt;&lt;P&gt;If i select multiple input feature classes or table, shows "Internal error initializing expression"&amp;nbsp; error.&lt;/P&gt;&lt;P&gt;My ArcGIS Pro version is 2.5.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: The same code works fine in ArcGIS Desktop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;pipeseg_layer = arcpy.Parameter(
    &lt;SPAN style="color: #660099;"&gt;displayName&lt;/SPAN&gt;=&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"Input PipeSegment Features or Records"&lt;/SPAN&gt;,
    &lt;SPAN style="color: #660099;"&gt;name&lt;/SPAN&gt;=&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"pipeseg_layer"&lt;/SPAN&gt;,
    &lt;SPAN style="color: #660099;"&gt;datatype&lt;/SPAN&gt;=&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"GPTableView"&lt;/SPAN&gt;,
    &lt;SPAN style="color: #660099;"&gt;parameterType&lt;/SPAN&gt;=&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"Required"&lt;/SPAN&gt;,
    &lt;SPAN style="color: #660099;"&gt;multiValue&lt;/SPAN&gt;=&lt;SPAN style="color: #000080;"&gt;True&lt;/SPAN&gt;,
    &lt;SPAN style="color: #660099;"&gt;direction&lt;/SPAN&gt;=&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"Input"&lt;/SPAN&gt;)
&lt;PRE class="lia-code-sample line-numbers language-none"&gt;pipeseg_metallic_where = arcpy.Parameter(
    &lt;SPAN style="color: #660099;"&gt;displayName&lt;/SPAN&gt;=&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"Input Pipe Material Type Metallic Where Clause"&lt;/SPAN&gt;,
    &lt;SPAN style="color: #660099;"&gt;name&lt;/SPAN&gt;=&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"pipeseg_metallic_where"&lt;/SPAN&gt;,
    &lt;SPAN style="color: #660099;"&gt;datatype&lt;/SPAN&gt;=&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"GPSQLExpression"&lt;/SPAN&gt;,
    &lt;SPAN style="color: #660099;"&gt;parameterType&lt;/SPAN&gt;=&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"Optional"&lt;/SPAN&gt;,
    &lt;SPAN style="color: #660099;"&gt;direction&lt;/SPAN&gt;=&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"Input"&lt;/SPAN&gt;)
pipeseg_metallic_where.parameterDependencies = [pipeseg_layer.name]&lt;/PRE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" height="394" src="https://community.esri.com/legacyfs/online/501593_pastedImage_2.png" width="509" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:38:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-arcpy-gpsqlexpression-parameter/m-p/256445#M11265</guid>
      <dc:creator>SivaSontineni</dc:creator>
      <dc:date>2021-12-11T12:38:32Z</dc:date>
    </item>
  </channel>
</rss>

