Select to view content in your preferred language

Attribute Rule not saving in ArcGIS Pro when the feature class is in WGS 1984 Web Mercator (auxiliary sphere)

895
6
Jump to solution
11-07-2024 06:57 AM
Labels (1)
AbiDhakal
Frequent Contributor

Hello GIS friends,

I'm trying to save an Attribute Rule in a polygon feature class with WGS 1984 Web Mercator (auxiliary sphere) projection and it is not saving. However, when I put the same Attribute Rule for a feature class in NAD 1983 UTM Zone 16N projection it gets saved. 

This is what I'm putting. round(Area($feature, 'acres'),1)

Thank you for your help.
Abi

0 Kudos
1 Solution

Accepted Solutions
AlfredBaldenweck
MVP Regular Contributor

If it's red, mouse over it to see what the error is.

AlfredBaldenweck_0-1730995455347.png

 

 

 

Ohhhh the other thing that I forgot: The feature class must have GlobalIDs enabled. That's bitten me several times.

View solution in original post

6 Replies
AlfredBaldenweck
MVP Regular Contributor

Weird. Does it change if you use AreaGeoDetic() instead?

AbiDhakal
Frequent Contributor

@AlfredBaldenweck - When I put
 
AreaGeodetic(Geometry($feature), 'acres')

for a feature class in WGS 1984 Web Mercator (auxiliary sphere) projection it does not save. It verifies the expression to be correct, but it does not save. Also, when I put that expression for a feature class in NAD 1983 UTM Zone 16N projection it verifies it wrong.

0 Kudos
AlfredBaldenweck
MVP Regular Contributor

If by verifies it wrong, you mean it returns a different value, that's expected. Area and Area Geodetic measure differently.

Testing it out myself, I also get that error for the NAD83, so that's fine.

AlfredBaldenweck_0-1730994157822.png

I'm testing in a file geodatabase in Pro 3.1.3, and it's working for me

AlfredBaldenweck_1-1730994695000.gif

Make sure you have the following if it's just a problem literally saving the rule:

  1. Rule Name
  2. Description
  3. Field
  4. Expression
  5. Triggers

I frequently can't save because I forget the description.

 

AbiDhakal
Frequent Contributor

I have these and I'm still not able to save.

1. Rule Name (Get Area)
2. Description (Get area)
3. Field (GISAcres)
4. Expression: AreaGeodetic(Geometry($feature), 'acres')
5. Triggers (Insert, Update)

Thank you for trying to help me.

0 Kudos
AlfredBaldenweck
MVP Regular Contributor

If it's red, mouse over it to see what the error is.

AlfredBaldenweck_0-1730995455347.png

 

 

 

Ohhhh the other thing that I forgot: The feature class must have GlobalIDs enabled. That's bitten me several times.

AbiDhakal
Frequent Contributor

And the bite took a chunk out of me; it's been very painful so hopefully I will not forget this one. Thank you! That did it!

0 Kudos