<?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 Running Geoprocessing service with ArcGIS JS API on EXB custom widgets in ArcGIS Enterprise Portal Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/running-geoprocessing-service-with-arcgis-js-api/m-p/1606308#M16442</link>
    <description>&lt;P&gt;&lt;SPAN&gt;I'm trying to deploy a custom widget with a button to trigger a GP service that's hosted on our enterprise server. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I tried a few methods based on the Geoprocessor API such as&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geoprocessor.html#submitJob" target="_blank" rel="noopener"&gt;geoprocessor | API Reference | ArcGIS Maps SDK for JavaScript 4.32 | Esri Developer&lt;/A&gt;, and&amp;nbsp;&lt;A href="https://maps.planogis.org/arcgis_js_api/sdk/latest/api-reference/esri-tasks-Geoprocessor.html" target="_blank" rel="noopener"&gt;Geoprocessor | ArcGIS API for JavaScript 4.14&lt;/A&gt;, and ended up getting it work with the classical require() method to load up the geoprocessor library and use the &lt;STRONG&gt;submitJob(), waitForJobCompletion()&lt;/STRONG&gt; methods.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm able to run the GP service successfully with my local ArcGIS Experience Builder developer edition and get the result returned with no issue, but once I get the widget deployed (hosted with a manifest.json, etc.), it's always getting stuck at the first step with an error message that says "t.submitJob() is not a function".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ENGEOGIS1_0-1744763912203.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/130320iE08A2176D6DBA702/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ENGEOGIS1_0-1744763912203.png" alt="ENGEOGIS1_0-1744763912203.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Wondering if anyone has encountered similar issue, and if so, any suggestions on workarounds?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;P.S. I'm also able to get plain JS to work with the AMD approach via a standalone webapp, however it won't have the interaction with the existing elements inside the EXB app, which is critical to what I'm trying to do...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you and appreciate any help!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 16 Apr 2025 00:41:02 GMT</pubDate>
    <dc:creator>ENGEOGIS1</dc:creator>
    <dc:date>2025-04-16T00:41:02Z</dc:date>
    <item>
      <title>Running Geoprocessing service with ArcGIS JS API on EXB custom widgets</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/running-geoprocessing-service-with-arcgis-js-api/m-p/1606308#M16442</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I'm trying to deploy a custom widget with a button to trigger a GP service that's hosted on our enterprise server. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I tried a few methods based on the Geoprocessor API such as&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geoprocessor.html#submitJob" target="_blank" rel="noopener"&gt;geoprocessor | API Reference | ArcGIS Maps SDK for JavaScript 4.32 | Esri Developer&lt;/A&gt;, and&amp;nbsp;&lt;A href="https://maps.planogis.org/arcgis_js_api/sdk/latest/api-reference/esri-tasks-Geoprocessor.html" target="_blank" rel="noopener"&gt;Geoprocessor | ArcGIS API for JavaScript 4.14&lt;/A&gt;, and ended up getting it work with the classical require() method to load up the geoprocessor library and use the &lt;STRONG&gt;submitJob(), waitForJobCompletion()&lt;/STRONG&gt; methods.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm able to run the GP service successfully with my local ArcGIS Experience Builder developer edition and get the result returned with no issue, but once I get the widget deployed (hosted with a manifest.json, etc.), it's always getting stuck at the first step with an error message that says "t.submitJob() is not a function".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ENGEOGIS1_0-1744763912203.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/130320iE08A2176D6DBA702/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ENGEOGIS1_0-1744763912203.png" alt="ENGEOGIS1_0-1744763912203.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Wondering if anyone has encountered similar issue, and if so, any suggestions on workarounds?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;P.S. I'm also able to get plain JS to work with the AMD approach via a standalone webapp, however it won't have the interaction with the existing elements inside the EXB app, which is critical to what I'm trying to do...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you and appreciate any help!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Apr 2025 00:41:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/running-geoprocessing-service-with-arcgis-js-api/m-p/1606308#M16442</guid>
      <dc:creator>ENGEOGIS1</dc:creator>
      <dc:date>2025-04-16T00:41:02Z</dc:date>
    </item>
  </channel>
</rss>

