We are developing .Net addins for Arcgis Pro 2.3, and have encountered an issue with the inspector.
One of our addins is written to assign null value to an attribute for each feature in a layer. We've noticed that the attribute value is not always updated and it is unpredictable when it will fail. We have used both the inspector.Apply, ApplyAsync, and Edit Operation Modify.
inspector["attr"] = DBNull.Value;
var successfulApply = inspector.Apply();
Even if successfulApply returns true, sometimes the assignment does not happen. Particularly when we run this on a large number of features. We usually test this by running the addin, and then checking the layer table, or checking individual feature attributes.
For that simple addin, the developer runs the addin over and over until all features have a null value for that attribute. While that works eventually, it is slow and is not a viable option for all of our addins.
Any ideas on how to approach this?