Bug
| Bug ID Number | BUG-000133395 |
|---|---|
| Submitted | August 27, 2020 |
| Last Modified | July 11, 2025 |
| Applies to | ArcGIS Pro |
| Version found | 2.6 |
| Operating System | Windows OS |
| Operating System Version | 10.0 64 Bit |
| Version Fixed | 2.7 |
| Status | Fixed |
The issue can be resolved by getting the second line of the tool, which is return value", “TEXT”) appended after the first line.
For example, instead of arcpy.management.CalculateField("World Continents", "CONTINENT", "test(!OBJECTID!)", "PYTHON3", r"def test(value):
return value", "TEXT") , the code lines must look like the following: arcpy.management.CalculateField("World Continents",
"CONTINENT", "test(!OBJECTID!)", "PYTHON3", r"def test(value):return value", "TEXT")
Bug ID: BUG-000133395
Software:
Get help from ArcGIS experts
Download the Esri Support App