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:
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?
@RoswithaLauterbach - I created a relationship class and table with our deployed UN as a test and it worked for me.
I can see the related data in ArcGIS Pro.
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 🙂
@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.
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:
@RoswithaLauterbach - Apologies, I didn't get a chance to test it but what @PierreloupDucroix has suggested should work 🙂
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!
@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.