laptop and a wrench

漏洞

Using a GetParameterAsText variable in an ArcGIS Pro calculated field code does not return the correct result of the output and does not recognize the isSame function when running through the script tool.

上次发布: June 7, 2022 ArcGIS Pro
漏洞 ID 编号 BUG-000147506
已提交March 10, 2022
上次修改时间March 20, 2025
适用范围ArcGIS Pro
找到的版本2.9
操作系统Windows OS
操作系统版本10.0
状态Non-Reproducible

附加信息

The CalculateField tool requires the field names within ‘!’. The user's script misses the '!'. The following code works: exp = "isSame(!{}!,!{}!)".format(Field1, Field2) arcpy.management.CalculateField(LayerComp, MatchField, exp, "PYTHON3", codeblock, "TEXT", "NO_ENFORCE_DOMAINS")

解决办法

Use an update cursor.

重现步骤

漏洞 ID: BUG-000147506

软件:

  • ArcGIS Pro

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项