rjhauck

ArcMap 10 Editor extension / edit event problem

Discussion created by rjhauck on Sep 9, 2010
Latest reply on Sep 13, 2010 by rjhauck
I have IEditEvents.OnChangeFeature set to update a column with some text.  It's part of a ArcMap 10 editor extension.  The column updates correctly until I open the new docked edit attributes dialog.  Once it's open I get a "Move: An unexpected failure occurred. No rows were updated" error. I can see the text update in the dialog before the error. We are using SQL server 2005 & SDE 9.3. This worked without problems in 9.3.

Seems like a bug.  Any ideas?

Private Sub m_editEvents_OnCreateChangeFeature(ByVal obj As ESRI.ArcGIS.Geodatabase.IObject)

        'SEND ALL NEW FEATURES TO VALIDATE
        Validate(TryCast(obj, IFeature))

End Sub

Private Sub Validate(ByVal inFeature As IFeature)
        'FIRES FOR CHANGED AND CREATED ADDRESS POINTS

        Dim flds As IFields
        Dim pfeatureclass As IFeatureClass
        Dim pdataset As IDataset
        pfeatureclass = inFeature.Class
        pdataset = pfeatureclass

        'SET THE TEXT IF FEATURE IS AN ADDRESS POINT

        If pdataset.Name = "vector.DATA.Address_Points" Then   
            flds = inFeature.Fields
            'RECORD THE TEXT
            inFeature.Value(flds.FindField("TMS_GIS")) = "test text"
        End If

End Sub

Outcomes