Bug
| Bug ID Number | BUG-000167674 |
|---|---|
| Submitted | May 21, 2024 |
| Last Modified | December 29, 2024 |
| Applies to | ArcGIS Pro |
| Version found | 3.0.4 |
| Operating System | Windows OS |
| Operating System Version | 10.0 64 Bit |
| Version Fixed | 3.4 |
| Status | Fixed |
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( )
Bug ID: BUG-000167674
Software:
Get help from ArcGIS experts
Download the Esri Support App