004167: <value> parameter is not supported for a service definition staged to overwrite an existing service.

Description

The Item ID parameter cannot be used when uploading a service definition that is set to overwrite an existing service.

The first <value> parameter refers to Item ID.

Note:

You may encounter this geoprocessing error when running the Upload Service Definition tool in Python; it does not appear when using the Geoprocessing pane.

Solution

Remove the item ID parameter; the service will use the item ID of the existing service it is overwriting. If no existing service is found on the server, an item ID will be automatically assigned.

Alternatively, create a service definition file that is not set to overwrite an existing service.

See Upload Service Definition for more information.