Hi there,
I have a AGOL WebApp based on an AGOL Webmap that consumes an internal AGS service. I have pop ups configure for most of the layers in the WebApp.
As this is dynamic project, the service gets updated once in a while with a new layer. Whenever doing this, the new layer is properly visible in the WebApp - BUT all configured pop ups in AGOL (that are listed below the new layer in the TOC of the service mxd) gets mixed up and I have to configure them all again. Pretty annoying and time consuming job. It seems that the pop ups have a connection to the layer id of the service (which might change when you add anew layer to a service).
Has someone experienced the same issue and probably found a workaround/solution?
Thanks a lot and kind regards
Felix
maybe is better to set the layer ids on the mxd to be static
Set up the map document to preserve layer and table IDs
see here Map authoring considerations—Documentation | ArcGIS for Server
Dear Panagiotis,
thanks for the quick reply - good hint!
I am wondering if you have any experience in setting the layer id's initially with a arcpy script. I have found out to get the layer id's using describe, but haven't found a way to set these with arcpy..
Thanks
Felix
According to the following link How is it possible to set a layer or table ID with arcpy (ArcGIS 10.3.1)? it is not possible.