laptop and a wrench

Error

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

ArcGIS Pro
Número de ID del error BUG-000159968
EnviadoJuly 19, 2023
Última modificaciónJune 1, 2025
Relacionado conArcGIS Pro
Versión encontrada3.1
Sistema operativoN/A
Versión de sistema operativoN/A
Versión corregida3.20
EstadoFixed

Información adicional

This issue is not reproducible in ArcGIS Pro 3.2.

Solución alternativa

Use the replace() method in the Python script:

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

Pasos para reproducir

ID del error: BUG-000159968

Software:

  • ArcGIS Pro

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga