laptop and a wrench

Erro

When a Python script for a GP Tool is published from ArcGIS Pro to ArcGIS Enterprise, some paths are converted into alternative variables. These can cause the scripts or tools to fail with syntax errors.

Portal for ArcGIS
Número de ID do Erro BUG-000156284
EnviadoMarch 3, 2023
Última ModificaçãoJanuary 27, 2025
Aplica-se àPortal for ArcGIS
Versão encontrada10.9.1
Sistema OperacionalWindows OS
Versão do Sistema Operacional10.0
StatusAs Designed

Informações Adicionais

These variables are expected to replace relative paths in python when published to ArcGIS Server.

Solução Provisória

Limited success has been achieved in some scripts by writing paths differently. For example:

path = "\\Test$_TableToExcel.xlsx"

Output_Excel_File = cwd + os.path.join(path)

In this approach, a new variable for the network path is created, and os.path.join is used with the variable instead of directly typing the network path. This method resolves the syntax errors.

Etapas para Reproduzir

ID do Erro: BUG-000156284

Software:

  • Portal for ArcGIS

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