Issues calculating area and perimeter

228
2
03-01-2024 06:33 AM
matteatsbrains
New Contributor II

Hello, I am very green to ArcPro but have encountered a problem I cant wrap my head around. I am trying to calculate the area and perimeter of a shapefile I have created. It has been edited and saved and I have used the correct coodinate system, however I encounter this error (picture included):

Traceback (most recent call last):
File "c:\program files\arcgis\pro\Resources\ArcToolbox\scripts\calculategeometry.py", line 290, in <module>
CalculateGeometry(fc, properties, lUnit, aUnit, cs, cformat)
File "c:\program files\arcgis\pro\Resources\ArcToolbox\scripts\calculategeometry.py", line 130, in CalculateGeometry
ucur.updateRow(row)
RuntimeError: The value type is incompatible with the field type. [Area]

 

Is there something I am doing wrong? Any help would be much appreciated 🙂

 

matteatsbrains_0-1709303492613.png

 

0 Kudos
2 Replies
DanPatterson
MVP Esteemed Contributor

If they are fields you created, then check in the fields view to ensure that the data type is double, and use a different name, it might be a keyword issue, try 

Area_   Perimeter_

area.png

throwing the _ removes if from the keyword list


... sort of retired...
matteatsbrains
New Contributor II

Dan you are a lifesaver mate, thank you so much ❤️

0 Kudos