laptop and a wrench

漏洞

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

ArcGIS Pro
漏洞 ID 编号 BUG-000171361
已提交October 9, 2024
上次修改时间February 8, 2025
适用范围ArcGIS Pro
找到的版本3.1
操作系统Windows OS
操作系统版本10.0 64 Bit
修正版本3.5
状态Fixed

附加信息

This issue is addressed in ArcGIS Pro 3.5.

解决办法

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. 

重现步骤

漏洞 ID: BUG-000171361

软件:

  • ArcGIS Pro

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项