<?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 How to access Analysis result using REST API? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-access-analysis-result-using-rest-api/m-p/249289#M23091</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First of all, I set the proxy and get the response&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Flocalhost%2Fproxy%2FDotNet%2Fproxy.ashx%3Fhttps%3A%2F%2Fanalysis1.arcgis.com%2Farcgis%2Frest%2Fservices%2Ftasks%2FGPServer%3Ff%3Djson" target="_blank"&gt;http://localhost/proxy/DotNet/proxy.ashx?https://analysis1.arcgis.com/arcgis/rest/services/tasks/GPServer?f=json&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;{"currentVersion":10.4,"serviceDescription":"","tasks":["AggregatePoints","FindHotSpots","CreateBuffers","CreateDriveTimeAreas","DissolveBoundaries","MergeLayers","SummarizeWithin","EnrichLayer","OverlayLayers","ExtractData","FindExistingLocations","DeriveNewLocations","FieldCalculator","InterpolatePoints","CalculateDensity","SummarizeNearby","CreateViewshed","FindSimilarLocations","CreateWatersheds","
FindNearest","PlanRoutes","TraceDownstream","ConnectOriginsToDestinations","ChooseBestFacilities"],"executionType":"esriExecutionTypeAsynchronous","resultMapServerName":"","maximumRecords":10000}&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, I used the CreateBuffers Analysis.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Flocalhost%2Fproxy%2FDotNet%2Fproxy.ashx%3Fhttps%3A%2F%2Fanalysis1.arcgis.com%2Farcgis%2Frest%2Fservices%2Ftasks%2FGPServer%2FCreateBuffers%2FsubmitJob%3Ff%3Djson%26inputLayer%3D" target="_blank"&gt;http://localhost/proxy/DotNet/proxy.ashx?https://analysis1.arcgis.com/arcgis/rest/services/tasks/GPServer/CreateBuffers/submitJob?f=json&amp;amp;inputLayer=&lt;/A&gt;&lt;SPAN&gt;{"url":"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fservices6.arcgis.com%2F3xMWKvHmHKRqJGse%2Farcgis%2Frest%2Fservices%2FRoutefinderTestData%2FFeatureServer%2F0" target="_blank"&gt;https://services6.arcgis.com/3xMWKvHmHKRqJGse/arcgis/rest/services/RoutefinderTestData/FeatureServer/0&lt;/A&gt;&lt;SPAN&gt;"}&amp;amp;distances=[10.0]&amp;amp;units="Kilometers"&amp;amp;dissolveType="None"&amp;amp;ringType="Rings"&amp;amp;sideType="Full"&amp;amp;endtType="Round"&amp;amp;outputName={"serviceProperties": {"name": "schoolBuffer10"}}&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;The response is:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;{"jobId":"j47f2f17048c7441a8b9f2703935230af","jobStatus":"esriJobSubmitted","results":{},"inputs":{},"messages":[]}&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While I'm checking the analysis results, &lt;A href="http://analysis1.arcgis.com/arcgis/rest/services/tasks/GPServer/CreateBuffers/jobs/j47f2f17048c7441a8b9f2703935230af)" title="http://analysis1.arcgis.com/arcgis/rest/services/tasks/GPServer/CreateBuffers/jobs/j47f2f17048c7441a8b9f2703935230af)" rel="nofollow noopener noreferrer" target="_blank"&gt;http://analysis1.arcgis.com/arcgis/rest/services/tasks/GPServer/CreateBuffers/jobs/j47f2f17048c7441a8b9f2703935230af&lt;/A&gt;&lt;/P&gt;&lt;P&gt;then I got an error:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;{
&amp;nbsp; "error" : {
&amp;nbsp;&amp;nbsp;&amp;nbsp; "code" : 403,
&amp;nbsp;&amp;nbsp;&amp;nbsp; "message" : "Unable to process this request.",
&amp;nbsp;&amp;nbsp;&amp;nbsp; "details" : null
&amp;nbsp; }
}&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm puzzle about the operation and is there anything missed?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 12:23:37 GMT</pubDate>
    <dc:creator>LeoDeng</dc:creator>
    <dc:date>2021-12-11T12:23:37Z</dc:date>
    <item>
      <title>How to access Analysis result using REST API?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-access-analysis-result-using-rest-api/m-p/249289#M23091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First of all, I set the proxy and get the response&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Flocalhost%2Fproxy%2FDotNet%2Fproxy.ashx%3Fhttps%3A%2F%2Fanalysis1.arcgis.com%2Farcgis%2Frest%2Fservices%2Ftasks%2FGPServer%3Ff%3Djson" target="_blank"&gt;http://localhost/proxy/DotNet/proxy.ashx?https://analysis1.arcgis.com/arcgis/rest/services/tasks/GPServer?f=json&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;{"currentVersion":10.4,"serviceDescription":"","tasks":["AggregatePoints","FindHotSpots","CreateBuffers","CreateDriveTimeAreas","DissolveBoundaries","MergeLayers","SummarizeWithin","EnrichLayer","OverlayLayers","ExtractData","FindExistingLocations","DeriveNewLocations","FieldCalculator","InterpolatePoints","CalculateDensity","SummarizeNearby","CreateViewshed","FindSimilarLocations","CreateWatersheds","
FindNearest","PlanRoutes","TraceDownstream","ConnectOriginsToDestinations","ChooseBestFacilities"],"executionType":"esriExecutionTypeAsynchronous","resultMapServerName":"","maximumRecords":10000}&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, I used the CreateBuffers Analysis.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Flocalhost%2Fproxy%2FDotNet%2Fproxy.ashx%3Fhttps%3A%2F%2Fanalysis1.arcgis.com%2Farcgis%2Frest%2Fservices%2Ftasks%2FGPServer%2FCreateBuffers%2FsubmitJob%3Ff%3Djson%26inputLayer%3D" target="_blank"&gt;http://localhost/proxy/DotNet/proxy.ashx?https://analysis1.arcgis.com/arcgis/rest/services/tasks/GPServer/CreateBuffers/submitJob?f=json&amp;amp;inputLayer=&lt;/A&gt;&lt;SPAN&gt;{"url":"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fservices6.arcgis.com%2F3xMWKvHmHKRqJGse%2Farcgis%2Frest%2Fservices%2FRoutefinderTestData%2FFeatureServer%2F0" target="_blank"&gt;https://services6.arcgis.com/3xMWKvHmHKRqJGse/arcgis/rest/services/RoutefinderTestData/FeatureServer/0&lt;/A&gt;&lt;SPAN&gt;"}&amp;amp;distances=[10.0]&amp;amp;units="Kilometers"&amp;amp;dissolveType="None"&amp;amp;ringType="Rings"&amp;amp;sideType="Full"&amp;amp;endtType="Round"&amp;amp;outputName={"serviceProperties": {"name": "schoolBuffer10"}}&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;The response is:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;{"jobId":"j47f2f17048c7441a8b9f2703935230af","jobStatus":"esriJobSubmitted","results":{},"inputs":{},"messages":[]}&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While I'm checking the analysis results, &lt;A href="http://analysis1.arcgis.com/arcgis/rest/services/tasks/GPServer/CreateBuffers/jobs/j47f2f17048c7441a8b9f2703935230af)" title="http://analysis1.arcgis.com/arcgis/rest/services/tasks/GPServer/CreateBuffers/jobs/j47f2f17048c7441a8b9f2703935230af)" rel="nofollow noopener noreferrer" target="_blank"&gt;http://analysis1.arcgis.com/arcgis/rest/services/tasks/GPServer/CreateBuffers/jobs/j47f2f17048c7441a8b9f2703935230af&lt;/A&gt;&lt;/P&gt;&lt;P&gt;then I got an error:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;{
&amp;nbsp; "error" : {
&amp;nbsp;&amp;nbsp;&amp;nbsp; "code" : 403,
&amp;nbsp;&amp;nbsp;&amp;nbsp; "message" : "Unable to process this request.",
&amp;nbsp;&amp;nbsp;&amp;nbsp; "details" : null
&amp;nbsp; }
}&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm puzzle about the operation and is there anything missed?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:23:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-access-analysis-result-using-rest-api/m-p/249289#M23091</guid>
      <dc:creator>LeoDeng</dc:creator>
      <dc:date>2021-12-11T12:23:37Z</dc:date>
    </item>
  </channel>
</rss>

