Hi,
I am trying to edit a Date field on the attribute table with some other data type. In this case, my EditOperation is getting failed which is correct. But when I try to capture the ErrorMessage of the EditOperation it shows me "Edit Operation Failed....". But I want a more specific error message as to why the Edit Operation failed. How can I get the specific reason for the Edit operation failed?
Below is my code snippet:
If Not (FieldValue = Nothing) Then
inspector(fieldName) = FieldValue.ToString()
Else
inspector(fieldName) = ""
End If
EditOp.Modify(inspector)
Dim result = EditOp.Execute()
If Not result Then
exception = EditOp.ErrorMessage()
End If
SDK 2.8, ArcGIS Pro 2.8, VS2019.