AnsweredAssumed Answered

.net arcgis pro sdk 2.3 inspector fails silently

Question asked by DeveloperJK on Sep 13, 2019
Latest reply on Sep 13, 2019 by UHarano-esristaff

Good afternoon,


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. 


For example:


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?


Jibrahn Khoury