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]
