PROBLEM

Mx Extension implementing IPersistVariant is not persisted

Last Published: April 25, 2020

Description

When an Mx Extension implements IPersistVariant, the IPersistVariant_Save method is invoked when the document is saved. Under some circumstances, the IPersistVariant_Save method is not called and the extension does not have the opportunity to save anything to the stream.

Cause

The problem may be that the Extension name returned in the IExtension_Name property is longer than 31 characters.

Solution or Workaround

Change the IExtension_Name property so that a string with 31 or fewer characters is returned.

Article ID:000005953

Software:
  • ArcMap

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Discover more on this topic