We have an application that places a Tee and an attached service line (in gas) in a UN. That part seems to work as expected. The problem is trying to validate the topology afterwards. This seems like a pretty simple task simply call ValidateNetworkTopology Method
According to documentation this should not be wrapped in an edit operation. Unfortunately this does not seem to work. If I try this way, to first expand the envelope
public ValidationResult ValidateTopology(UtilityNetwork utilityNetwork, Geometry serviceGeometry)
{
//expand the area used for validation
Envelope envelope = serviceGeometry.Extent.Expand(1.05, 1.05, true);
ValidationResult result = utilityNetwork.ValidateNetworkTopology(envelope);
}The following exception is received
ArcGIS.Core.Data.GeodatabaseEnterpriseException: The specified coordinate exceeds the valid coordinate range. ---> System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x80041590
at ArcGIS.Core.Internal.IUtilityNetworkIOP.UtilityNetwork_ValidateNetworkTopology(IntPtr utilityNetworkHandle, IntPtr extentHandle, Boolean useAsynchronousService, DateTime& timeStamp, Boolean& hasErrors, Int32& dirtyAreasCount, Boolean& isFullUpdate)
at ArcGIS.Core.Data.UtilityNetwork.UtilityNetwork.ValidateNetworkTopologyInternal(Geometry extent, InvocationTarget invocationTarget)
--- End of inner exception stack trace ---
If instead of using the slightly expanded envelope, the service line geometry is sent the method simply times out. No exception is received
Seems pretty straight forward, not sure what is incorrect
Thanks