Web feature and vector tile layers require a feature layer be present in the map, layer, or layers being shared. Web tile and map image layers require either a feature layer or a raster layer be present in the map, layer, or layers being shared.
The first value parameter refers to the map or selected layers being shared. The second value parameter refers to the type of web layer being shared.
Add the required layer type to your map.
A layer represents geographic data, such as a particular theme of data. Examples of map layers include streams and lakes, terrain, roads, political boundaries, parcels, building footprints, utility lines, and orthophoto imagery. Some layers represent a particular type of geographic feature, while others represent a particular type of data. Each layer type has different mechanisms for displaying and symbolizing its contents and specific operations that you will perform with them.
Only local data sources are supported when sharing web layers because a web layer cannot contain web layers. For example, this analyzer will be triggered if your map only contains a web feature layer and you are sharing a web tile layer.