English

Error: Unable to reach the server where the service is. Consider using calling deleteItem with options = { 'force' : true } if the server won't be available anymore

Error Message

Attempting to delete a detached item in the My Content tab in Portal for ArcGIS returns the following error message:

Error:   
Unable to reach the server where the service is. Consider using calling deleteItem with options = { 'force' : true } if the server won't be available anymore.
Image showing the error message

Cause

The error occurs when Portal for ArcGIS is unable to reach the server hosting the service of the detached item. Described below are potential causes for this issue:

  • Common certificate issue, for example, a mismatch in certificate name of the elements of the federated environment: Portal for ArcGIS, ArcGIS Server, and IIS Web Server
  • A mismatch in the Service URL and Administration URL during configuration setting in federation

Solution or Workaround

Instead of re-configuring the connection between Portal for ArcGIS and the server, users may opt to force delete the detached item using the deleteItem operation in the Portal REST API directories. To do so, refer to the workflow described below:

Note:
Only administrators have the privileges to perform the steps below.
  1. Obtain the item ID of the detached item.
    1. Navigate to the following URL:
https://<Portal URL>/sharing/rest/content/users/<username>
  1. In the User Content section, click the ID - Title of the detached item.
A screenshot of the User Content section
  1. In the User Item section, copy the item ID.
A screenshot of the User Item section
  1. Navigate to the following URL, after inserting the item ID copied from step 1 between items and delete, as shown below.
https://<Portal URL>/sharing/rest/content/users/<username>/items/<itemid>/delete
  1. Check the Force deletion? check box, and click Delete Item.
An image of the Delete Item box.
The detached item is deleted.

Related Information

Last Published: 4/27/2021

Article ID: 000020655

Software: ArcGIS Data Store 10.6.1, 10.6 Portal for ArcGIS 10.6.1, 10.6 ArcGIS Web Adaptor (IIS) 10.9, 10.8.1, 10.8, 10.7.1, 10.7, 10.6.1, 10.6, 10.5.1, 10.5, 10.4.1, 10.4, 10.3.1, 10.3, 10.2.2, 10.2.1, 10.2, 10.1