laptop and a wrench

Erro

The updateConnectionProperties does not successfully update the source information on layers in the .aprx files when using dictionaries as to or from the connection properties.

Última Publicação: May 14, 2019 ArcGIS Pro
Número de ID do Erro BUG-000122282
EnviadoMay 9, 2019
Última ModificaçãoJune 5, 2024
Aplica-se àArcGIS Pro
Versão encontrada2.3.2
Sistema OperacionalWindows OS
Versão do Sistema Operacional2016 64 Bit
StatusWill Not Be Addressed

Informações Adicionais

when resourcing from one sql server database to another, the feature class name changes as well. Do something like this (looping through all the layers in the project):```lyr = m.listLayers()[0]cp = lyr.connectionPropertiescp['connection_info']['database'] = 'gdb1071en'cp['dataset'] = cp['dataset'].replace('gdb1061en', 'gdb1071en')lyr.updateConnectionProperties(lyr.connectionProperties, cp)```Also keep in mind that when using dictionaries in UpdateConnectionProperties, it works like a find and replace operation of common key/value pairs. See the following topic for more info: [https://pro.arcgis.com/en/pro-app/arcpy/mapping/updatingandfixingdatasources.htm](https://pro.arcgis.com/en/pro-app/arcpy/mapping/updatingandfixingdatasources.htm)

Etapas para Reproduzir

ID do Erro: BUG-000122282

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