You are sharing a web layer, but the map or selected layers you are publishing does not include the type of source layer required. This error occurs when unsupported layers are excluded, leaving no remaining layers that can be published as the web layer type you chose.
The type of source layer required depends upon the type of web layer or capability you chose.
Web layer or capability | Required source layer type |
---|---|
Web feature layer | Feature layer |
Vector tile layer | Feature layer |
Web tile layer | Feature layer or raster layer |
Map image layer | Feature layer, raster layer, or stand-alone table |
| Feature layer |
| Raster layer |
| Feature layer or raster layer |
If you overwrite a map image layer that has additional layers and capabilities, a specific layer or data source may be required.
Only map image layers that reference registered data are supported when publishing data from cloud data warehouses.
The first <value> parameter is either map or selected layers. The second <value> parameter refers to the type of web layer.
Note:
Existing web layers are not a valid source for sharing as web layers. The exception is that a web feature layer can be published as a hosted web layer to an ArcGIS Enterprise 10.8 or later portal.Solutions
Do one of the following:
- Add a layer of the required type to the map.
- If you are sharing a vector tile layer, ensure that the layers in the map or selection are visible.
- If you are publishing data from a cloud data warehouse, you must share a map image layer that references registered data to ArcGIS Enterprise 10.9.1 or later.
More information
Only local data sources are supported for sharing. This error occurs when you try to share an existing web layer. (If a required layer type is present in addition to the web layer, the error does not occur. Instead, a warning is issued indicating the layer's data source is not supported.)
To view the source of the layer, click the List By Data Source tab in the Contents pane. Alternatively, right-click the layer in the Contents pane, click Properties , and click the Source tab on the Layer Properties dialog box.
For more information, see Analyze your GIS resource.