Bug
Bug-ID-Nummer | BUG-000177160 |
---|---|
Eingereicht | June 13, 2025 |
Zuletzt geändert | August 11, 2025 |
Gilt für | ArcGIS Pro |
Gefunden in Version | 3.2 |
Betriebssystem | Windows OS |
Betriebssystemversion | 11.0 64 bit |
Status | As Designed |
Since the CIM data source definition of the existing layer includes a feature dataset, but the new data source does not, it must be omitted from the CIM. One way to do this is to create a new CIM data source object, which will not include a feature dataset:
aprx = arcpy.mp.ArcGISProject('CURRENT')
m = aprx.listMaps('Map1')[0]
lyr = m.listLayers('*States*')[0]
c = lyr.getDefinition('V3')
dc = arcpy.cim.CreateCIMObjectFromClassName('CIMStandardDataConnection', 'V3')
dc.workspaceConnectionString = r"URL=https://services2.arcgis.com/k4wsDILUIGeQ5HvW/arcgis/rest/services/USAFederalLandsFSNew/FeatureServer"
dc.workspaceFactory = "FeatureService"
dc.dataset = "0"
c.featureTable.dataConnection = dc
lyr.setDefinition(c)
Bug-ID: BUG-000177160
Software:
Unterstützung durch ArcGIS-Experten anfordern
Esri Support App herunterladen