laptop and a wrench

Erro

The addDataFromPath() function fails to add a feature class to the map in ArcGIS Pro if the project path is hardcoded and the referenced project is open.

ArcGIS Pro
Número de ID do Erro BUG-000159274
EnviadoJune 21, 2023
Última ModificaçãoJune 5, 2024
Aplica-se àArcGIS Pro
Versão encontrada3.1.2
Sistema OperacionalWindows OS
Versão do Sistema Operacional10.0 64 Bit
StatusAs Designed

Informações Adicionais

This is as designed. In ArcGIS Pro 2.9 the capability to open already open projects as read-only. They same behavior changed in the UI as well. In this case, if you already have the referenced project open and you try to reference it again with arcpy.mp, you can NOT save changes to it. You would need to call saveACopy(). Also added an isReadOnly property to the ArcGISProject object.

Solução Provisória

Use the CURRENT keyword rather than the project path if the code is being run within the desired project. Alternatively, make sure the referenced project is closed when running the addDataFromPath() function with a specified project path.

Etapas para Reproduzir

ID do Erro: BUG-000159274

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