<?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: What determines feature layer order when publishing service from GDB upload? in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/what-determines-feature-layer-order-when/m-p/1595652#M64025</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/433798"&gt;@DavidTillberg_community&lt;/a&gt;&amp;nbsp;thanks for a prompt response. I have just checked arcpy.ListFeatureClasses() on the FGDB and the layer that I want to be at the bottom is correctly listed at the end as I specifically wrote my code to create that layer last.&amp;nbsp; But when I publish that FGDB to ArcGIS Enterprise (11.3) then the ordering is not honored, its totally different. Seems like a bug, or a different behavior to AGOL, which I havent tried.&lt;/P&gt;</description>
    <pubDate>Fri, 14 Mar 2025 16:35:26 GMT</pubDate>
    <dc:creator>SerjStol</dc:creator>
    <dc:date>2025-03-14T16:35:26Z</dc:date>
    <item>
      <title>What determines feature layer order when publishing service from GDB upload?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/what-determines-feature-layer-order-when/m-p/1082536#M41384</link>
      <description>&lt;P&gt;When publishing a service via GDB upload, I assumed feature layer order was determined by the alphanumeric sorting of GDB feature class names, but this does not seem to be the case. My GDB has 3 feature classes, a Point, and two Polygon feature classes. They are named:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"A" (Point)&lt;/P&gt;&lt;P&gt;"B" (Polygon)&lt;/P&gt;&lt;P&gt;"C" (Polygon)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I upload the GDB to publish the service, the resulting layers are in&amp;nbsp; B-C-A order. I want them to be in A-B-C order. How do I do that?&lt;/P&gt;</description>
      <pubDate>Sun, 25 Jul 2021 14:49:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/what-determines-feature-layer-order-when/m-p/1082536#M41384</guid>
      <dc:creator>GB_MattPanunto_GISS</dc:creator>
      <dc:date>2021-07-25T14:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: What determines feature layer order when publishing service from GDB upload?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/what-determines-feature-layer-order-when/m-p/1082608#M41387</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN class="UserName lia-user-name lia-user-rank-New-Contributor-III lia-component-message-view-widget-author-username"&gt;&lt;A href="https://community.esri.com/t5/user/viewprofilepage/user-id/187023" target="_self"&gt;&lt;SPAN class=""&gt;GB_MattPanunto_GISS&lt;/SPAN&gt;&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="UserName lia-user-name lia-user-rank-New-Contributor-III lia-component-message-view-widget-author-username"&gt;&lt;SPAN class=""&gt;Thank you for your question. Can you please provide an image of the described issue?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="UserName lia-user-name lia-user-rank-New-Contributor-III lia-component-message-view-widget-author-username"&gt;&lt;SPAN class=""&gt;It is expected that feature classes participating in a file geodatabase should be ordered alphanumerically. Have you double checked the names of each feature class to rule out the presence of any influencing factors (e.g. unexpected characters)?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="UserName lia-user-name lia-user-rank-New-Contributor-III lia-component-message-view-widget-author-username"&gt;&lt;SPAN class=""&gt;Regards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jul 2021 06:02:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/what-determines-feature-layer-order-when/m-p/1082608#M41387</guid>
      <dc:creator>MatthewBrown8</dc:creator>
      <dc:date>2021-07-26T06:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: What determines feature layer order when publishing service from GDB upload?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/what-determines-feature-layer-order-when/m-p/1082613#M41388</link>
      <description>&lt;P&gt;Here you go. The first image shows the GDB from within the Catalog Pane. While the second image shows the resulting service that is published by uploading this GDB to ArcGIS Online. There are no unexpected characters in the names of the GDB, or the feature classes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GDB.PNG" style="width: 154px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/19336i959108267FCA7EB1/image-size/large?v=v2&amp;amp;px=999" role="button" title="GDB.PNG" alt="GDB.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Service.PNG" style="width: 712px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/19337iC1C67866A0E17088/image-size/large?v=v2&amp;amp;px=999" role="button" title="Service.PNG" alt="Service.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jul 2021 06:24:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/what-determines-feature-layer-order-when/m-p/1082613#M41388</guid>
      <dc:creator>GB_MattPanunto_GISS</dc:creator>
      <dc:date>2021-07-26T06:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: What determines feature layer order when publishing service from GDB upload?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/what-determines-feature-layer-order-when/m-p/1082925#M41403</link>
      <description>&lt;P&gt;Thanks for providing further detail&amp;nbsp;&lt;A href="https://community.esri.com/t5/user/viewprofilepage/user-id/187023" target="_self"&gt;&lt;SPAN class=""&gt;GB_MattPanunto_GISS&lt;/SPAN&gt;&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;I performed a number of tests and was able to reproduce the described behavior. The results suggest that while feature layers stored within a file geodatabase adhere to alphanumeric ordering, when published to ArcGIS Online as a hosted feature layer, the layers are listed according to the order they were created in. This is further highlighted in the attached images, where layer 'F' was created before layer 'E'.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MatthewBrown8_2-1627357834472.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/19398i808287A862AD07AD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MatthewBrown8_2-1627357834472.png" alt="MatthewBrown8_2-1627357834472.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MatthewBrown8_0-1627356757442.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/19396iC4B3366C75DB78E5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MatthewBrown8_0-1627356757442.png" alt="MatthewBrown8_0-1627356757442.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jul 2021 03:48:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/what-determines-feature-layer-order-when/m-p/1082925#M41403</guid>
      <dc:creator>MatthewBrown8</dc:creator>
      <dc:date>2021-07-27T03:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: What determines feature layer order when publishing service from GDB upload?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/what-determines-feature-layer-order-when/m-p/1083375#M41438</link>
      <description>&lt;P&gt;Ahhh good sleuthing! Glad there is a way to resolve this issue. Can't help but wonder, is this working as intended?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 01:35:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/what-determines-feature-layer-order-when/m-p/1083375#M41438</guid>
      <dc:creator>GB_MattPanunto_GISS</dc:creator>
      <dc:date>2021-07-28T01:35:04Z</dc:date>
    </item>
    <item>
      <title>Re: What determines feature layer order when publishing service from GDB upload?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/what-determines-feature-layer-order-when/m-p/1084792#M41529</link>
      <description>&lt;P&gt;Following additional testing using ArcGIS Enterprise 10.7.1, I was unable to reproduce these results. As such, the observed behavior may be limited to ArcGIS Online.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Mon, 02 Aug 2021 01:06:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/what-determines-feature-layer-order-when/m-p/1084792#M41529</guid>
      <dc:creator>MatthewBrown8</dc:creator>
      <dc:date>2021-08-02T01:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: What determines feature layer order when publishing service from GDB upload?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/what-determines-feature-layer-order-when/m-p/1419834#M59089</link>
      <description>&lt;P&gt;Thank you for this.&amp;nbsp; I would add that the order of the service indices is also the same as returned by arcpy.ListFeatureClasses() for Feature Layers, continued by arcpy.ListTables() for tables, and that finally tables that define M -&amp;gt; M relationships are listed in order they were created.&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2024 12:08:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/what-determines-feature-layer-order-when/m-p/1419834#M59089</guid>
      <dc:creator>DavidTillberg_community</dc:creator>
      <dc:date>2024-05-07T12:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: What determines feature layer order when publishing service from GDB upload?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/what-determines-feature-layer-order-when/m-p/1595643#M64023</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/217052"&gt;@MatthewBrown8&lt;/a&gt;&amp;nbsp;Could you please clarify on what you mean by "the order they were created in". Is it when they were created in FGDB itself or when they were being published? Regardless of the order I create the layers in FGDB, when I publish to ArcGIS Enterprise via Pro or my GP tool, the ordering changes and is really frustrating as I want one specific layer to be at the bottom for specific use case.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2025 16:11:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/what-determines-feature-layer-order-when/m-p/1595643#M64023</guid>
      <dc:creator>SerjStol</dc:creator>
      <dc:date>2025-03-14T16:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: What determines feature layer order when publishing service from GDB upload?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/what-determines-feature-layer-order-when/m-p/1595645#M64024</link>
      <description>&lt;P&gt;The order they are created in the FGDB.&amp;nbsp; You can check the order by listing featureclasses/tables/relates.&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;The order of the service indices is the same as returned by arcpy.ListFeatureClasses() for Feature Layers, continued by arcpy.ListTables() for tables, and that finally tables that define M -&amp;gt; M relationships are listed in order they were created.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2025 16:20:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/what-determines-feature-layer-order-when/m-p/1595645#M64024</guid>
      <dc:creator>DavidTillberg_community</dc:creator>
      <dc:date>2025-03-14T16:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: What determines feature layer order when publishing service from GDB upload?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/what-determines-feature-layer-order-when/m-p/1595652#M64025</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/433798"&gt;@DavidTillberg_community&lt;/a&gt;&amp;nbsp;thanks for a prompt response. I have just checked arcpy.ListFeatureClasses() on the FGDB and the layer that I want to be at the bottom is correctly listed at the end as I specifically wrote my code to create that layer last.&amp;nbsp; But when I publish that FGDB to ArcGIS Enterprise (11.3) then the ordering is not honored, its totally different. Seems like a bug, or a different behavior to AGOL, which I havent tried.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2025 16:35:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/what-determines-feature-layer-order-when/m-p/1595652#M64025</guid>
      <dc:creator>SerjStol</dc:creator>
      <dc:date>2025-03-14T16:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: What determines feature layer order when publishing service from GDB upload?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/what-determines-feature-layer-order-when/m-p/1595657#M64026</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/433798"&gt;@DavidTillberg_community&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/217052"&gt;@MatthewBrown8&lt;/a&gt;&amp;nbsp;Ok I just tested uploading the same FGDB to AGOL and it DOES honor the layer creation order. So it seems that ArcGIS Enterprise (11.3 in my case) does not honor the same logic. We will raise this as a bug via my esri.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2025 16:47:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/what-determines-feature-layer-order-when/m-p/1595657#M64026</guid>
      <dc:creator>SerjStol</dc:creator>
      <dc:date>2025-03-14T16:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: What determines feature layer order when publishing service from GDB upload?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/what-determines-feature-layer-order-when/m-p/1595662#M64027</link>
      <description>&lt;P&gt;I only tested for ArcGIS online, not ArcGIS Enterprise.&amp;nbsp; I also only tested by publishing the FGDB directly to AGOL, not publishing using ArcGIS Pro.&amp;nbsp; I ended up deciding the only thing that could be trusted to be consistent was that you couldn't trust the layer index order publishing from an FGDB.&amp;nbsp; For me, I cared about the layer index because on a republish, I would have to repoint all those layers in a WebMap to the new layer index (+ path if a new service).&amp;nbsp; Instead of relying on layer indexes not changing, I wrote a process to take the layers of a Web Map, read the underlying service layers.&amp;nbsp; You can then tie this back to the layers of the GDB that was published because the feature service layer aliases match the aliases in the FGDB.&amp;nbsp; Then read the new feature service to get the matching between it and the FDGB using the same methods.&amp;nbsp;(If my updated data changed the alias, I made it so I could provide a custom dict of aliases mappings to translate/account for this.)&amp;nbsp; Once you can have both of those, you can reliably know what mappings from old layer url -&amp;gt; new layer url you need, because they should use the same featureclass or table.&amp;nbsp; Then you can use the arcgis python API to update the layers the WebMap is pointing to.&amp;nbsp; It was a lot of work, but now on republish I can quickly and accurately repoint all my layers when I create a new service, or update it, using an FGDB.&amp;nbsp; It doesn't work if change say a table to a featureclass, or visa versa though.&amp;nbsp; This stuff is still relatively new.&amp;nbsp; I am hopeful for the day when ESRI makes it so you can replace a service or layer, and it is smart enough to update all the references downstream as well.&amp;nbsp; All the properties are there for all a users items to do this I feel.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2025 16:59:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/what-determines-feature-layer-order-when/m-p/1595662#M64027</guid>
      <dc:creator>DavidTillberg_community</dc:creator>
      <dc:date>2025-03-14T16:59:03Z</dc:date>
    </item>
  </channel>
</rss>

