Good morning!
I'm building a plugin for ArcGis Pro that performs several editions over a File GeoDatabase.The first step are populate several of the feature classes and tables inside that File GeoDatabase. I have zero issues with it, but the person who will use it keeps getting this error:
I have no idea why the "Editing in the application is not enabled" is happening. That error message appears when a non-geometric table is written (the last step). Before that, several features classes are updated the same way without any problem.
I use the same code for every insert method, so I don't understand why the last method is giving that error to that person and it is working fine on my side.
Public Async Function storeMetadata(metadatos As METADATOS, gdbPath As String) As Task(Of Boolean)
Dim message As String = String.Empty
Dim creationResult As Boolean = False
Await QueuedTask.Run(Function()
Using geodatabase As Geodatabase = New Geodatabase(New FileGeodatabaseConnectionPath(New Uri(gdbPath)))
Using gca_metadatos As Table = geodatabase.OpenDataset(Of Table)("GCA_Metadatos")
Dim editOperation As EditOperation = New EditOperation()
Try
editOperation.Callback(Function(context)
Using rowBuffer As RowBuffer = gca_metadatos.CreateRowBuffer()
rowBuffer("IDTRANSACCION") = metadatos.IDTRANSACCION
'More fields here
Using row As Row = gca_metadatos.CreateRow(rowBuffer)
context.Invalidate(row)
End Using
End Using
End Function, gca_metadatos)
Catch ex As Exception
MessageBox.Show("Error guardar metadatos (I): " & ex.Message)
End Try
Try
creationResult = editOperation.Execute()
If Not creationResult Then message = editOperation.ErrorMessage
Catch exObj As GeodatabaseException
message = exObj.Message
GCA_Common.Application.EscribirError(GCA_Common.Application.AlmacenarError(exObj))
End Try
End Using
End Using
Return True
End Function)
If Not String.IsNullOrEmpty(message) Then
Return False
Else
Return True
End If
End Function
Thanks for any help provided!