Select to view content in your preferred language

Change the order of Feature Service Fields

1056
2
Jump to solution
10-19-2023 02:34 PM
Labels (1)
BrandonA_CDPH
Frequent Contributor

I have looked online and cannot find an answer. Is there a way to simply reorder the fields in a Feature Service? I have a Feature Service that is exported to an Excel document, then further processed. The order of the fields is important for the next processing step. I now need to add a field to the service. When the data is exported, the field is at the end of the table. I need the field to be between two existing fields.

Short of republishing the whole feature service (and messing with the forms and dashboards associated with it), is there a way to reorder the fields in the service (and not just the visualization, the actual table). 

 

Thank you.

0 Kudos
1 Solution

Accepted Solutions
MiguelParedes
Esri Contributor

Greetings @BrandonA_CDPH 

Unfortunately, the short answer is no.  

There are ways of changing the field order in ArcGIS Online, as described in Is it possible to reorder field columns in the attribute table in Map Viewer Classic of ArcGIS Onlin...but what you want is to reorder the fields in the actual service which cannot be accomplished, as far as I know, unless you reorder the fields in the attribute table of the data source using a method such as described in Permanently reorder fields in a feature class using the Export Features tool in ArcGIS Pro and republishing the service to ArcGIS Online.

I hope the above is of some assistance.

Miguel

View solution in original post

2 Replies
MiguelParedes
Esri Contributor

Greetings @BrandonA_CDPH 

Unfortunately, the short answer is no.  

There are ways of changing the field order in ArcGIS Online, as described in Is it possible to reorder field columns in the attribute table in Map Viewer Classic of ArcGIS Onlin...but what you want is to reorder the fields in the actual service which cannot be accomplished, as far as I know, unless you reorder the fields in the attribute table of the data source using a method such as described in Permanently reorder fields in a feature class using the Export Features tool in ArcGIS Pro and republishing the service to ArcGIS Online.

I hope the above is of some assistance.

Miguel
BrandonA_CDPH
Frequent Contributor

Thank you, Miguel.  I appreciate the confirmation that there isn't a real clean way of doing this. I will assess further if the workarounds will work for this project. Seems like something easy to implement, but I'm no computer programmer, so maybe it's not as straightforward as it seems.  

Brandon

PS If changing the order of fields in a feature service without republishing the service is something you also want to see, please go to this link and vote up the idea. While you're there, add in your own use case. The more we can say this is something we need, the more likely it is to get implemented. Thanks. Change order of Feature Service Fields - Esri Community

0 Kudos