<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Relationship classes in Map Service in Publishing and Managing Services Questions</title>
    <link>https://community.esri.com/t5/publishing-and-managing-services-questions/relationship-classes-in-map-service/m-p/1669984#M1502</link>
    <description>&lt;P&gt;Thanks&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/304962"&gt;@MatthewStull1&lt;/a&gt;&amp;nbsp;for adding your note here. You are right, this is fixed for both map service and feature service in 11.3.&lt;/P&gt;&lt;P&gt;Once you have both sides of a relates in your map in Pro, if you open the layer/table's Properties page and go to Relates tab, you will see an option to provide user defined ids for relationships.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TanuHoque_0-1764727092253.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/144725i254F2A8E0E148FB6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TanuHoque_0-1764727092253.png" alt="TanuHoque_0-1764727092253.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: please note that we have an issue -- if you already have 'allow assignment of unique ids...' option checked at the map level, and you added the layers/tables; you might not see this option; You need to reset (&lt;EM&gt;or toggle it if you wanted to preserve your already assigned layer ids&lt;/EM&gt;) that at the map level to see this text box to enter your desired id.&lt;/P&gt;&lt;P&gt;We apologies for this issue; we are hoping to fix this issue in a future release.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Wed, 03 Dec 2025 02:02:31 GMT</pubDate>
    <dc:creator>TanuHoque</dc:creator>
    <dc:date>2025-12-03T02:02:31Z</dc:date>
    <item>
      <title>Relationship classes in Map Service</title>
      <link>https://community.esri.com/t5/publishing-and-managing-services-questions/relationship-classes-in-map-service/m-p/1130994#M597</link>
      <description>&lt;P&gt;A year ago, I published a map with 6 layers related to a non-spatial table from ArcMap to a hosted server.&amp;nbsp; Data is in a SDE geodatabase with relationship classes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KellyKnapp35_3-1641412804139.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/30870iCED1D80F166B0F77/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KellyKnapp35_3-1641412804139.png" alt="KellyKnapp35_3-1641412804139.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;A year later, I imported that map into ArcGIS Pro and made some updates.&amp;nbsp; I accidentally deleted a Relationship Class, so I had to recreate them all.&amp;nbsp; I published to our AGOL Feature/Map Services Server (not hosted).&lt;/P&gt;&lt;P&gt;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.&amp;nbsp; It looks like something happened to them when I published.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KellyKnapp35_4-1641412804140.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/30872iAD3B1D41E777D069/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KellyKnapp35_4-1641412804140.png" alt="KellyKnapp35_4-1641412804140.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I tried to delete the Relationship Classes, recreate them in the order I want and republish.&amp;nbsp; I still get the relationships in a random order.&amp;nbsp; I want them to be in sequential order by layer 0, 1, 2, 3, 4, 5...&amp;nbsp; I can't figure out why they would've changed from one publishing to the next.&lt;/P&gt;&lt;P&gt;Is this due to publishing one to a hosted server vs. AGOL server? &amp;nbsp;Is there a way to publish them in sequential order?&amp;nbsp; Or force the related layers to be displayed in a different order?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions would be appreciated!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jan 2022 20:31:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/publishing-and-managing-services-questions/relationship-classes-in-map-service/m-p/1130994#M597</guid>
      <dc:creator>KellyKnapp35</dc:creator>
      <dc:date>2022-01-05T20:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: Relationship classes in Map Service</title>
      <link>https://community.esri.com/t5/publishing-and-managing-services-questions/relationship-classes-in-map-service/m-p/1131058#M598</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/113529"&gt;@KellyKnapp35&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- If you talking about the 'relationship IDs' (that is what we are seeing on the &lt;STRONG&gt;left&lt;/STRONG&gt; side of '--' in your screenshots), then unfortunately we don't have any option at this point to support this. We do have plan to do that. Here is the bug id - ENH-000127465. Please contact Esri support and add your use case in that.&lt;/P&gt;&lt;P&gt;Just curious, are these new ids causing any problem while you are using your service in a webmap/app?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- But if you are talking about 'layer IDs' (&lt;EM&gt;that is showing up on the &lt;STRONG&gt;right&lt;/STRONG&gt; side of '--' in your screenshots&lt;/EM&gt;), you can fix them. Here is the doc that shows you how to.&lt;BR /&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/sharing/overview/assign-layer-ids.htm#ESRI_SECTION1_11B19A48477F49FDBD61038AE0B851B2" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/help/sharing/overview/assign-layer-ids.htm#ESRI_SECTION1_11B19A48477F49FDBD61038AE0B851B2&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 00:37:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/publishing-and-managing-services-questions/relationship-classes-in-map-service/m-p/1131058#M598</guid>
      <dc:creator>TanuHoque</dc:creator>
      <dc:date>2022-01-06T00:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: Relationship classes in Map Service</title>
      <link>https://community.esri.com/t5/publishing-and-managing-services-questions/relationship-classes-in-map-service/m-p/1131317#M599</link>
      <description>&lt;P&gt;Thank you &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2620"&gt;@TanuHoque&lt;/a&gt;&amp;nbsp; for your response!&amp;nbsp; Unfortunately, I was talking about the relationship IDs.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Functionally there is no issue because I had to reconfigure my Query in my application to query the new Map Image.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My issue is with the Query Results list under Feature Actions.&amp;nbsp; Now when “Show All Related Records” is selected, it is in this &lt;STRONG&gt;random&lt;/STRONG&gt; order.&amp;nbsp; I would like it to match the layer order in the map (which is also sub grouped by geometry type).&lt;/P&gt;&lt;P&gt;Is there no work around?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried: Delete all relationship classes, recreate them in the desired order, create new map, add layers and table and publish.&amp;nbsp; That did not work.&lt;/P&gt;&lt;P&gt;I may try deleting the related table.&amp;nbsp; Recreate it, relationships, new map, etc.. it might be the only way?&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 18:55:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/publishing-and-managing-services-questions/relationship-classes-in-map-service/m-p/1131317#M599</guid>
      <dc:creator>KellyKnapp35</dc:creator>
      <dc:date>2022-01-06T18:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: Relationship classes in Map Service</title>
      <link>https://community.esri.com/t5/publishing-and-managing-services-questions/relationship-classes-in-map-service/m-p/1131321#M600</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2620"&gt;@TanuHoque&lt;/a&gt;&amp;nbsp; One other related question.&amp;nbsp; Is there any way to rename the layers in the "Show All Related Records" drop down list? or show an Alias Name?&amp;nbsp; &amp;nbsp;It appears whatever the layers are named when the Map Image is published is what is shown.&lt;/P&gt;&lt;P&gt;It would be nice to be able to edit the layers with a more descriptive name &lt;STRONG&gt;within the application.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KellyKnapp35_0-1641495639198.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/30935i8B0603B6E4E6C620/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KellyKnapp35_0-1641495639198.png" alt="KellyKnapp35_0-1641495639198.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 19:03:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/publishing-and-managing-services-questions/relationship-classes-in-map-service/m-p/1131321#M600</guid>
      <dc:creator>KellyKnapp35</dc:creator>
      <dc:date>2022-01-06T19:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: Relationship classes in Map Service</title>
      <link>https://community.esri.com/t5/publishing-and-managing-services-questions/relationship-classes-in-map-service/m-p/1167738#M694</link>
      <description>&lt;P&gt;I think I'm having the same issue as&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/113529"&gt;@KellyKnapp35&lt;/a&gt;,&amp;nbsp;if I'm understanding the issue correctly...&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are we saying that the relationship IDs are randomly assigned?&lt;/P&gt;&lt;P&gt;For me, here is the issue I'm having...&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Publish service with relationships&lt;/LI&gt;&lt;LI&gt;Build web map/app with smart editor widget&lt;/LI&gt;&lt;LI&gt;Republish service (layers stayed in same order)&lt;/LI&gt;&lt;LI&gt;Widget doesn't work...&lt;OL&gt;&lt;LI&gt;looking into the widget, I see that the relationship IDs the widget is expecting are different than in the service.&amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Question - is it possible that when I republished the service the relationship IDs changed? And/Or - What determines the relationship ID?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 21:41:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/publishing-and-managing-services-questions/relationship-classes-in-map-service/m-p/1167738#M694</guid>
      <dc:creator>DaveThompson101</dc:creator>
      <dc:date>2022-04-25T21:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: Relationship classes in Map Service</title>
      <link>https://community.esri.com/t5/publishing-and-managing-services-questions/relationship-classes-in-map-service/m-p/1171251#M700</link>
      <description>&lt;P&gt;Having these same issues. Just wanted to add another comment to grow this thread. It would be nice if there was a solution.&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 19:14:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/publishing-and-managing-services-questions/relationship-classes-in-map-service/m-p/1171251#M700</guid>
      <dc:creator>LanceKirby2</dc:creator>
      <dc:date>2022-05-05T19:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: Relationship classes in Map Service</title>
      <link>https://community.esri.com/t5/publishing-and-managing-services-questions/relationship-classes-in-map-service/m-p/1238739#M854</link>
      <description>&lt;P&gt;Hey all,&lt;/P&gt;&lt;P&gt;I am having the same Issue in an even more advanced way. The relationship Id's change in a non detectable pattern (so far) even so the service is not republished. Just out of no where and the attached workflow does not work anymore afterwards, because:&lt;/P&gt;&lt;P&gt;the query related records tool does seem to follow the old order of the relationship id's (1,2,3,4) even though the order changed to 1,2,4,3 in the layer. A restart on the service does help to restore the order of the relationship class id's. But since this behaviour occurs on an regular basis this is no long term solution.&lt;/P&gt;&lt;P&gt;I also would be interested to know the answer to the question @DavidThompson101 asked.&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2620"&gt;@TanuHoque&lt;/a&gt;: Any ideas?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 15:17:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/publishing-and-managing-services-questions/relationship-classes-in-map-service/m-p/1238739#M854</guid>
      <dc:creator>MareikeKociok</dc:creator>
      <dc:date>2022-12-07T15:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: Relationship classes in Map Service</title>
      <link>https://community.esri.com/t5/publishing-and-managing-services-questions/relationship-classes-in-map-service/m-p/1238740#M855</link>
      <description>&lt;P&gt;Additonally the mentioned Enhancement has the status Implemented: &lt;A href="https://support.esri.com/en/bugs/nimbus/RU5ILTAwMDEyNzQ2NQ==#" target="_blank"&gt;https://support.esri.com/en/bugs/nimbus/RU5ILTAwMDEyNzQ2NQ==#&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But i could not find any information about how this is implemented.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 15:19:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/publishing-and-managing-services-questions/relationship-classes-in-map-service/m-p/1238740#M855</guid>
      <dc:creator>MareikeKociok</dc:creator>
      <dc:date>2022-12-07T15:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Relationship classes in Map Service</title>
      <link>https://community.esri.com/t5/publishing-and-managing-services-questions/relationship-classes-in-map-service/m-p/1238756#M856</link>
      <description>&lt;P&gt;If you upgrade Pro to 3.0 or greater you can specify the Id of each layer in a service before publishing. They then wouldn’t change any time you re publish.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know that doesn’t resolve your issue since you mention you haven’t republished, but I think it’s the answer to the bug you referenced and the answer to the original thread.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 15:44:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/publishing-and-managing-services-questions/relationship-classes-in-map-service/m-p/1238756#M856</guid>
      <dc:creator>LanceKirby2</dc:creator>
      <dc:date>2022-12-07T15:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: Relationship classes in Map Service</title>
      <link>https://community.esri.com/t5/publishing-and-managing-services-questions/relationship-classes-in-map-service/m-p/1240093#M859</link>
      <description>&lt;P&gt;Helle &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/325832"&gt;@LanceKirby2&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;Thanks for your feedback. I tried it out and this actually does already work in ArcGIS Pro 2.9. Unfortunately, this id defines the table id, rather than the Relationship class Id.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MareikeKociok_0-1670848236150.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/58268iDB979E22395F0EDE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MareikeKociok_0-1670848236150.png" alt="MareikeKociok_0-1670848236150.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In in my scenario the id of the relationship class (number on the left), does change and i would like to adjust the numbers. Anyone who knows how this can me made possible?&lt;/P&gt;&lt;P&gt;Thanks in advanced for your help.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 12:32:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/publishing-and-managing-services-questions/relationship-classes-in-map-service/m-p/1240093#M859</guid>
      <dc:creator>MareikeKociok</dc:creator>
      <dc:date>2022-12-12T12:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: Relationship classes in Map Service</title>
      <link>https://community.esri.com/t5/publishing-and-managing-services-questions/relationship-classes-in-map-service/m-p/1669460#M1501</link>
      <description>&lt;P&gt;I know this is an old thread but I'm having the same issue.&amp;nbsp; 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.&amp;nbsp; Anyway, it looks like this issue has been addressed with ArcGIS Server/Enterprise 11.3:&amp;nbsp;&lt;A href="https://developers.arcgis.com/rest/services-reference/enterprise/relationships-feature-service/" target="_blank" rel="noopener"&gt;Relationships (Feature Service) | ArcGIS REST APIs | Esri Developer&lt;/A&gt;&amp;nbsp; I haven't tested this yet but we may be moving to this version soon.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Dec 2025 22:26:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/publishing-and-managing-services-questions/relationship-classes-in-map-service/m-p/1669460#M1501</guid>
      <dc:creator>MatthewStull1</dc:creator>
      <dc:date>2025-12-01T22:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: Relationship classes in Map Service</title>
      <link>https://community.esri.com/t5/publishing-and-managing-services-questions/relationship-classes-in-map-service/m-p/1669984#M1502</link>
      <description>&lt;P&gt;Thanks&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/304962"&gt;@MatthewStull1&lt;/a&gt;&amp;nbsp;for adding your note here. You are right, this is fixed for both map service and feature service in 11.3.&lt;/P&gt;&lt;P&gt;Once you have both sides of a relates in your map in Pro, if you open the layer/table's Properties page and go to Relates tab, you will see an option to provide user defined ids for relationships.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TanuHoque_0-1764727092253.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/144725i254F2A8E0E148FB6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TanuHoque_0-1764727092253.png" alt="TanuHoque_0-1764727092253.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: please note that we have an issue -- if you already have 'allow assignment of unique ids...' option checked at the map level, and you added the layers/tables; you might not see this option; You need to reset (&lt;EM&gt;or toggle it if you wanted to preserve your already assigned layer ids&lt;/EM&gt;) that at the map level to see this text box to enter your desired id.&lt;/P&gt;&lt;P&gt;We apologies for this issue; we are hoping to fix this issue in a future release.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 03 Dec 2025 02:02:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/publishing-and-managing-services-questions/relationship-classes-in-map-service/m-p/1669984#M1502</guid>
      <dc:creator>TanuHoque</dc:creator>
      <dc:date>2025-12-03T02:02:31Z</dc:date>
    </item>
  </channel>
</rss>

