laptop and a wrench

不具合

When using the WorkspaceConnectionString Property (CIMStandardDataConnection) to update the source of a feature class within a feature dataset, it updates the source but breaks the source connection (red exclamation point).

ArcGIS Pro
不具合 ID 番号 BUG-000177160
送信されましたJune 13, 2025
最終更新日August 11, 2025
適用対象ArcGIS Pro
見つかったバージョン3.2
オペレーティング システムWindows OS
オペレーティング システムのバージョン11.0 64 bit
ステータス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 achieve this is by creating a new CIM data source object, which will not contain 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)

対処法

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)

再現の手順

不具合 ID: BUG-000177160

ソフトウェア:

  • ArcGIS Pro

バグのステータスが変更されたときに通知を受け取る

Esri Support アプリのダウンロード

このトピックについてさらに調べる

ArcGIS エキスパートのサポートを受ける

テクニカル サポートへのお問い合わせ

Esri Support アプリのダウンロード

ダウンロード オプションに移動