ERROR

Error 002901: Sharing related error during geo-processing (Unable to check if service exists

Last Published: March 15, 2023

Error Message

Attempts to upload a service definition file from ArcGIS Pro to ArcGIS Enterprise or ArcGIS Online using the Upload Service Definition tool fail, with the following error message returned:

Error:
Error 002901: Sharing related error during geo-processing (Unable to check if service exists.
The error message returned when attepting to upload a service definition

The error message is also returned when running the arcpy.server.UploadServiceDefinition or the MapImageSharingDraft function in ArcPy.

Cause

  • An incorrect federated server URL is specified in the Server parameter of the Upload Service Definition geoprocessing pane. In ArcPy functions, an incorrect federated server URL is specified in the federated_server_url variable.
  • An incorrect portal URL, username, or password is specified using the arcpy.SignInToPortal() function to sign in to the portal.

Solution or Workaround

Specify the correct federated server URL when sharing a service definition

The correct URL for the federated server can be found in Portal for ArcGIS by navigating to Organization > Settings > Servers under Administration URL. The URL format is as follows:

https://webadaptorhost.domain.com/webadaptorname/manager

Specify the correct SignInToPortal() portal URL, username and password

For ArcPy functions, the portal URL, username and password must be entered as follows:

arcpy.SignInToPortal("https://www.portal.domain.com/webadaptor", "MyUserName", "MyPassword", verify_cert=False)
Note:
The verify_cert parameter is inserted to bypass verification if a self-signed certificate is used. The parameter can be removed accordingly.

To reset login credentials for an account with a token generated or for the primary site administrator, refer to Portal for ArcGIS: Recovering the portal when no administrator accounts are available or Portal for ArcGIS: Reset password for instructions.

Article ID:000029487

Software:
  • ArcGIS Pro 2 x
  • Portal for ArcGIS
  • ArcGIS Server
  • ArcGIS Pro 3 0
  • ArcGIS Pro 2 8 x

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Related Information

Discover more on this topic