Topology Validate method returns AnalyzedWithErrors when there are no errors

151
0
2 weeks ago
MarkMindlin_idea
New Contributor III

We run topology.Validate(...) and the only result we have is "AnalyzedWithErrors" https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic30011.html

When we do not have any errors (in the Error Inspector), the Validate returns the same "AnalyzedWithErrors"

Should/Must we set the state before Validate call?

 

 

using (Geodatabase geodatabase = new Geodatabase(new ServiceConnectionProperties(new Uri(strURIService))))
using (Topology topology = geodatabase.OpenDataset<ArcGIS.Core.Data.Topology.Topology>(strTopologyDatasetIndex))
{
    ValidationResult result = topology.Validate(new ValidationDescription(MapView.Active.Extent));
    var state = topology.GetState();
                    
    ArcGIS.Desktop.Framework.Dialogs.MessageBox.Show(String.Format("Topology state is {0}", state.ToString()));
}

 

0 Kudos
0 Replies