Hi, I'm using the Search widget in a custom 4.13 app. I have multiple search sources configured. Most of the time this works, however sometimes when clicking on a suggested item it goes to a completely wrong feature. My code for this app is pretty long, if required to post it I wont be able to do that until next Tuesday, so hopefully I can provide enough detail.
Here is my steps that produce this (sometimes). I enter "4" in the search and have a few suggestions. The search suggestion I click is "V-4278" which represents a chart id. It pans the map to a feature with id "V-4024" which is not what I picked (or even listed in the 5 max suggestions).
To try to dubug this I've inserted the following code which shows something that doesn't make sense to me:
Solved! Go to Solution.
This turned out to not be a problem with the app, widget or javascript related. The cause was the data source was an Oracle DB (non geodata enabled). The services was published with a multi machine ArcGIS Server configuration. Each server machine was applying its own ObjectIds, but the search would not necessarily send it's query back to the same machine (round robin from the web adaptor). Only solution was to stop publishing from Oracle, non geodata enabled database. This database has caused many problems and this issue was the final straw.
Sorry to hear about the trouble. I'm not sure what's occurring. A simplified repro case will really help figure out what the issue is.
This turned out to not be a problem with the app, widget or javascript related. The cause was the data source was an Oracle DB (non geodata enabled). The services was published with a multi machine ArcGIS Server configuration. Each server machine was applying its own ObjectIds, but the search would not necessarily send it's query back to the same machine (round robin from the web adaptor). Only solution was to stop publishing from Oracle, non geodata enabled database. This database has caused many problems and this issue was the final straw.