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 :
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 :
I tried to restart and even republish web service.
Any idea ?
Solved! Go to Solution.
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
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.
I tried it, but with the same result. I also tried to remove values for min/max on subtype side.
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.
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
FYI : BUG-000176986: Rules enabled on a relationship class are not being honored by the referenced Feature service published to ArcGIS Enterprise