Esri / Viewer

Viewer is a configurable application template that enables you to display an ArcGIS web map using a variety of tools.
Apache License 2.0
60 stars 117 forks source link

Search Box now generating an error #60

Open WashGIS opened 8 years ago

WashGIS commented 8 years ago

I configured the search box to search multiple geocoders as well as 10.2.2 services for field in the last release of the viewer. Everything was working well. Now post November update I am getting an error when searching "all" or a search layer that is not a geocoding service.

TypeError: a.getField is not a function(…) "TypeError: a.getField is not a function at x._validField (http://js.arcgis.com/3.15/esri/dijit/Search.js:40:470) at null. (http://js.arcgis.com/3.15/esri/dijit/Search.js:54:311) at http://js.arcgis.com/3.15/init.js:167:296 at k (http://js.arcgis.com/3.15/init.js:189:431) at then.b.then (http://js.arcgis.com/3.15/init.js:192:308) at x._search (http://js.arcgis.com/3.15/esri/dijit/Search.js:54:222) at x._searchQueries (http://js.arcgis.com/3.15/esri/dijit/Search.js:49:492) at x._searchDeferred (http://js.arcgis.com/3.15/esri/dijit/Search.js:26:435) at null. (http://js.arcgis.com/3.15/esri/dijit/Search.js:18:162) at http://js.arcgis.com/3.15/init.js:167:296

rejected at a (http://js.arcgis.com/3.15/init.js:190:337)
at k (http://js.arcgis.com/3.15/init.js:190:89)
at then.b.then (http://js.arcgis.com/3.15/init.js:192:308)
at x._search (http://js.arcgis.com/3.15/esri/dijit/Search.js:54:222)
at x._searchQueries (http://js.arcgis.com/3.15/esri/dijit/Search.js:49:492)
at x._searchDeferred (http://js.arcgis.com/3.15/esri/dijit/Search.js:26:435)
at null.<anonymous> (http://js.arcgis.com/3.15/esri/dijit/Search.js:18:162)
at http://js.arcgis.com/3.15/init.js:167:296
at k (http://js.arcgis.com/3.15/init.js:189:431)
at then.b.then (http://js.arcgis.com/3.15/init.js:192:308)
----------------------------------------

Error at then.b.then (http://js.arcgis.com/3.15/init.js:192:253) at x._search (http://js.arcgis.com/3.15/esri/dijit/Search.js:54:222) at x._searchQueries (http://js.arcgis.com/3.15/esri/dijit/Search.js:49:492) at x._searchDeferred (http://js.arcgis.com/3.15/esri/dijit/Search.js:26:435) at null. (http://js.arcgis.com/3.15/esri/dijit/Search.js:18:162) at http://js.arcgis.com/3.15/init.js:167:296 at k (http://js.arcgis.com/3.15/init.js:189:431) at then.b.then (http://js.arcgis.com/3.15/init.js:192:308) at x.search (http://js.arcgis.com/3.15/esri/dijit/Search.js:18:128) at null. (http://js.arcgis.com/3.15/esri/dijit/Search.js:13:382)"

kellyhutchins commented 8 years ago

@WashGIS is your test app public? If so can you share the link.

WashGIS commented 8 years ago

http://washcomd.maps.arcgis.com/home/item.html?id=081e3dc70de94fbc87b22d8ecec9b65a

WashGIS commented 8 years ago

@kellyhutchins were you able to replicate my issue?

kellyhutchins commented 8 years ago

Sorry for the delay on this one. Can you check your ArcGIS Online org settings for the composite locator and make sure 'Allow placefinding' is not checked. screen shot 2016-02-03 at 3 18 31 pm

WashGIS commented 8 years ago

allow place finding is not checked.