<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ArcGIS Online - Using Spatial Analysis Service From JS API in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-online-using-spatial-analysis-service-from/m-p/207042#M19234</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok managed to get this to work. It was a combination of things that was causing it to not work correctly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've managed to create a feature collection, load in the features to be analysed to this feature collection and send it to the service. Then I get a feature collection back and can add that to the map, so had to write a bit of code to get that to work.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Dec 2013 23:21:21 GMT</pubDate>
    <dc:creator>ShaunWeston</dc:creator>
    <dc:date>2013-12-11T23:21:21Z</dc:date>
    <item>
      <title>ArcGIS Online - Using Spatial Analysis Service From JS API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-online-using-spatial-analysis-service-from/m-p/207040#M19232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to use one of the spatial analysis services from a javascript app I've built, but having some issues. I'd like to use this service:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/en/rest/analysis/api-reference/find-hot-spots.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;https://developers.arcgis.com/en/rest/analysis/api-reference/find-hot-spots.htm&lt;BR /&gt;&lt;BR /&gt;A&lt;/A&gt;&lt;SPAN&gt;nd have a ArcGIS Online developer account. I basically have some code to request a token and send it with a featureset to this service and this is the reponse I get back from the service:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;OL&gt;
&lt;LI&gt;&lt;SPAN style="color:#881391;"&gt;inputs&lt;/SPAN&gt;: {}&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="color:#881391;"&gt;jobId&lt;/SPAN&gt;: &lt;SPAN style="color:#C41A16;"&gt;"j8c0cb0dbe6814e5b9ec3b29e8885da8f"&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="color:#881391;"&gt;jobStatus&lt;/SPAN&gt;: &lt;SPAN style="color:#C41A16;"&gt;"esriJobFailed"&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="color:#881391;"&gt;messages&lt;/SPAN&gt;: [{type:esriJobMessageTypeError,�?�},�?�]&lt;OL&gt;&lt;/OL&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="color:#881391;"&gt;0&lt;/SPAN&gt;: {type:esriJobMessageTypeError,�?�}&lt;OL&gt;&lt;/OL&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="color:#881391;"&gt;description&lt;/SPAN&gt;: &lt;SPAN style="color:#C41A16;"&gt;"{"messageCode": "AO_100007", "message": "FindHotSpots failed."}"&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="color:#881391;"&gt;type&lt;/SPAN&gt;: &lt;SPAN style="color:#C41A16;"&gt;"esriJobMessageTypeError"&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;&lt;LI&gt;&lt;SPAN style="color:#881391;"&gt;1&lt;/SPAN&gt;: {type:esriJobMessageTypeError, description:Failed to execute (FindHotSpots).}&lt;OL&gt;&lt;/OL&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="color:#881391;"&gt;description&lt;/SPAN&gt;: &lt;SPAN style="color:#C41A16;"&gt;"Failed to execute (FindHotSpots)."&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="color:#881391;"&gt;type&lt;/SPAN&gt;: &lt;SPAN style="color:#C41A16;"&gt;"esriJobMessageTypeError"&lt;/SPAN&gt;&lt;/LI&gt;

&lt;LI&gt;&lt;SPAN style="color:#881391;"&gt;2&lt;/SPAN&gt;: {type:esriJobMessageTypeError, description:Failed.}&lt;OL&gt;&lt;/OL&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="color:#881391;"&gt;description&lt;/SPAN&gt;: &lt;SPAN style="color:#C41A16;"&gt;"Failed."&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="color:#881391;"&gt;type&lt;/SPAN&gt;: &lt;SPAN style="color:#C41A16;"&gt;"esriJobMessageTypeError"&lt;/SPAN&gt;&lt;/LI&gt;


&lt;LI&gt;&lt;SPAN style="color:#881391;"&gt;results&lt;/SPAN&gt;: {}&lt;/LI&gt;
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;it's pretty vague, so I don't where it's going wrong, whether my inputs are wrong or what?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyone know?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:13:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-online-using-spatial-analysis-service-from/m-p/207040#M19232</guid>
      <dc:creator>ShaunWeston</dc:creator>
      <dc:date>2021-12-11T10:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Online - Using Spatial Analysis Service From JS API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-online-using-spatial-analysis-service-from/m-p/207041#M19233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok, so now I'm getting a different error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Consolas;"&gt;ERROR 000735: analysisLayer: Value is required&lt;/SPAN&gt;&lt;SPAN style="font-family:Consolas;"&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Also, with this sample:&lt;BR /&gt;&lt;/SPAN&gt;&lt;A href="http://developers.arcgis.com/en/javascript/samples/analysis_hotspot/"&gt;&lt;BR /&gt;http://developers.arcgis.com/en/javascript/samples/analysis_hotspot/&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I&lt;/A&gt;&lt;SPAN&gt;'ve tried with a couple of accounts (a developer account and an ArcGIS for organisations account) and it didn't work, then I tried with another account (another ArcGIS for organisations account) and it did work, so pretty confused how to use these services.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Dec 2013 20:23:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-online-using-spatial-analysis-service-from/m-p/207041#M19233</guid>
      <dc:creator>ShaunWeston</dc:creator>
      <dc:date>2013-12-10T20:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Online - Using Spatial Analysis Service From JS API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-online-using-spatial-analysis-service-from/m-p/207042#M19234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok managed to get this to work. It was a combination of things that was causing it to not work correctly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've managed to create a feature collection, load in the features to be analysed to this feature collection and send it to the service. Then I get a feature collection back and can add that to the map, so had to write a bit of code to get that to work.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Dec 2013 23:21:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-online-using-spatial-analysis-service-from/m-p/207042#M19234</guid>
      <dc:creator>ShaunWeston</dc:creator>
      <dc:date>2013-12-11T23:21:21Z</dc:date>
    </item>
  </channel>
</rss>

