laptop and a wrench

漏洞

Using in-line variable substitution in Calculate Field Python within ModelBuilder gives a correct but potentially misleading error message which gives the appearance the tool fails but it works as intended.

上次发布: February 17, 2021 ArcGIS Pro
漏洞 ID 编号 BUG-000137029
已提交January 27, 2021
上次修改时间April 23, 2025
适用范围ArcGIS Pro
找到的版本2.7
操作系统Windows OS
操作系统版本10.0
状态Will Not Be Addressed

附加信息

This is as designed.

解决办法

Ignore the error message but if there is other things wrong with the calculation this is to be overlooked.

Note: %-% is not valid Python, the validator correctly throws an error. Writing proper Python takes care of this. Enclose the variable needed to replace in a string.

重现步骤

漏洞 ID: BUG-000137029

软件:

  • ArcGIS Pro

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

下载 Esri 支持应用程序

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

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项