"Add Error Layers" not available on feature service layers with validation rules?

2312
16
04-17-2023 08:53 PM
HNTZK46
Emerging Contributor

Hello AR people,

 Problem - "Add Error Layers" option is not available to evaluate validation rules on feature service on ArcGIS Pro 3.0. I created validation rules for feature class in Enterprise GDB, and then published as editable feature service (Branch versioned). I added the published feature service into ArcGIS Pro, but the "Add Error Layers" option is greyed out and not available, i.e. I cannot use Error Inspector to run the validation rule evaluation.

If I use data in FGDB and it works fine. I don't know if this is a bug or I went through wrong steps. I published data including error layers (i.e. Validation Line Errors, etc.) with table of Validation Object Errors. 

I cannot find any resources that instruct how to use validation rules on feature service. Does anyone know how to set this up?

Thanks in advance,

0 Kudos
16 Replies
Jake_S
by Esri Contributor
Esri Contributor

Morning,

When you published your service did you enable it with the Validation capability?  

Check out these links Validation capabilityValidation attribute rules

~Jake

0 Kudos
HNTZK46
Emerging Contributor

Hi Jake,

I think I setup all the required configurations, including:

  • All four error datasets listed below are present in the map
  • All data must be branch versioned
  • The connected geodatabase must be set to branch for versioning type in the Geodatabase Connection Properties
  • The connected geodatabase user must be the owner of the data
  • ArcGIS Enterprise 10.7 or later

However, it seems like there is no option of "Enable Validation capabilities" on "Share as Web Layer" pane.

According to the step 9 of ESRI doc (link is below), it says "Optionally enable the Validation capability on the feature service. This is not required when sharing datasets with attribute rules but is required if you want the feature layer to participate in validation workflows. Click the Configuration tab, and click Validation under Capabilities.". But I cannot find the Validation under the Capabilities in Configuration tab (See screenshot below). How can I enable it if there is no option in the pane?

TtTTTtTeee_0-1681941202179.png

Share datasets with attribute rules 

 

0 Kudos
Jake_S
by Esri Contributor
Esri Contributor

Morning,

Couple questions:

In the feature service do you see the Adjustment Lines, Points, & Vectors feature Classes?

JS_Esri_0-1681990547124.png

 

If so, when right clicking a feature and hovering over the 'Add Error Layers' do you see this message?

JS_Esri_1-1681990625388.png

 

~Jake

0 Kudos
HNTZK46
Emerging Contributor

No, I don't have those layers. I have included "four error layers" that were automatically created when the validation rule was established on the enterprise GDB. What is the difference between your "AdjustmentLines" layer and "Validation Line Error" layer?

TtTTTtTeee_0-1682023488471.png

Even if I right click on one of the four layers on ArcGIS Pro map, "Add Error Layers" are greyed out.

TtTTTtTeee_1-1682023611330.png

 

0 Kudos
Jake_S
by Esri Contributor
Esri Contributor

My process for successfully utilizing the Error Inspector for validation rules is as follows:

1. Create Validation Rule (automagically creates the 4 validation features GDB_ValidationPointErrors, GDB_ValidationLineErrors, GDB_ValidationPolygonErrors, & GDB_ValidationObjectErrors in the egdb)

JS_Esri_0-1682027896808.png

 

2. With a map with the data with validation rules applied, add the 4 validation features to the map to publish

3. In the Share As Web Layer Configuration tab check 'Validation', Publish

4. Bring in service in from Portal

5. Right click on a feature with validation rules and the Add Error Layers is available 

JS_Esri_1-1682027911167.png

 

0 Kudos
HNTZK46
Emerging Contributor

I think the step 3, "In the Share As Web Layer Configuration tab check 'Validation', Publish" is problem for me.

In my case, I don't have the option, "Validation" in configuration tab for some reasons. I am using Pro3.0, which should be available for this setting according to ESRI doc. How can I make this option available?

TtTTTtTeee_0-1682033132117.png

 

 

0 Kudos
Jake_S
by Esri Contributor
Esri Contributor

Are the layers that have validation rules applied to them in the Map you are about to publish as a service? 

0 Kudos
Jake_S
by Esri Contributor
Esri Contributor

Some reference examples.

No Validation rules

JS_Esri_0-1682076480899.png

With validation rule

JS_Esri_1-1682076645558.png

 

Map with feature with validation rules AND the Error layers added to publish

JS_Esri_2-1682076778485.png

 

 

0 Kudos
HNTZK46
Emerging Contributor

Ok, so on your interface, you have the check box for "Validation". However, in my case. there is not option of "Validation check box" somehow even if I use the version 10.8 of Enterprise GDB. 

Yes, I published as editable feature service. The validation rule was successfully configured and saved it before publishing it. Also, all other required configuration were matched in accordance with ESRI doc.

Also, I have tested to publish the data as editable feature service with "Calculation rule", and this worked fine. I also tested the validation rule for the data in FGDB, and it worked fine as well. 

The data that I am trying to publish is Annotation feature class -  is this a problem by any chance??

0 Kudos