It would be good when publishing a layer or layers to Portal for ArcGIS from ArcGIS Pro that the 'Analyze' function checks for the existence of layer names. Currently, if a layer has the same name the Analyze function gives the all clear and it is not until you 'Share' that you get the error.