Description
When attempting to publish a web map from ArcGIS Pro to the ArcGIS Enterprise portal, the process fails to complete, and the following error message is returned:
Error:
Connection Error: Cannot connect to the server
Cause
The Service and Administration URL do not match the server's Web Adaptor and port URL.
Solution or Workaround
Update the Service and Administration URL in the ArcGIS Portal Directory REST API.
- Navigate to the ArcGIS Portal Directory REST API and log in as an administrator.
- In Org ID, click the organization ID link and scroll down. In Child Resources, click Servers.
- Select the affected server from the list and click Update Server.
- In the Update Server pane, fill in the following values:
- For Name, specify the domain name.
- For URL, specify the Service URL of the server.
https://<domain-name>/<webadaptor-name>
- For Is Hosted, select True.
- For Server Type, specify ArcGIS.
- For Admin URL, specify the Server Admin URL.
https://<domain-name>:6443/arcgis
- Click Update.
- Return to the ArcGIS Enterprise portal home.
- Navigate to Organization > Settings > Servers, and click Validate server sites.