Your data frame contains layers that share the same name and you are attempting to publish one of the following:
- WFS capable map service
- WCS capable map service
- WMS capable map service with the option to use names to identify layers within the WMS capabilities instead of integers
- Change layer names so that each is unique within your data frame.
- Or, if you are publishing a WMS capable map service, you can use zero-based integers to identify layers. Follow these steps:
- From the Service Description Editor, select WMS from the left column.
- Scroll down to the bottom of the Properties window.
- Uncheck the Use layer names from the map document option.
- Click OK to apply your settings.
WFS and WCS capable map services always use the layer name. WFS and WCS capable map services cannot be published if layers within a single data frame share the same name. You will need to change layer names to ensure that they are unique.
This also applies to a WMS capable map service that uses layer names to identify layers. You have the option to represent layers in the WMS capabilities as zero-based integers or by using the layer name strings used in the map document’s table of contents. The default is to use zero-based integers. If you chose to use layer names, you cannot have two or more layers in the map document sharing the same name. This restriction does not apply to the names of group layers.