laptop and a wrench

Bug

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

ArcGIS Pro
Bug-ID-Nummer BUG-000171361
EingereichtOctober 9, 2024
Zuletzt geändertFebruary 8, 2025
Gilt fürArcGIS Pro
Gefunden in Version3.1
BetriebssystemWindows OS
Betriebssystemversion10.0 64 Bit
Behoben in Version3.5
StatusFixed

Zusätzliche Informationen

This issue is addressed in ArcGIS Pro 3.5.

Workaround

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. 

Schritte zur Reproduzierung

Bug-ID: BUG-000171361

Software:

  • ArcGIS Pro

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln