laptop and a wrench

Erro

The topology error inspector becomes out of sync with the data after running the arcpy.management.ValidateTopology() function multiple times while editing in ArcGIS Pro.

ArcGIS Pro
Número de ID do Erro BUG-000167674
EnviadoMay 21, 2024
Última ModificaçãoDecember 29, 2024
Aplica-se àArcGIS Pro
Versão encontrada3.0.4
Sistema OperacionalWindows OS
Versão do Sistema Operacional10.0 64 Bit
Versão Fixa3.4
StatusFixed

Informações Adicionais

This issue is addressed in ArcGIS 3.4.

Solução Provisória

Add one of the following workaround to the Python script but note sometimes the error inspect does not refresh and this results are inconsistent.

Python Workaround 1:

Changing the zoom level as mentioned in one of the community threads found during researching the issue:

 

def refresh():# 

Refresh the map view by changing the map scale.

# The map view changes by such a small amount that it isn't

# noticeable, but still causes the map view to refresh.   

   mv = aprx.activeView

   mv.camera.scale = mv.camera.scale + 0.1

 

Python Workaround 2:

Get or set the layerDefinition on the layer that is updated, through the CIM:

 

# Reference a project, map, and Layer using arcpy.mp 

p = arcpy.mp.ArcGISProject(' current' ) 

m = p.istLayers('Map') [0]

l = m.listLayers('main.cov')[0]

 

# Return the Layer's CIM definition 

l_cim = l.getDefinition( 'V2') 

 

# Push the changes back to the Layer object 

I. setDefinition( I_cim) 

 

# Save changes 

p. save( )

Etapas para Reproduzir

ID do Erro: BUG-000167674

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