002760: This service definition file was created for a hosted layer and must be uploaded directly to a portal using the portal website or ArcMap .

Description

The service definition file was created for a hosted layer on an ArcGIS Online or ArcGIS Enterprise portal. It cannot be uploaded to ArcGIS Server.

Solution

Either upload your service definition file directly to a portal using the portal website or ArcMap, or create a service definition file for ArcGIS Server and upload it directly to an ArcGIS Server site through ArcGIS Server Manager or ArcMap.