<?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 Geoprocessing in Javascript API 4.6 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geoprocessing-in-javascript-api-4-6/m-p/683882#M63661</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fairly simple Javascript App (to others at least - I'm fairly new to this) - calls a GP Service, which simply buffers an address and returns other addresses in the specified buffer area.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using the Hotspot example from ESRI as a template:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/index.html?sample=geoprocessing-hotspot" title="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/index.html?sample=geoprocessing-hotspot"&gt;ArcGIS API for JavaScript Sandbox&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I click the button to run the GP service, it fails - and the message from both Dev tools and the ArcServer logs from the machine hosting the GP Service says 'Service .../MapServer not found'.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Even though the GP service URL in the html file is "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2F......%2FGPServer" rel="nofollow" target="_blank"&gt;https://....../GPServer&lt;/A&gt;&lt;SPAN&gt;..." it appears to be looking for a MapService.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The GP Service result is an in memory Feature Layer - Not sure is this will work for display in a js app - the code is using 'getResultMapImageLayer' - my theory is this is the wrong way to go.&lt;/P&gt;&lt;P&gt;I see in older API versions there's lots of documentation on how to get GP Service results, but am not finding much in the 4.x stuff about returning/displaying FeatureLayer results.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Jan 2018 18:55:45 GMT</pubDate>
    <dc:creator>AllenScully</dc:creator>
    <dc:date>2018-01-26T18:55:45Z</dc:date>
    <item>
      <title>Geoprocessing in Javascript API 4.6</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geoprocessing-in-javascript-api-4-6/m-p/683882#M63661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fairly simple Javascript App (to others at least - I'm fairly new to this) - calls a GP Service, which simply buffers an address and returns other addresses in the specified buffer area.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using the Hotspot example from ESRI as a template:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/index.html?sample=geoprocessing-hotspot" title="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/index.html?sample=geoprocessing-hotspot"&gt;ArcGIS API for JavaScript Sandbox&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I click the button to run the GP service, it fails - and the message from both Dev tools and the ArcServer logs from the machine hosting the GP Service says 'Service .../MapServer not found'.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Even though the GP service URL in the html file is "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2F......%2FGPServer" rel="nofollow" target="_blank"&gt;https://....../GPServer&lt;/A&gt;&lt;SPAN&gt;..." it appears to be looking for a MapService.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The GP Service result is an in memory Feature Layer - Not sure is this will work for display in a js app - the code is using 'getResultMapImageLayer' - my theory is this is the wrong way to go.&lt;/P&gt;&lt;P&gt;I see in older API versions there's lots of documentation on how to get GP Service results, but am not finding much in the 4.x stuff about returning/displaying FeatureLayer results.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2018 18:55:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geoprocessing-in-javascript-api-4-6/m-p/683882#M63661</guid>
      <dc:creator>AllenScully</dc:creator>
      <dc:date>2018-01-26T18:55:45Z</dc:date>
    </item>
  </channel>
</rss>

