So this continues to be a problem for us. We publish a web layer to our Portal and then when we try to republish our layer we receive the follow error: Web Layer does not have a valid server connection and cannot be overwritten.


The problem appears to be that when the data source link to ArcGIS Server is first created in portal for the service it uses the following format:
https://<arcgis-server>/arcgis/rest/services/<name-of-service>/MapServer
In order for this service to be overwritten the port for the service needs to be included e.g.
https://<arcgis-server>:6443/arcgis/rest/services/<name-of-service>/MapServer
Does anyone know if this problem with our web adaptor setup or something else we have configured that is causing this issue? Thanks.