laptop and a wrench

Bogue

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

ArcGIS Pro
Numéro d’ID de bogue BUG-000171361
EnvoiOctober 9, 2024
Dernière modificationFebruary 8, 2025
S’applique àArcGIS Pro
Version trouvée3.1
Système d’exploitationWindows OS
Version du système d’exploitation10.0 64 Bit
Version de correction3.5
StatutFixed

Informations supplémentaires

This issue is addressed in ArcGIS Pro 3.5.

Solution de contournement

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. 

Étapes pour reproduire

ID de bogue: BUG-000171361

Logiciel:

  • ArcGIS Pro

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement