Validation attribute rules in a file geodatabase

732
2
05-19-2021 09:03 PM
Aнастасия0328
New Contributor II

Hello ArcPro community,

I have some problems in the process of "Validation attribute rules" in a file geodatabase.

I am using ArcGIS Pro 2.7, which I believe it supports a file geodatabase as a workspace for setting up the validation attribute rules and running the validation rules check.

My problem are; 1. "Add error layers" option is not available, and 2. "Error Inspector" does not show anything. 

What I have done are as follows; 1. Created a point and polygon features in a file geodatabase. Both of the features have GlobalID and enabled Editor tracking.

NGZK0328_3-1621482815397.png

 

2. Added a validation rule that will pick if a point feature is outside of the polygon features. 3. Created Error layers using Evaluate Rules geoprocessing tool. 

4. Tried to add the error layers to a map by right click on the point feature in Contents but "Add error layers" option was greyed out. 

NGZK0328_0-1621482331175.png

5. Added the error layers manually to the map, and then tried to use "Error Inspector" but it only displays "Please select a map that contains error layers".

NGZK0328_1-1621482509493.png

I assume I missed something that I was supposed to do but I don't know what that is. Much appreciated for any advise.

 

0 Kudos
2 Replies
by Anonymous User
Not applicable

Seems like the map layer doesn't recognize that the layer has a validation rule on it or that is can add the error layers from the workspace. Have you tried

  • Adding the point layer to a new map to see if the "Add error layers" becomes enabled OR
  • Saving and reopening the project to see if the option becomes enabled? 
0 Kudos
Aнастасия0328
New Contributor II

Hi Supriya_SH, thanks for your reply!

I had already attempted both the ways that you mentioned as first things to do yesterday but unfortunately these attempts did not work back in that time.

However, today, "Add error layers" option is somehow available and "Error Inspector is also fine after I opened the same project. I still don't know what happened but it may have been some sort of hiccups of ArcGIS Pro...

Actually, there is another finding - Action of opening an attribute table of the point layer (a layer used for validation rule)  will trigger inactivation of Error Inspector.

I confirmed the Error Inspector works fine.

NGZK0328_0-1621550430346.png

, and then I opened the attribute table of the point layer, then the Error Inspector got back to unavailable again. If I close the attribute table, then Error Inspector is available. If I open the attribute table before I open Error Inspector, then Error Inspector works fine as well.

NGZK0328_1-1621550520501.png

Thanks 

0 Kudos