In ArcGIS Pro, the arcpy.management.CalculateFields() function returns an error message, "Error 000735: Value is required" when passing a value table to the fields parameter.
上次发布: September 22, 2021ArcGIS Pro
漏洞 ID 编号
BUG-000141889
已提交
August 2, 2021
上次修改时间
March 20, 2025
适用范围
ArcGIS Pro
找到的版本
2.8.1
操作系统
Windows OS
操作系统版本
10.0
状态
Will Not Be Addressed
开发团队已考虑过该问题或请求,并决定不会解决该问题。 问题的“其他信息”部分可能包含进一步说明。
附加信息
There are two errors in the user's script:
1. The workspace path must not include the actual table. For example, arcpy.env.workspace = r"D:\-user-\Cases\Open_cases\02849687\US_cities.gdb"
The user's script includes the table in the workspace path, which caused error 000735.
2. Using the list syntax in Python requires another set of quotes, single quotes, around the field values. For example, arcpy.CalculateFields_management(r"C:\Users\-name-\Documents\ArcGIS\Packages\U.S.Cities_a015c0\p20\us_cities.gdb\cities", "PYTHON3",[["Name", "'Test1'"], ["Office", "'z'"]]).
The single quotes are missing from the script.