laptop and a wrench

Error

ArcPy fails to execute ImportToolbox from ArcGIS Enterprise, even when using the UseSSOIdentityIfPortalOwned keyword.

ArcGIS Pro
Número de ID del error BUG-000171361
EnviadoOctober 9, 2024
Última modificaciónFebruary 8, 2025
Relacionado conArcGIS Pro
Versión encontrada3.1
Sistema operativoWindows OS
Versión de sistema operativo10.0 64 Bit
Versión corregida3.5
EstadoFixed

Información adicional

This issue is addressed in ArcGIS Pro 3.5.

Solución alternativa

Use the ArcGIS Server connection file instead of directly specifying the URL.

1. Launch ArcGIS Pro and create a new project.

2. Establish a new connection to ArcGIS Server (in a federated environment, the ArcGIS Enterprise portal credentials are used).

3. Copy the ArcGIS Server to a shorter file path directory, for example, D:/ags. (Check the current ArcGIS Server path in the catalog pane > Project > Servers). 

4. Rename the ArcGIS Server connection file with a shorter name, for example, appsoporte.ags. 

5. Define these parameters in the tool: 

import arcpy

tbx = "D:/ags/appsoporte.ags;Utilities/PrintingTools"

print(tbx)

arcpy.ImportToolbox(tbx)

print(arcpy.PrintingTools.GetLayoutTemplatesInfo())

The tool runs without issues. 

Pasos para reproducir

ID del error: BUG-000171361

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