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
Hi John,
I can confirm that this is an issue. We had intended GetControllerDatasets() to be used with user tables and not the system tables. Could you tell us more about what you are trying to accomplish?
(At this point, our proposed solution is to have Table.IsControllerDatasetSupported() return false for these tables, which would fix the bug, but maybe not give you the behavior that you are looking for).
--Rich