Missing information in json file (ago-assistant)

1353
4
12-12-2017 06:31 AM
Nicole_Ueberschär
Esri Regular Contributor

I found a spelling mistake in the alias of one of my feature layers after uploading it to AGOL and adding it to a web map. I thought, I can easily change this in the json file when opening it in ago-assistant. Buuuuut: When looking at my feature service I don't see any content in the data section. The description section looks good to me, but the data section only has {} - nothing! Looking at different feature services I found others that don't even have a data section. But some show the whole lot of field names, labels, ... all under popupInfo. This might be a different topic but I would expect to find the popupinfo definition to be stored in the web map and not in the Feature Service...

Can someone explain why the json does not show the expected information (field names and labels)?

Thanks in advance!

0 Kudos
4 Replies
CarmelConnolly
Esri Regular Contributor

Hi Nicole, 

What method did you use to upload the data to ArcGIS Online? Did you upload a csv by any chance?

From what I can see, information for a feature service in the data section only appears when something is saved to the layer, like symbology, pop up config, filters. If you shared a layer from ArcGIS Pro, information like symbology would be carried over, but a feature service created from a csv has nothing. 

Hope that helps!

Carmel

0 Kudos
Nicole_Ueberschär
Esri Regular Contributor

Hi Carmel, 

Thanks for looking into this. I uploaded my layers from ArcMap. 

They have all a symbology defined, not depending on an attribute though. 

I would have thought that even if imported from a csv file the attributes should be somewhere visible in the json. 

0 Kudos
KellyGerrow
Esri Frequent Contributor

Hi Nicole,

Pop ups and alias' for feature layers can be modified and stored in two places. It can be stored with the item or stored with the feature layer or stored in the web map properties. In most cases it shouldn't matter where your pop ups and symbology are stored, unless you want to re-use these settings in other web maps. 

Pop up information and alias' can be stored in the web map or with the layer item. If you modify the pop-up or alias' and save the changes with a layer, select the option to save layer in map viewer or the visualization tab.

You can see that the pop up info is stored for this feature layer with the item when you look at the item JSON:

http://www.arcgis.com/home/item.html?id=71e873caaf6c4c2984781018d92a5636   

http://www.arcgis.com/sharing/rest/content/items/71e873caaf6c4c2984781018d92a5636/data?f=pjson 

In this web map, I changed the alias's to all caps and stored the changes just with the web map, even though I am using the same item as the example above:

http://arcg.is/1W4uDj 

http://www.arcgis.com/sharing/rest/content/items/a1738ab64eba47549bff9867d6a8a6a6/data?f=pjson 

If you want to update a hosted Feature Services alias' at the server level, you will need to update the service definition through the update definition REST API call.

Feature Layer:

https://services5.arcgis.com/cuQhNeNcUrgLmYGD/arcgis/rest/services/AnimalTelemetry2005/FeatureServer...

If you are making maps in ArcGIS Online, I would recommend saving symbology changes and pop ups to the layer if you want them to be perpetuated through the organization or with the web map if they are a one time configuration. YOu really only need to update at the feature service if you are adding the feature service directly to an application without referencing the itemID (which ArcGIS Online does automatically for you).

-Kelly

Nicole_Ueberschär
Esri Regular Contributor

Thanks Kelly! I forgot about the option of updating the definition through the REST API. 

Thanks especially also for the clarifications on where the information is stored and the option of saving it to the layer itself. I haven't been aware of the Visualization tab yet!

0 Kudos