Select to view content in your preferred language

Relationship classes in Map Service

3659
10
01-05-2022 12:31 PM
KellyKnapp35
Occasional Contributor

A year ago, I published a map with 6 layers related to a non-spatial table from ArcMap to a hosted server.  Data is in a SDE geodatabase with relationship classes. 

KellyKnapp35_3-1641412804139.png

A year later, I imported that map into ArcGIS Pro and made some updates.  I accidentally deleted a Relationship Class, so I had to recreate them all.  I published to our AGOL Feature/Map Services Server (not hosted).

Now when I query the map in my web app, the related layers are displayed in a different order that makes no sense for this data.  It looks like something happened to them when I published.

KellyKnapp35_4-1641412804140.png

I tried to delete the Relationship Classes, recreate them in the order I want and republish.  I still get the relationships in a random order.  I want them to be in sequential order by layer 0, 1, 2, 3, 4, 5...  I can't figure out why they would've changed from one publishing to the next.

Is this due to publishing one to a hosted server vs. AGOL server?  Is there a way to publish them in sequential order?  Or force the related layers to be displayed in a different order? 

Any suggestions would be appreciated! 

10 Replies
MatthewStull1
Frequent Contributor

I know this is an old thread but I'm having the same issue.  We have an integration with another system and republishing the map service is changing the ID's of the relationship classes in the feature service and thus breaking that part of our integration.  Anyway, it looks like this issue has been addressed with ArcGIS Server/Enterprise 11.3: Relationships (Feature Service) | ArcGIS REST APIs | Esri Developer  I haven't tested this yet but we may be moving to this version soon.

0 Kudos