Near Me Widget Error

208
1
01-29-2019 06:20 AM
CrossrailGIS
New Contributor III

Hi there,

I've plugged in the Near Me widget to Web AppBuilder 2.1 (sorry, older version), but I have an error when I try to use it.  Initially returns result, although in the debugger (IE11), I get the following error:

HTTP 400: Cannot perform query. Invalid query parameters.

Regardless it shows it found some results, but when I click on one to expand the records found it hangs with the following error:

TypeError: Unable to get property 'Rc' of undefined or null reference TypeError: Unable to get property 'Rc' of undefined or null reference
   at g.Gb (https://js.arcgis.com/3.17/esri/geometry/geometryEngine.js:531:311)
   at c.distance (https://js.arcgis.com/3.17/esri/geometry/geometryEngine.js:1095:55)
   at _getSortedFeatureList (https://ddc2gis006.onelondon.tfl.local/ElizabethMaps/widgets/NearMe/item-list.js?wab_dv=2.1:709:9)
   at _creatFeatureList (https://ddc2gis006.onelondon.tfl.local/ElizabethMaps/widgets/NearMe/item-list.js?wab_dv=2.1:597:7)
   at Anonymous function (https://ddc2gis006.onelondon.tfl.local/ElizabethMaps/widgets/NearMe/item-list.js?wab_dv=2.1:540:11)
   at Anonymous function (https://js.arcgis.com/3.17/init.js:63:200)
   at _resolve (https://js.arcgis.com/3.17/init.js:1937:58)
   at Anonymous function (https://js.arcgis.com/3.17/init.js:1940:406)
   at c (https://js.arcgis.com/3.17/init.js:103:387)
   at d (https://js.arcgis.com/3.17/init.js:103:182)
   {
      [functions]: ,
      __proto__: { },
      description: "Unable to get property 'Rc' of undefined or null reference",
      message: "Unable to get property 'Rc' of undefined or null reference",
      name: "TypeError",
      number: -2146823281,
      stack: "TypeError: Unable to get property 'Rc' of undefined or null reference
   at g.Gb (https://js.arcgis.com/3.17/esri/geometry/geometryEngine.js:531:311)
   at c.distance (https://js.arcgis.com/3.17/esri/geometry/geometryEngine.js:1095:55)
   at _getSortedFeatureList (https://ddc2gis006.onelondon.tfl.local/ElizabethMaps/widgets/NearMe/item-list.js?wab_dv=2.1:709:9)
   at _creatFeatureList (https://ddc2gis006.onelondon.tfl.local/ElizabethMaps/widgets/NearMe/item-list.js?wab_dv=2.1:597:7)
   at Anonymous function (https://ddc2gis006.onelondon.tfl.local/ElizabethMaps/widgets/NearMe/item-list.js?wab_dv=2.1:540:11)
   at Anonymous function (https://js.arcgis.com/3.17/init.js:63:200)
   at _resolve (https://js.arcgis.com/3.17/init.js:1937:58)
   at Anonymous function (https://js.arcgis.com/3.17/init.js:1940:406)
   at c (https://js.arcgis.com/3.17/init.js:103:387)
   at d (https://js.arcgis.com/3.17/init.js:103:182)"
   }
   "TypeError: Unable to get property 'Rc' of undefined or null reference
   at g.Gb (https://js.arcgis.com/3.17/esri/geometry/geometryEngine.js:531:311)
   at c.distance (https://js.arcgis.com/3.17/esri/geometry/geometryEngine.js:1095:55)
   at _getSortedFeatureList (https://ddc2gis006.onelondon.tfl.local/ElizabethMaps/widgets/NearMe/item-list.js?wab_dv=2.1:709:9)
   at _creatFeatureList (https://ddc2gis006.onelondon.tfl.local/ElizabethMaps/widgets/NearMe/item-list.js?wab_dv=2.1:597:7)
   at Anonymous function (https://ddc2gis006.onelondon.tfl.local/ElizabethMaps/widgets/NearMe/item-list.js?wab_dv=2.1:540:11)
   at Anonymous function (https://js.arcgis.com/3.17/init.js:63:200)
   at _resolve (https://js.arcgis.com/3.17/init.js:1937:58)
   at Anonymous function (https://js.arcgis.com/3.17/init.js:1940:406)
   at c (https://js.arcgis.com/3.17/init.js:103:387)
   at d (https://js.arcgis.com/3.17/init.js:103:182)"

Any ideas? 

Appreciate it's an older version of Web AppBuilder, but it's what I've got (and upgrading is not straightforward where I work).  Also worth noting on ArcGIS Desktop 10.6, ArcGIS Server 10.5.1 and Portal for ArcGIS 10.5.1.

Regards

Dan

0 Kudos
1 Reply
CrossrailGIS
New Contributor III

Just an update, we've figured out the problem at it looks like it's the custom coordinate system we are using, even though it is registered on Portal, the Near Me widget doesn't recognize this coord sys.

0 Kudos