BUG

The Change Version command disconnects Feature Layers from their data source when no default subtype is specified

Last Published: April 25, 2020

Description

The Change Version command in ArcMap disconnects the Feature Layer from the source Feature Class, when no default subtype has been defined. No error message is produced; the layer is just not associated to any Feature Class.

Cause

This problem is due to IFeatureWorkspace.OpenFeatureClass failing when no default subtype is set, and the FeatureClass is already open but pointing to a different version. The change version code is not anticipating the call to fail and is setting the FeatureLayer's FeatureClass to NULL.

Workaround



Set a default subtype for the FeatureClass.

Article ID:000003375

Software:
  • ArcMap 9 x
  • ArcMap 8 x

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Related Information

Discover more on this topic