AnsweredAssumed Answered

GetControllerDatasets throws exception

Question asked by john.reed.404 on Jun 21, 2018
Latest reply on Jun 21, 2018 by RRuh-esristaff

The following code throws an exception


if (table.IsControllerDatasetSupported())
                            IReadOnlyList<Dataset> controllerDatasets = table.GetControllerDatasets();



ArcGIS.Core.Data.GeodatabaseTopologyException: Network not found. ---> System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x80041970
   at ArcGIS.Core.Internal.IGeodatabaseIOP.Geodatabase_GetUtilityNetwork(IntPtr workspaceHandle, String name)
   at ArcGIS.Core.Data.GeodatabaseCore.OpenDatasetCore[T](String name)
   --- End of inner exception stack trace ---
   at ArcGIS.Core.Data.GeodatabaseCore.OpenDatasetCore[T](String name)
   at ArcGIS.Core.Data.Table.GetControllerDatasets()


This happens on 4 UN layers "Point Errors", "Line Errors", "Polygon Errors", and "Dirty Areas" The code runs fine on the other UN layers.


Is there something in addition to IsControllerDatasetSupported that I should be checking?


This is on 2.1.2