Getting "The source ID did not match a network source" error

689
2
Jump to solution
10-04-2019 12:53 PM
KonstantinKorchakov
New Contributor II

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

0 Kudos
1 Solution

Accepted Solutions
KonstantinKorchakov
New Contributor II

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.

View solution in original post

2 Replies
RichRuh
Esri Regular Contributor

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

0 Kudos
KonstantinKorchakov
New Contributor II

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.