Hi, we are getting the error "The source ID did not match a network source." when executing a spatial search in Utility Network feature services from Pro SDK. We run the same script with the same data and the issue is not being consistent, and it seems disabling/enabling network topology resolves the issue. What could cause this error and where to look to troubleshoot it? Should we log the ticket with Esri support instead?
P.S. exception we see:
ArcGIS.Core.Data.GeodatabaseUtilityNetworkException: The source ID did not match a network source. ---> System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x8004311D
at ArcGIS.Core.Internal.ITableIOP.Table_Search(IntPtr tableHandle, IntPtr filterHandle, Boolean useRecyclingCursor)
at ArcGIS.Core.Data.Table.Search(QueryFilter queryFilter, Boolean useRecyclingCursor)
Thanks,
Konstantin
Solved! Go to Solution.
So it's been a while since we saw the error, neither we can reproduce it, we tend to think that disabling/enabling network topology somehow fixed the issue.
I don't have any idea why searching a feature class would have anything to do with network sources. You could try posting a code snippet or file an issue with tech support.
Sorry for the delayed response; I was hoping someone else had some better ideas...
--Rich
So it's been a while since we saw the error, neither we can reproduce it, we tend to think that disabling/enabling network topology somehow fixed the issue.