laptop and a wrench

Erro

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

ArcGIS Pro
Número de ID do Erro BUG-000171361
EnviadoOctober 9, 2024
Última ModificaçãoFebruary 8, 2025
Aplica-se àArcGIS Pro
Versão encontrada3.1
Sistema OperacionalWindows OS
Versão do Sistema Operacional10.0 64 Bit
Versão Fixa3.5
StatusFixed

Informações Adicionais

This issue is addressed in ArcGIS Pro 3.5.

Solução Provisória

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. 

Etapas para Reproduzir

ID do Erro: BUG-000171361

Software:

  • ArcGIS Pro

Seja notificado quando o status de um erro mudar

Baixe o Aplicativo de Suporte da Esri

Descubra mais sobre este tema

Obtenha ajuda de especialistas do ArcGIS

Entre em contato com Suporte Técnico

Baixe o Aplicativo de Suporte da Esri

Ir para as opções de download