Select to view content in your preferred language

Handling n:m Relationships Between Utility Network Feature Classes and Standalone Tables

332
6
10-17-2025 09:32 AM
RoswithaLauterbach
Emerging Contributor

I want to create an N:M relationship between several UN feature classes and a standalone table. I started in a local FGDB  (ArcGIS Pro 3.5.3) to create the relationship classes (based on globalid) and made some connections. Afterwards, I exported the AssetPackage and deployed it to ArcGIS Enterprise 11.5. Now I encounter some issues:

  1. In the exported Assetpackage, I noticed that the relationships are still present, but all actual relationships disappeared (I have the feeling that this is due to the fact that the table is not part of the UN FDS. However, it seems that it is not possible to create a table inside a FDS).
  2. In the deployed UtilityNetwork, even the relationship classes themselves are not created.  

Could you clarify whether n:m relationship classes between UN features and tables are currently supported? Does anyone has an idea what I could do to overcome this issue?    

0 Kudos
6 Replies
gis_KIWI4
Frequent Contributor

@RoswithaLauterbach - I created a relationship class and table with our deployed UN as a test and it worked for me. 

gis_KIWI4_0-1760768100748.png

I can see the related data in ArcGIS Pro. 

gis_KIWI4_1-1760768230162.png

I am certain we can create additional tables and relationship classes post deployment and it works as intended as long as they relationship class is included in the map that is used to publish the service.

Something that caught me out was not including the relationship feature class while publishing the service.

Hope this helps 🙂  

 

 

 

0 Kudos
RoswithaLauterbach
Emerging Contributor

@gis_KIWI4 did you try exporting this as Assetpackage and re-deploy it? As long as I stay in a deployed UN, it works fine for me as well. 

0 Kudos
PierreloupDucroix
Frequent Contributor

Hello,

I used relationship classes in a mobile geodatabase, then exported them as an asset package and imported them into an enterprise geodatabase without errors.

Make sure you use the correct option in the asset package export toolbox, either the second or third:

PierreloupDucroix_0-1761194588802.png

 

CEO of MAGIS
gis_KIWI4
Frequent Contributor

@RoswithaLauterbach - Apologies, I didn't get a chance to test it but what @PierreloupDucroix has suggested should work 🙂 

0 Kudos
RoswithaLauterbach
Emerging Contributor

I found a workaround. Export AssetPackage still steals me the actual links between 2 classes. But I created them by script again in the exported Assetpackage. 

I was also today years old when I learnt that n:m relationships must be part of the map to publish a feature service to be properly read out in an Enterprise environment. Thats why assumingly I didnt see data after deployment. In fact the data was in the SDE database but not part of the feature service. 

Thanks for all replies & helps anyway! 

RobertKrisher
Esri Regular Contributor

@RoswithaLauterbach ah, that makes sense that the relationship wasn't showing up if you weren't including the M:N relationship in the map. M:N relationships, or any other form of attributed relationship, use a table to represent the related data. If it's not included in the service, then the application can't access the table that tells it which features are related.

0 Kudos