Select to view content in your preferred language

relationship class rule not working

312
4
Jump to solution
05-05-2025 04:22 PM
PierreloupDucroix
Frequent Contributor

Hello,

I have a feature class containing subtypes in a dataset (from a Utility network) and another feature class without subtypes in another dataset.

I added a relationship class between both FS, and it is working.

Now I want to restrict relationship with rules, so that I can add relations only for some subtypes.

I added relationship class rules so that only one subtype (HTA câble) can have relation with MT_PROFE feature class :

PierreloupDucroix_1-1746487060689.png

However, once I use the feature service, I can still add an MT_PROF in relation with other subtypes

Here you can see a subtype "BT Câble" in relation with an MT_PROFE, which is not allowed :

PierreloupDucroix_2-1746487177198.png

I tried to restart and even republish web service.

Any idea ?

 

 

CEO of MAGIS
0 Kudos
1 Solution

Accepted Solutions
PierreloupDucroix
Frequent Contributor

I tried in a local version of my geodatabase and it works well.

After setting up relationship rules, I get an error message :

feature MT_PROFE cannot be related to ElectricLine subtype BT câble because there is no relationship rule

I will log a case with Esri support

CEO of MAGIS

View solution in original post

4 Replies
RobertKrisher
Esri Regular Contributor

Does it work if you uncheck the box next to enabled for the subtypes you don't want to be related to the MT_PROFE? Manage relationship class rules topic from the ArcGIS Help says only to check Enable when you want to have a rule that allows them to be related. Removing the rule (by disabling it) should cause other relationships to create errors.

0 Kudos
PierreloupDucroix
Frequent Contributor

I tried it, but with the same result. I also tried to remove values for min/max on subtype side.

PierreloupDucroix_2-1746489101718.png

I did it this way the first time because I saw it in a Utility Network Foundation APRX, but I'm not sure what the best way to configure these rules is.

PierreloupDucroix_1-1746488883872.png

 

CEO of MAGIS
0 Kudos
PierreloupDucroix
Frequent Contributor

I tried in a local version of my geodatabase and it works well.

After setting up relationship rules, I get an error message :

feature MT_PROFE cannot be related to ElectricLine subtype BT câble because there is no relationship rule

I will log a case with Esri support

CEO of MAGIS
PierreloupDucroix
Frequent Contributor

FYI : BUG-000176986: Rules enabled on a relationship class are not being honored by the referenced Feature service published to ArcGIS Enterprise

CEO of MAGIS
0 Kudos