ArcGIS Pro - Arcpy GPSQLExpression Parameter Dependency

971
0
07-28-2020 01:47 PM
SivaSontineni
New Contributor

I have two input parameters 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.

If i select multiple input feature classes or table, shows "Internal error initializing expression"  error.

My ArcGIS Pro version is 2.5.0

Note: The same code works fine in ArcGIS Desktop.

Code:

pipeseg_layer = arcpy.Parameter(
    displayName="Input PipeSegment Features or Records",
    name="pipeseg_layer",
    datatype="GPTableView",
    parameterType="Required",
    multiValue=True,
    direction="Input")
pipeseg_metallic_where = arcpy.Parameter(
    displayName="Input Pipe Material Type Metallic Where Clause",
    name="pipeseg_metallic_where",
    datatype="GPSQLExpression",
    parameterType="Optional",
    direction="Input")
pipeseg_metallic_where.parameterDependencies = [pipeseg_layer.name]

Tags (1)
0 Kudos
0 Replies