In-Memory datasets and Shape_Area field

6193
12
12-15-2010 12:12 PM
KenBuja
MVP Esteemed Contributor
When creating an in-memory feature layers from the Dissolve tool, the resulting feature layer contains the fields Shape_Length and Shape_Area. However, the attributes in both these fields are null. However, if the Dissolve tool's output is a scratch geodatabase, these two fields are populated correctly. Why aren't these field populated for in-memory feature layer?
0 Kudos
12 Replies
BrandonFlessner
Occasional Contributor

Still seeing this behavior at 10.3.1, doesn't seem like ESRI is going to fix it ...

0 Kudos
KenBuja
MVP Esteemed Contributor

Yes, its status is still "Open: Assigned". I would suggest contacting Esri support and adding your information to this bug. If more people complain about it, its priority will go up.

0 Kudos
ToddMorland1
New Contributor III

Use the add geometry tool:

arcpy.AddGeometryAttributes_management("featureNeedsShape", "AREA")

This will add the field "POLY_AREA" to your in_memory feature.

Add Geometry Attributes (Data Management)—ArcGIS Pro | Documentation 

0 Kudos