Solution - ArcFM - The Trace Task Returned No Elements in its Results

Version 5

    Behavior

     

    The following message is received when executing an ArcFM Trace in ArcFM Viewer for ArcGIS Engine.
    "The trace task returned no elements in its results."


    One of the following error may also be reported in the Miner Event Viewer log:

    2013-08-06 10:13:17,593 [1] ERROR Miner.FrameworkUI.Trace.BaseTraceTool [(null)] - BaseTraceTool::OnMouseUp
    System.Runtime.InteropServices.COMException (0x80041203): No current record.
       at ESRI.ArcGIS.Geodatabase.IComplexNetworkFeature.FindEdgeEID(IPoint point)
       at Miner.FrameworkUI.Trace.BaseTraceTool.GetEID(IGeometricNetwork geometricNetwork, IScreenDisplay screenDisplay, IFeature feature, Int32 x, Int32 y, esriElementType& elementType)
       at Miner.FrameworkUI.Trace.BaseTraceTool.OnMouseUp(Int32 button, Int32 shift, Int32 x, Int32 y)
    {log4net:HostName=testVM, LoggingAssemblyFileVersion=10.11.0.263}


    2015-09-08 12:47:22,083 [1] ERROR Miner.Windows [(null)] - An unexpected program error has occurred.

    Refer to the error log for detailed information about the error.

    System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

       at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)

       at System.Windows.Forms.NativeWindow.DefWndProc(Message& m)

       at System.Windows.Forms.Control.DefWndProc(Message& m)

       at System.Windows.Forms.Control.WndProc(Message& m)

       at System.Windows.Forms.AxHost.WndProc(Message& m)

       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

    {log4net:HostName=OGSGISREP01TTUL, LoggingAssemblyFileVersion=10.20.0.265}

     


    Performing the same trace in ArcMap will result in the same error or cause the application to crash.

     

    Cause

     

    These symptoms will occur when the coordinate system for the data frame does not match the coordinate system for the data set containing the geometric network.

     

    Solution

     

    Change the coordinate system of the data frame so that it matches the coordinate system of the data set.

    Visit the ArcGIS Resource Center for information about how to change the coordinate system for a data frame in ArcMap.
    ArcGIS Resources