What are possible reasons for an EditOperation to fail to execute?

546
3
09-06-2017 01:06 PM
DrewD
by
New Contributor III

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.

0 Kudos
3 Replies
by Anonymous User
Not applicable

If EditOperation.Execute returns false you can check the EditOperation.ErrorMessage property for additional information on the error if it is propagated.

0 Kudos
DrewD
by
New Contributor III

Sean, my edit operation op.ErrorMessage always seems to be "Edit operation failed.", is there any way of getting more information?

0 Kudos
by Anonymous User
Not applicable

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.

0 Kudos