<?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: External HTTP request for GP submitJob fails to use a valid token requiring extra authentication in ArcGIS Enterprise Portal Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/external-http-request-for-gp-submitjob-fails-to/m-p/1417675#M15091</link>
    <description>&lt;P&gt;I have tested to generate a new token in the flow for the Server URLs:&lt;BR /&gt;-&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;&lt;A href="https://myesriportal.com/server" target="_blank" rel="noopener"&gt;https://myesriportal.com/server&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;-&amp;nbsp;&lt;SPAN class=""&gt;&lt;A href="https://myesriportal.com/server/rest/services/My_GP_Tools/GPServer/My_Tool/submitJob" target="_blank" rel="noopener"&gt;https://myesriportal.com/server/rest/services/My_GP_Tools/GPServer/My_Tool/submitJob&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Both did not help.&lt;BR /&gt;&lt;BR /&gt;I have also noticed that if I don't append any token&amp;nbsp; to the SubmitJob URL, my job does not get submitted returning Error 499 "Token required". It means that the server recognizes the token to be able to submit the job. But then the error happens during the GP execution when it tries to import the packages.&lt;BR /&gt;&lt;BR /&gt;The GP works well if I run it from Pro or REST service&lt;/P&gt;</description>
    <pubDate>Wed, 01 May 2024 17:58:01 GMT</pubDate>
    <dc:creator>EM-wsp</dc:creator>
    <dc:date>2024-05-01T17:58:01Z</dc:date>
    <item>
      <title>External HTTP request for GP submitJob fails to use a valid token requiring extra authentication</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/external-http-request-for-gp-submitjob-fails-to/m-p/1417353#M15081</link>
      <description>&lt;P&gt;I need to run a geoprocessing service as a part of the PowerAutomate Flow triggered by the S123 submission. From S123 user info, I have a valid token. The service is working and I am able to successfully run the tool using the REST form web interface, both with GET and POST requests. However, it returns the JobFailed status from Power Automate.&lt;BR /&gt;&lt;BR /&gt;I also see that if I copy and paste the GET request URL from the REST form back in a web browser, my GP job get submitted again but then fails with the same error as in PowerAutomate.&lt;BR /&gt;URL:&amp;nbsp;&lt;EM&gt;&lt;A href="https://myesriportal.com/server/rest/services/My_GP_Tools/GPServer/My_Tool/submitJob?env%3AoutSR=&amp;amp;env%3AprocessSR=&amp;amp;returnZ=false&amp;amp;returnM=false&amp;amp;returnTrueCurves=false&amp;amp;context=&amp;amp;f=html&amp;amp;token=mytoken" target="_blank"&gt;https://myesriportal.com/server/rest/services/My_GP_Tools/GPServer/My_Tool/submitJob?env%3AoutSR=&amp;amp;env%3AprocessSR=&amp;amp;returnZ=false&amp;amp;returnM=false&amp;amp;returnTrueCurves=false&amp;amp;context=&amp;amp;f=html&amp;amp;token=mytoken&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;Error:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EMwsp_0-1714523051073.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/102631i4F8E3CDAA9949A79/image-size/large?v=v2&amp;amp;px=999" role="button" title="EMwsp_0-1714523051073.png" alt="EMwsp_0-1714523051073.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;After digging into it, I see that while GET request just fails, POST request gets a redirect asking for an extra login, even though I have provided the valid token in the request. If I try to reach my Portal content in the Incognito window, I am able to get to the GP service level appeding the token to the url, but as soon as I click "Submit a job", it promts the login window. So it looks like the token doesn't get through to the SubmitJob function.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;As I said I need to call my GP service to be run from the PowerAutomate flow. I will appreciate all suggestions how to make it work.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2024 00:40:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/external-http-request-for-gp-submitjob-fails-to/m-p/1417353#M15081</guid>
      <dc:creator>EM-wsp</dc:creator>
      <dc:date>2024-05-01T00:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: External HTTP request for GP submitJob fails to use a valid token requiring extra authentication</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/external-http-request-for-gp-submitjob-fails-to/m-p/1417432#M15082</link>
      <description>&lt;P&gt;Just to clarify your workflow. is it this?:&lt;/P&gt;&lt;P&gt;S123 submission &amp;gt; S123 Webhook &amp;gt; PowerAutomate &amp;gt; Geoprocessing tool&amp;nbsp;&lt;/P&gt;&lt;P&gt;At a initial guess, It seems like the token is invalid. If the workflow above is correct, I would assume you have to build in some logic at the PowerAutomate step to request a new token as I &lt;EM&gt;believe&amp;nbsp;&lt;/EM&gt;the S123 token is only valid for the device and session the token is currently being used.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2024 08:26:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/external-http-request-for-gp-submitjob-fails-to/m-p/1417432#M15082</guid>
      <dc:creator>A_Wyn_Jones</dc:creator>
      <dc:date>2024-05-01T08:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: External HTTP request for GP submitJob fails to use a valid token requiring extra authentication</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/external-http-request-for-gp-submitjob-fails-to/m-p/1417628#M15089</link>
      <description>&lt;P&gt;Thank you for your reply.&lt;BR /&gt;&lt;BR /&gt;Yes, the workflow is exactly as you put it. I could test to request a new token, however my primary concern is the following.&lt;BR /&gt;&lt;BR /&gt;Let's forget about the Power Automate piece.&amp;nbsp; I am logged in and able to run my GP tool with help of the REST interface in browser. So I presume that I am in a valid session for running the tool. I have a URL for my SubmitJob request. However, if I copy and paste my URL in browser with a valid token appended, the job will be submitted and then fail. So it looks like &lt;STRONG&gt;the token doesn't get through with the SubmitJob request&lt;/STRONG&gt;. Or do I append it in a wrong way?&lt;BR /&gt;&lt;BR /&gt;SubmitJob URL:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EMwsp_0-1714580972400.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/102686i38B170BD35F33215/image-size/large?v=v2&amp;amp;px=999" role="button" title="EMwsp_0-1714580972400.png" alt="EMwsp_0-1714580972400.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2024 16:31:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/external-http-request-for-gp-submitjob-fails-to/m-p/1417628#M15089</guid>
      <dc:creator>EM-wsp</dc:creator>
      <dc:date>2024-05-01T16:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: External HTTP request for GP submitJob fails to use a valid token requiring extra authentication</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/external-http-request-for-gp-submitjob-fails-to/m-p/1417675#M15091</link>
      <description>&lt;P&gt;I have tested to generate a new token in the flow for the Server URLs:&lt;BR /&gt;-&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;&lt;A href="https://myesriportal.com/server" target="_blank" rel="noopener"&gt;https://myesriportal.com/server&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;-&amp;nbsp;&lt;SPAN class=""&gt;&lt;A href="https://myesriportal.com/server/rest/services/My_GP_Tools/GPServer/My_Tool/submitJob" target="_blank" rel="noopener"&gt;https://myesriportal.com/server/rest/services/My_GP_Tools/GPServer/My_Tool/submitJob&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Both did not help.&lt;BR /&gt;&lt;BR /&gt;I have also noticed that if I don't append any token&amp;nbsp; to the SubmitJob URL, my job does not get submitted returning Error 499 "Token required". It means that the server recognizes the token to be able to submit the job. But then the error happens during the GP execution when it tries to import the packages.&lt;BR /&gt;&lt;BR /&gt;The GP works well if I run it from Pro or REST service&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2024 17:58:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/external-http-request-for-gp-submitjob-fails-to/m-p/1417675#M15091</guid>
      <dc:creator>EM-wsp</dc:creator>
      <dc:date>2024-05-01T17:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: External HTTP request for GP submitJob fails to use a valid token requiring extra authentication</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/external-http-request-for-gp-submitjob-fails-to/m-p/1606303#M16441</link>
      <description>&lt;P&gt;Hi there, thanks for sharing this. I'm also trying to deploy a custom widget with a button to trigger a GP service thats hosted on our enterprise server. I'm wondering whether you've encountered issue such that I'm able to run the GP service successfully with my local ArcGIS Experience Builder developer edition with no issue, but once I get the widget deployed, it's always getting stuck at the first step with an error message that says "t.submitJob() is not a function" .... have you met this issue? any insights on how to debug this? Thank you!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ENGEOGIS1_0-1744762982791.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/130319i5F3DD1184F9E472B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ENGEOGIS1_0-1744762982791.png" alt="ENGEOGIS1_0-1744762982791.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Apr 2025 00:23:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/external-http-request-for-gp-submitjob-fails-to/m-p/1606303#M16441</guid>
      <dc:creator>ENGEOGIS1</dc:creator>
      <dc:date>2025-04-16T00:23:07Z</dc:date>
    </item>
  </channel>
</rss>

