Is there a way to get more information when an EditOperation fails using the SDK? I have an addin that populates a field in a layer with values and it works fine the first time, but fails when I run it again. Further investigation showed that the edit operation works when the existing values are <null>, but fails if the existing values are not null. But more generally, i would like to get a reason when an EditOperation fails.
An abbreviated part of my code:
EditOperation assignIDEditOp = new EditOperation();
assignIDEditOp.Name = "assignIDEditOp";
assignIDEditOp.SelectModifiedFeatures = false;
assignIDEditOp.SelectNewFeatures = false;
strID += (j + 1).ToString(fmt);
pInsp = new Inspector(true);
pInsp.Load(pLay, pOID);
pInsp["ID"] = strID;
assignIDEditOp.Modify(pInsp);
isOK = assignIDEditOp.Execute();
if (!isOK)
{
MessageBox.Show(assignIDEditOp.ErrorMessage);
}