Select to view content in your preferred language

Feature service fields not displaying correctly?

1190
8
Jump to solution
04-05-2018 09:38 PM
CoraColeman
Regular Contributor

I had edited the field names for two layers and then shared them as hosted feature services. The names are correctly changed on the Data description page on my ArcGIS Online content page however when I reference the feature service in my app to display the attributes, the fields are unchanged? How could this be?

0 Kudos
1 Solution

Accepted Solutions
CoraColeman
Regular Contributor

So it looks like I have changed the Alias but the original name for the field cannot change  unless you create a new field with a new name and copy the old data to that field. 

View solution in original post

0 Kudos
8 Replies
shan_sarkar
Frequent Contributor

Cora,

If you consume the same feature service in a web map in AGOL does it show the new updated field names?

~Shan


~Shan
0 Kudos
CoraColeman
Regular Contributor

Yes they show up fine online, just not in the app when I reference the service feature tables I have hosted online. I am showing the attributes in a popup but for some reason the fields have not been updated; other things have been updated though, like the size of the symbols, so I'm unsure why the fields are not updated too? 

0 Kudos
RobertBorchert
Honored Contributor

It is most likely displaying the Alias.  Did you change the Alias as well

0 Kudos
CoraColeman
Regular Contributor

I am unfamiliar with this concept, what is the Alias and how can I change it?

0 Kudos
shan_sarkar
Frequent Contributor

Every field in any table has 2 types of names.

Field Name: - This is the actual name of the field which will be used for any query of conditional statements.

Alias Field Name:- This particular name is used primarily for displaying purpose.

Refer Understanding field properties, aliases, and table display options—Help | ArcGIS Desktop 

~Shan


~Shan
CoraColeman
Regular Contributor

So it looks like I have changed the Alias but the original name for the field cannot change  unless you create a new field with a new name and copy the old data to that field. 

0 Kudos
shan_sarkar
Frequent Contributor

Yes, that is the correct approach. You need to create a Add Field—Help | ArcGIS Desktop which fulfills your requirement and then Using the Calculate Field tool—Help | ArcGIS Desktop to populate the correct data in the new field.

You will have to restart the service so that the new field is visible in the service.

I hope this helps!

~Shan


~Shan
shan_sarkar
Frequent Contributor

coracoleman14‌ if this resolved your issue, I'd suggest you to mark this as resolved.


~Shan
0 Kudos