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()
inspector(fieldName) = ""
Dim result = EditOp.Execute()
If Not result Then
exception = EditOp.ErrorMessage()
SDK 2.8, ArcGIS Pro 2.8, VS2019.
Yes, you are right. I know the reason. But I want to display the error on UI so needed the particular reason why the edit operation failed. I am able to get the error message as "Edit Operation failed.". But I want to display Edit operation failed due to a data type mismatch.
Unfortunately the underlying API doesn't return detailed error messages depending on the data source that is used for editing. I will forward this post to the ArcGIS Pro's Dev Team to re-iterate that this is an issue.