The Workspace is not connected .......Error  ArcGis  10.2.1

3307
1
06-08-2014 10:39 PM
kaustavroy
New Contributor
Dear Friends
        We have recently migrated from ArcGis 9.1 to 10.2.1 VS2010  .We have tool to insert features into a feature class.Initialy after migration tool  worked without any errors but sometimes tool throws  "The Workspace is not connected"  ErrorCode -2147467259.After debugging  i found out  pEditor.StartOperation() line is not executing and throws error.Kindly help me for this issue 



Public Function startEditing(ByVal pEditor As IEditor, ByVal pWorkspace As IWorkspace) As Boolean
        Try

            If pEditor.EditState = esriEditState.esriStateNotEditing Then
                pEditor.StartEditing(pWorkspace)
            End If

            pEditor.StartOperation()
            Return True
        Catch ex As Exception
            MsgBox(ex.Message & "-startEditing", MsgBoxStyle.Information, "Start Editing")
            Return False
        End Try

    End Function


Thanks in advance
Kroy
0 Kudos
1 Reply
kaustavroy
New Contributor
I found the problem input file has errors ..I checked properly the error was "Linestring or poly boundary is self-intersecting"
0 Kudos