AnsweredAssumed Answered

Problem using Analysis Widget

Question asked by cdsanchez on Aug 20, 2015

Hello!

 

I'm trying to use the analysis tool on point layers I created manually (from an external service), because I require getting heat maps.
As I read the documentation on how the analysis works, it depends on the layer can be accessed from any arcgis server.
In my case, this seems a bit difficult, because I do not know how I could upload a layer to ArcGIS Online before doing the analysis.

 

When I try to analyze these layers that exist only locally, I get these errors:

 

14:48:20.114 TypeError: g(...) is undefined
Stack trace:
.cache["dojo/string"]/</k.substitute/<@https://js.arcgis.com/3.14/init.js:911:266
.cache["dojo/string"]/</k.substitute@https://js.arcgis.com/3.14/init.js:911:131
p<._updateAnalysisLayerUI@https://js.arcgis.com/3.14/esri/dijit/analysis/FindHotSpots.js:19:1
p<._buildUI@https://js.arcgis.com/3.14/esri/dijit/analysis/FindHotSpots.js:16:477
p<.postCreate@https://js.arcgis.com/3.14/esri/dijit/analysis/FindHotSpots.js:7:459
.cache["dijit/_WidgetBase"]/</f<.create@https://js.arcgis.com/3.14/init.js:1124:202
.cache["dijit/_WidgetBase"]/</f<.postscript@https://js.arcgis.com/3.14/init.js:1122:459
d/<@https://js.arcgis.com/3.14/init.js:98:190
._switchToAnalysisTool/</<@https://localhost:9443/arcgisapp/widgets/Analysis/Widget.js:367:41
.cache["dojo/_base/lang"]/</g.hitch/<@https://js.arcgis.com/3.14/init.js:167:294
.cache["dojo/Deferred"]/</k@https://js.arcgis.com/3.14/init.js:189:431
.cache["dojo/Deferred"]/</f/b.then@https://js.arcgis.com/3.14/init.js:192:308
._switchToAnalysisTool/<@https://localhost:9443/arcgisapp/widgets/Analysis/Widget.js:347:1
.cache["dojo/_base/lang"]/</g.hitch/<@https://js.arcgis.com/3.14/init.js:167:294
ha@https://js.arcgis.com/3.14/init.js:22:471
fa/<@https://js.arcgis.com/3.14/init.js:23:202
ia@https://js.arcgis.com/3.14/init.js:23:89
fa@https://js.arcgis.com/3.14/init.js:23:144
pa/g@https://js.arcgis.com/3.14/init.js:25:380
r.injectUrl/f<@https://js.arcgis.com/3.14/init.js:30:98
EventListener.handleEvent*Ka@https://js.arcgis.com/3.14/init.js:29:91
r.injectUrl@https://js.arcgis.com/3.14/init.js:29:441
pa@https://js.arcgis.com/3.14/init.js:27:115
a@https://js.arcgis.com/3.14/init.js:5:295
ma/<@https://js.arcgis.com/3.14/init.js:14:191
ia@https://js.arcgis.com/3.14/init.js:23:89
ma@https://js.arcgis.com/3.14/init.js:14:177
Xa/<@https://js.arcgis.com/3.14/init.js:28:171
a@https://js.arcgis.com/3.14/init.js:5:295
Xa@https://js.arcgis.com/3.14/init.js:28:155
pa/g@https://js.arcgis.com/3.14/init.js:25:218
r.injectUrl/f<@https://js.arcgis.com/3.14/init.js:30:98
EventListener.handleEvent*Ka@https://js.arcgis.com/3.14/init.js:29:91
r.injectUrl@https://js.arcgis.com/3.14/init.js:29:441
pa@https://js.arcgis.com/3.14/init.js:27:115
a@https://js.arcgis.com/3.14/init.js:5:295
ma/<@https://js.arcgis.com/3.14/init.js:14:191
ia@https://js.arcgis.com/3.14/init.js:23:89
ma@https://js.arcgis.com/3.14/init.js:14:177
Xa/<@https://js.arcgis.com/3.14/init.js:28:171
a@https://js.arcgis.com/3.14/init.js:5:295
Xa@https://js.arcgis.com/3.14/init.js:28:155
pa/g@https://js.arcgis.com/3.14/init.js:25:218
r.injectUrl/f<@https://js.arcgis.com/3.14/init.js:30:98
EventListener.handleEvent*Ka@https://js.arcgis.com/3.14/init.js:29:91
r.injectUrl@https://js.arcgis.com/3.14/init.js:29:441
pa@https://js.arcgis.com/3.14/init.js:27:115
a@https://js.arcgis.com/3.14/init.js:5:295
ma/<@https://js.arcgis.com/3.14/init.js:14:191
ia@https://js.arcgis.com/3.14/init.js:23:89
ma@https://js.arcgis.com/3.14/init.js:14:177
Xa/<@https://js.arcgis.com/3.14/init.js:28:171
a@https://js.arcgis.com/3.14/init.js:5:295
Xa@https://js.arcgis.com/3.14/init.js:28:155
pa/g@https://js.arcgis.com/3.14/init.js:25:218
r.injectUrl/f<@https://js.arcgis.com/3.14/init.js:30:98
EventListener.handleEvent*Ka@https://js.arcgis.com/3.14/init.js:29:91
r.injectUrl@https://js.arcgis.com/3.14/init.js:29:441
pa@https://js.arcgis.com/3.14/init.js:27:115
a@https://js.arcgis.com/3.14/init.js:5:295
ma/<@https://js.arcgis.com/3.14/init.js:14:191
ia@https://js.arcgis.com/3.14/init.js:23:89
ma@https://js.arcgis.com/3.14/init.js:14:177
Xa/<@https://js.arcgis.com/3.14/init.js:28:171
a@https://js.arcgis.com/3.14/init.js:5:295
Xa@https://js.arcgis.com/3.14/init.js:28:155
pa/g@https://js.arcgis.com/3.14/init.js:25:218
r.injectUrl/f<@https://js.arcgis.com/3.14/init.js:30:98
EventListener.handleEvent*Ka@https://js.arcgis.com/3.14/init.js:29:91
r.injectUrl@https://js.arcgis.com/3.14/init.js:29:441
pa@https://js.arcgis.com/3.14/init.js:27:115
a@https://js.arcgis.com/3.14/init.js:5:295
ma/<@https://js.arcgis.com/3.14/init.js:14:191
ia@https://js.arcgis.com/3.14/init.js:23:89
ma@https://js.arcgis.com/3.14/init.js:14:177
Xa/<@https://js.arcgis.com/3.14/init.js:28:171
a@https://js.arcgis.com/3.14/init.js:5:295
Xa@https://js.arcgis.com/3.14/init.js:28:155
pa/g@https://js.arcgis.com/3.14/init.js:25:218
r.injectUrl/f<@https://js.arcgis.com/3.14/init.js:30:98
EventListener.handleEvent*Ka@https://js.arcgis.com/3.14/init.js:29:91
r.injectUrl@https://js.arcgis.com/3.14/init.js:29:441
pa@https://js.arcgis.com/3.14/init.js:27:115
a@https://js.arcgis.com/3.14/init.js:5:295
ma/<@https://js.arcgis.com/3.14/init.js:14:191
ia@https://js.arcgis.com/3.14/init.js:23:89
ma@https://js.arcgis.com/3.14/init.js:14:177
Xa/<@https://js.arcgis.com/3.14/init.js:28:171
a@https://js.arcgis.com/3.14/init.js:5:295
Xa@https://js.arcgis.com/3.14/init.js:28:155
pa/g@https://js.arcgis.com/3.14/init.js:25:218
r.injectUrl/f<@https://js.arcgis.com/3.14/init.js:30:98
1 Widget.js:395:13
._switchToAnalysisTool/</<() Widget.js:395
.cache["dojo/_base/lang"]/</g.hitch/<() init.js:167
.cache["dojo/Deferred"]/</k() init.js:189
.cache["dojo/Deferred"]/</f/b.then() init.js:192
._switchToAnalysisTool/<() Widget.js:347
.cache["dojo/_base/lang"]/</g.hitch/<() init.js:167
ha() init.js:22
fa/<() init.js:23
ia() init.js:23
fa() init.js:23
pa/g() init.js:25
r.injectUrl/f<() init.js:30

 

And

14:48:21.422 NS_ERROR_MALFORMED_URI: 
Stack trace:
k@https://js.arcgis.com/3.14/init.js:151:153
.cache["dojo/_base/xhr"]/</b.xhr@https://js.arcgis.com/3.14/init.js:185:209
.cache["dojo/_base/xhr"]/</b.xhrGet@https://js.arcgis.com/3.14/init.js:185:1
x@https://js.arcgis.com/3.14/init.js:901:503
d@https://js.arcgis.com/3.14/init.js:903:245
y@https://js.arcgis.com/3.14/init.js:909:274
e<.postCreate@https://js.arcgis.com/3.14/esri/dijit/analysis/HelpWindow.js:6:1
.cache["dijit/_WidgetBase"]/</f<.create@https://js.arcgis.com/3.14/init.js:1124:202
.cache["dijit/_WidgetBase"]/</f<.postscript@https://js.arcgis.com/3.14/init.js:1122:459
d/<@https://js.arcgis.com/3.14/init.js:98:190
.initHelpLinks@https://js.arcgis.com/3.14/esri/dijit/analysis/utils.js:5:188
.cache["dojo/_base/lang"]/</g._hitchArgs/<@https://js.arcgis.com/3.14/init.js:166:478
.cache["dojo/Deferred"]/</k@https://js.arcgis.com/3.14/init.js:189:431
.cache["dojo/Deferred"]/</m@https://js.arcgis.com/3.14/init.js:189:357
.cache["dojo/Deferred"]/</f/this.resolve@https://js.arcgis.com/3.14/init.js:191:441
n<._signIn/</</<@https://js.arcgis.com/3.14/esri/dijit/analysis/AnalysisBase.js:31:329
.cache["dojo/_base/lang"]/</g.hitch/<@https://js.arcgis.com/3.14/init.js:167:294
c@https://js.arcgis.com/3.14/init.js:66:221
d@https://js.arcgis.com/3.14/init.js:66:10
.cache["dojo/_base/Deferred"]/</b.Deferred/this.callback@https://js.arcgis.com/3.14/init.js:67:350
c@https://js.arcgis.com/3.14/init.js:66:401
d@https://js.arcgis.com/3.14/init.js:66:10
.cache["dojo/_base/Deferred"]/</b.Deferred/this.callback@https://js.arcgis.com/3.14/init.js:67:350
c@https://js.arcgis.com/3.14/init.js:66:401
d@https://js.arcgis.com/3.14/init.js:66:10
.cache["dojo/_base/Deferred"]/</b.Deferred/this.callback@https://js.arcgis.com/3.14/init.js:67:350
d/<@https://js.arcgis.com/3.14/init.js:904:16
c@https://js.arcgis.com/3.14/init.js:66:221
d@https://js.arcgis.com/3.14/init.js:66:10
.cache["dojo/_base/Deferred"]/</b.Deferred/this.callback@https://js.arcgis.com/3.14/init.js:67:350
c@https://js.arcgis.com/3.14/init.js:67:1
d@https://js.arcgis.com/3.14/init.js:66:10
.cache["dojo/_base/Deferred"]/</b.Deferred/this.callback@https://js.arcgis.com/3.14/init.js:67:350
c@https://js.arcgis.com/3.14/init.js:67:1
d@https://js.arcgis.com/3.14/init.js:66:10
.cache["dojo/_base/Deferred"]/</b.Deferred/this.callback@https://js.arcgis.com/3.14/init.js:67:350
c@https://js.arcgis.com/3.14/init.js:66:401
d@https://js.arcgis.com/3.14/init.js:66:10
.cache["dojo/_base/Deferred"]/</b.Deferred/this.callback@https://js.arcgis.com/3.14/init.js:67:350
c@https://js.arcgis.com/3.14/init.js:66:401
d@https://js.arcgis.com/3.14/init.js:66:10
.cache["dojo/_base/Deferred"]/</b.Deferred/this.callback@https://js.arcgis.com/3.14/init.js:67:350
.cache["dojo/_base/xhr"]/</b.xhr/<@https://js.arcgis.com/3.14/init.js:185:298
.cache["dojo/Deferred"]/</k@https://js.arcgis.com/3.14/init.js:189:431
.cache["dojo/Deferred"]/</m@https://js.arcgis.com/3.14/init.js:189:357
.cache["dojo/Deferred"]/</f/this.resolve@https://js.arcgis.com/3.14/init.js:191:441
.cache["dojo/Deferred"]/</a@https://js.arcgis.com/3.14/init.js:190:309
.cache["dojo/Deferred"]/</k@https://js.arcgis.com/3.14/init.js:190:70
.cache["dojo/Deferred"]/</m@https://js.arcgis.com/3.14/init.js:189:357
.cache["dojo/Deferred"]/</f/this.resolve@https://js.arcgis.com/3.14/init.js:191:441
.cache["dojo/Deferred"]/</a@https://js.arcgis.com/3.14/init.js:190:309
.cache["dojo/Deferred"]/</k@https://js.arcgis.com/3.14/init.js:190:103
.cache["dojo/Deferred"]/</m@https://js.arcgis.com/3.14/init.js:189:357
.cache["dojo/Deferred"]/</f/this.resolve@https://js.arcgis.com/3.14/init.js:191:441
.cache["dojo/Deferred"]/</a@https://js.arcgis.com/3.14/init.js:190:309
.cache["dojo/Deferred"]/</k@https://js.arcgis.com/3.14/init.js:190:70
.cache["dojo/Deferred"]/</m@https://js.arcgis.com/3.14/init.js:189:357
.cache["dojo/Deferred"]/</f/this.resolve@https://js.arcgis.com/3.14/init.js:191:441
q@https://js.arcgis.com/3.14/init.js:150:170
f@https://js.arcgis.com/3.14/init.js:154:199
EventListener.handleEvent*.cache["dojo/request/xhr"]/</d@https://js.arcgis.com/3.14/init.js:154:459
k@https://js.arcgis.com/3.14/init.js:151:105
.cache["dojo/_base/xhr"]/</b.xhr@https://js.arcgis.com/3.14/init.js:185:209
.cache["dojo/_base/xhr"]/</b.xhrGet@https://js.arcgis.com/3.14/init.js:185:1
x@https://js.arcgis.com/3.14/init.js:901:503
d@https://js.arcgis.com/3.14/init.js:903:245
y@https://js.arcgis.com/3.14/init.js:909:274
d/</<@https://js.arcgis.com/3.14/init.js:905:250
c@https://js.arcgis.com/3.14/init.js:66:221
d@https://js.arcgis.com/3.14/init.js:66:10
.cache["dojo/_base/Deferred"]/</b.Deferred/this.callback@https://js.arcgis.com/3.14/init.js:67:350
.cache["esri/IdentityManagerBase"]/</D<._doSignIn/d@https://js.arcgis.com/3.14/init.js:684:300
.cache["esri/IdentityManagerBase"]/</D<._doSignIn/h/<@https://js.arcgis.com/3.14/init.js:690:1
c@https://js.arcgis.com/3.14/init.js:66:221
d@https://js.arcgis.com/3.14/init.js:66:10
.cache["dojo/_base/Deferred"]/</b.Deferred/this.callback@https://js.arcgis.com/3.14/init.js:67:350
c@https://js.arcgis.com/3.14/init.js:67:1
d@https://js.arcgis.com/3.14/init.js:66:10
.cache["dojo/_base/Deferred"]/</b.Deferred/this.callback@https://js.arcgis.com/3.14/init.js:67:350
c@https://js.arcgis.com/3.14/init.js:66:401
d@https://js.arcgis.com/3.14/init.js:66:10
.cache["dojo/_base/Deferred"]/</b.Deferred/this.callback@https://js.arcgis.com/3.14/init.js:67:350
c@https://js.arcgis.com/3.14/init.js:66:401
d@https://js.arcgis.com/3.14/init.js:66:10
.cache["dojo/_base/Deferred"]/</b.Deferred/this.callback@https://js.arcgis.com/3.14/init.js:67:350
c@https://js.arcgis.com/3.14/init.js:66:401
d@https://js.arcgis.com/3.14/init.js:66:10
.cache["dojo/_base/Deferred"]/</b.Deferred/this.callback@https://js.arcgis.com/3.14/init.js:67:350
d/<@https://js.arcgis.com/3.14/init.js:904:16
c@https://js.arcgis.com/3.14/init.js:66:221
d@https://js.arcgis.com/3.14/init.js:66:10
.cache["dojo/_base/Deferred"]/</b.Deferred/this.callback@https://js.arcgis.com/3.14/init.js:67:350
c@https://js.arcgis.com/3.14/init.js:67:1
d@https://js.arcgis.com/3.14/init.js:66:10
.cache["dojo/_base/Deferred"]/</b.Deferred/this.callback@https://js.arcgis.com/3.14/init.js:67:350
c@https://js.arcgis.com/3.14/init.js:67:1
d@https://js.arcgis.com/3.14/init.js:66:10
.cache["dojo/_base/Deferred"]/</b.Deferred/this.callback@https://js.arcgis.com/3.14/init.js:67:350
c@https://js.arcgis.com/3.14/init.js:66:401
d@https://js.arcgis.com/3.14/init.js:66:10
1 init.js:182:169
.cache["dojo/_base/xhr"]/</x() init.js:182
.cache["dojo/_base/xhr"]/</b._ioSetArgs/<() init.js:181
c() init.js:66
d() init.js:66
.cache["dojo/_base/Deferred"]/</b.Deferred/this.callback() init.js:67
c() init.js:66
d() init.js:66
.cache["dojo/_base/Deferred"]/</b.Deferred/this.errback() init.js:68
c() init.js:66
d() init.js:66
.cache["dojo/_base/Deferred"]/</b.Deferred/this.errback() init.js:68
c() init.js:66
d() init.js:66
.cache["dojo/_base/Deferred"]/</b.Deferred/this.errback() init.js:68
.cache["dojo/_base/xhr"]/</b.xhr/<() init.js:185
.cache["dojo/Deferred"]/</k() init.js:189
.cache["dojo/Deferred"]/</f/b.then() init.js:192
.cache["dojo/promise/Promise"]/</<.otherwise() init.js:203
.cache["dojo/_base/xhr"]/</b.xhr() init.js:185
.cache["dojo/_base/xhr"]/</b.xhrGet() init.js:185
x() init.js:901
d() init.js:903
y() init.js:909
e<.postCreate() HelpWindow.js:6
.cache["dijit/_WidgetBase"]/</f<.create() init.js:1124
.cache["dijit/_WidgetBase"]/</f<.postscript() init.js:1122
d/<() init.js:98
.initHelpLinks() utils.js:5
.cache["dojo/_base/lang"]/</g._hitchArgs/<() init.js:166
.cache["dojo/Deferred"]/</k() init.js:189
.cache["dojo/Deferred"]/</m() init.js:189
.cache["dojo/Deferred"]/</f/this.resolve() init.js:191
n<._signIn/</</<() AnalysisBase.js:31
.cache["dojo/_base/lang"]/</g.hitch/<() init.js:167
c() init.js:66
d() init.js:66
.cache["dojo/_base/Deferred"]/</b.Deferred/this.callback() init.js:67
c() init.js:66
d() init.js:66
.cache["dojo/_base/Deferred"]/</b.Deferred/this.callback() init.js:67
c() init.js:66
d() init.js:66
.cache["dojo/_base/Deferred"]/</b.Deferred/this.callback() init.js:67
d/<() init.js:904
c() init.js:66
d() init.js:66
.cache["dojo/_base/Deferred"]/</b.Deferred/this.callback() init.js:67
c() init.js:67
d() init.js:66
.cache["dojo/_base/Deferred"]/</b.Deferred/this.callback() init.js:67
c() init.js:67
d() init.js:66
.cache["dojo/_base/Deferred"]/</b.Deferred/this.callback() init.js:67
c() init.js:66
d() init.js:66
.cache["dojo/_base/Deferred"]/</b.Deferred/this.callback() init.js:67
c() init.js:66
d() init.js:66
.cache["dojo/_base/Deferred"]/</b.Deferred/this.callback() init.js:67
.cache["dojo/_base/xhr"]/</b.xhr/<() init.js:185
.cache["dojo/Deferred"]/</k() init.js:189
.cache["dojo/Deferred"]/</m() init.js:189
.cache["dojo/Deferred"]/</f/this.resolve() init.js:191
.cache["dojo/Deferred"]/</a() init.js:190
.cache["dojo/Deferred"]/</k() init.js:190
.cache["dojo/Deferred"]/</m() init.js:189
.cache["dojo/Deferred"]/</f/this.resolve() init.js:191
.cache["dojo/Deferred"]/</a() init.js:190
.cache["dojo/Deferred"]/</k() init.js:190
.cache["dojo/Deferred"]/</m() init.js:189
.cache["dojo/Deferred"]/</f/this.resolve() init.js:191
.cache["dojo/Deferred"]/</a() init.js:190
.cache["dojo/Deferred"]/</k() init.js:190
.cache["dojo/Deferred"]/</m() init.js:189
.cache["dojo/Deferred"]/</f/this.resolve() init.js:191
q() init.js:150
f() init.js:154

 

 

If someone can enlighten me or give me ideas how to get more information, I thank you.

Outcomes