Hello,
I am currently using an edit operation paired with an inspector to modify a row of a feature layer. However sometimes it works, sometimes it doesn't (I can modify the same row multiple times, setting the same values, with mixed outcomes). What are possible reasons for this operation to fail? I know that mismatch values cause it to fail (eg. give it a str instead of int) however it is definitely not that since it works occasionally.
Any help is appreciated.
If EditOperation.Execute returns false you can check the EditOperation.ErrorMessage property for additional information on the error if it is propagated.
Sean, my edit operation op.ErrorMessage always seems to be "Edit operation failed.", is there any way of getting more information?
Unfortunately not. The message is populated from whatever function we are calling internally. Often there is no error description associated with a failure and we revert to the generic message.