Bug
| Bug ID Number | BUG-000128458 |
|---|---|
| Submitted | February 6, 2020 |
| Last Modified | February 10, 2025 |
| Applies to | ArcGIS Pro |
| Version found | 2.5 |
| Operating System | Windows OS |
| Operating System Version | 10.0 64 Bit |
| Version Fixed | 3.4 |
| Status | Fixed |
It is possible to use the getDefinition and setDefinition of the layer object as a workaround. Sample code:
import arcpy
aprx=arcpy.mp.ArcGISProject('CURRENT')
m=aprx.listMaps('Map')[0]
lyr=m.listLayers('TileLayer')[0]
lyr1=m.listLayers('TileLayer1')[0]
cimdef=lyr.getDefinition('V2')
cimdef1=lyr1.getDefinition('V2')
lyr.setDefinition(cimdef1)
Bug ID: BUG-000128458
Software:
Get help from ArcGIS experts
Download the Esri Support App