004170: <value> parameter is not supported for your service type.
Description
The item ID value is only supported when sharing the following types of layers to the corresponding ArcGIS Enterprise versions:
Web feature layer that copies all data—ArcGIS Enterprise 10.8.1 or later
Web tile layer—ArcGIS Enterprise 10.8.1 or later
Map image layer—ArcGIS Enterprise 11.2 or later
Web feature layer that references registered data—ArcGIS Enterprise 11.2 or later
OGC feature layer—ArcGIS Enterprise 11.2 or later
WMS service layer—ArcGIS Enterprise 11.2 or later
WFS service layer—ArcGIS Enterprise 11.2 or later
Solution
Remove the item ID parameter; an ID will be automatically assigned.