Select to view content in your preferred language

What determines feature layer order when publishing service from GDB upload?

2486
11
Jump to solution
07-25-2021 07:49 AM
GB_MattPanunto_GISS
Frequent Contributor

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:

 

"A" (Point)

"B" (Polygon)

"C" (Polygon)

 

When I upload the GDB to publish the service, the resulting layers are in  B-C-A order. I want them to be in A-B-C order. How do I do that?

0 Kudos
11 Replies
MatthewBrown8
Esri Contributor

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.

Regards,

Matthew
DavidTillberg_community
Occasional Contributor

Thank you for this.  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 -> M relationships are listed in order they were created.

0 Kudos