laptop and a wrench

Bug

Unable to publish a geoprocessing service referencing a Python script that includes a variable with the value of Portal for ArcGIS URL.

ArcGIS Pro
Bug ID Number BUG-000159968
SubmittedJuly 19, 2023
Last ModifiedJune 1, 2025
Applies toArcGIS Pro
Version found3.1
Operating SystemN/A
Operating System VersionN/A
Version Fixed3.20
StatusFixed

Additional Information

This issue is not reproducible in ArcGIS Pro 3.2.

Workaround

Use the replace() method in the Python script:

portalURL = "https??hostname.domian.com?portal"
portalURL = portalURL.replace('??', '://')
portalURL = portalURL.replace('?', '/')
gis = GIS(portalURL)

Steps to Reproduce

Bug ID: BUG-000159968

Software:

  • ArcGIS Pro

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options