<?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: &amp;quot;Send Web Request&amp;quot; step error in ArcGIS Workflow Manager Questions</title>
    <link>https://community.esri.com/t5/arcgis-workflow-manager-questions/quot-send-web-request-quot-step-error/m-p/1310958#M1882</link>
    <description>&lt;P&gt;In our implementation for 10.9.1 WFM, no customization is involved. Still facing such issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What could be possible solution...&lt;/P&gt;</description>
    <pubDate>Mon, 24 Jul 2023 12:28:25 GMT</pubDate>
    <dc:creator>PankajKumarSingh</dc:creator>
    <dc:date>2023-07-24T12:28:25Z</dc:date>
    <item>
      <title>"Send Web Request" step error</title>
      <link>https://community.esri.com/t5/arcgis-workflow-manager-questions/quot-send-web-request-quot-step-error/m-p/1206770#M1706</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;ArcGIS enterprise version: 10.9.1 &amp;amp; ArcGIS Pro V 3.0&lt;/P&gt;&lt;P&gt;We are using ArcGIS Workflow Manager Server (service-driven).&lt;/P&gt;&lt;P&gt;When we try the following REST Query URL in browser&lt;/P&gt;&lt;P&gt;Input URL-1:&lt;BR /&gt;&lt;A href="https://sampleserver6.arcgisonline.com/arcgis/rest/services/SampleWorldCities/MapServer/0/query?where=" target="_blank" rel="noopener"&gt;https://sampleserver6.arcgisonline.com/arcgis/rest/services/SampleWorldCities/MapServer/0/query?where=&lt;/A&gt;&lt;STRONG&gt;POP+%3D+521934&lt;/STRONG&gt;&amp;amp;returnCountOnly=true&amp;amp;f=pjson&lt;/P&gt;&lt;P&gt;Output result:&lt;BR /&gt;{&lt;BR /&gt;"count": 1&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;We have created simple workflow diagram using&lt;SPAN&gt;&amp;nbsp;"Send Web Request" step and configured the above mentioned&amp;nbsp;Input URL-1, getting the output result ("count": 1) as expected.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sirishb_2-1661526378638.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/49558iBB82BF8ADCD8C197/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sirishb_2-1661526378638.png" alt="sirishb_2-1661526378638.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;---------------------------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;When we try the following REST Query URL in browser&lt;/P&gt;&lt;P&gt;Input URL-2:&lt;BR /&gt;&lt;A href="https://sampleserver6.arcgisonline.com/arcgis/rest/services/SampleWorldCities/MapServer/0/query?where=" target="_blank" rel="noopener"&gt;https://sampleserver6.arcgisonline.com/arcgis/rest/services/SampleWorldCities/MapServer/0/query?where=&lt;/A&gt;&lt;STRONG&gt;POP+%3D+1&lt;/STRONG&gt;&amp;amp;returnCountOnly=true&amp;amp;f=pjson&lt;/P&gt;&lt;P&gt;Output result:&lt;BR /&gt;{&lt;BR /&gt;"count": 0&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;We have created simple workflow diagram using&lt;SPAN&gt;&amp;nbsp;"Send Web Request" step and configured the above mentioned&amp;nbsp;Input URL-2, getting the following error and unable to proceed with the next steps.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sirishb_0-1661525815705.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/49554i4C573525C6E57F0D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sirishb_0-1661525815705.png" alt="sirishb_0-1661525815705.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We have chosen&amp;nbsp;"Expressions" under&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;Path Logic&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;options.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sirishb_1-1661526169373.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/49555iA3968C470230578C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sirishb_1-1661526169373.png" alt="sirishb_1-1661526169373.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expected behavior&lt;/STRONG&gt;: we should get&amp;nbsp;&lt;SPAN&gt;the output result ("count": 0)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Appreciate any help on this. Thanks.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sirish&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2022 15:08:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-workflow-manager-questions/quot-send-web-request-quot-step-error/m-p/1206770#M1706</guid>
      <dc:creator>sirishb</dc:creator>
      <dc:date>2022-08-26T15:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: "Send Web Request" step error</title>
      <link>https://community.esri.com/t5/arcgis-workflow-manager-questions/quot-send-web-request-quot-step-error/m-p/1207073#M1707</link>
      <description>&lt;P&gt;We have found some workaround....&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;getting error.&lt;/STRONG&gt;...when we use the following arcade expression&lt;/P&gt;&lt;P&gt;Boolean(JobOutputValue($Job, 'd8136a1e-4d48-4faa-94b9-859f64a09847', 'count1') == 0)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Not getting error&lt;/STRONG&gt;....when we use the following arcade expression&lt;/P&gt;&lt;P&gt;Boolean(JobOutputValue($Job, 'd8136a1e-4d48-4faa-94b9-859f64a09847', 'count1') &amp;lt;= 0)&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2022 05:42:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-workflow-manager-questions/quot-send-web-request-quot-step-error/m-p/1207073#M1707</guid>
      <dc:creator>sirishb</dc:creator>
      <dc:date>2022-08-29T05:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: "Send Web Request" step error</title>
      <link>https://community.esri.com/t5/arcgis-workflow-manager-questions/quot-send-web-request-quot-step-error/m-p/1208462#M1714</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/423103"&gt;@sirishb&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thank you for your question.&amp;nbsp; In ArcGIS Workflow Manager 10.9.1 and 11 I was unable to reproduce this issue following the posted steps, however it may be due to either an issue with the Arcade expression or the authentication configuration. &amp;nbsp;One way I was able to reproduce the behavior you saw was when there was a mismatch between the step ID used in the Arcade expression and the Send Web Request step’s ID, if you can confirm whether that’s the case.&amp;nbsp; I also see the same behavior when the request’s authentication is incorrect, i.e. an invalid or expired token.&lt;/P&gt;&lt;P&gt;If there are no issues there then I recommend you reach out to &lt;A href="https://support.esri.com/en/" target="_blank"&gt;Technical Support&lt;/A&gt; so they can help you investigate this issue further.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Robert Smith&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2022 21:28:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-workflow-manager-questions/quot-send-web-request-quot-step-error/m-p/1208462#M1714</guid>
      <dc:creator>RobertSmith1</dc:creator>
      <dc:date>2022-08-31T21:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: "Send Web Request" step error</title>
      <link>https://community.esri.com/t5/arcgis-workflow-manager-questions/quot-send-web-request-quot-step-error/m-p/1208540#M1715</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/28954"&gt;@RobertSmith1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;We are&amp;nbsp;not getting error when we use '&amp;lt;=0' in arcade expression in this way we can confirm that, it is not an issue with "&lt;SPAN&gt;step ID" or "Authentication".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;We are getting error when we use '== 0' in arcade expression.&lt;/P&gt;&lt;P&gt;We are contacting &lt;A href="https://support.esri.com/en/" target="_blank" rel="nofollow noopener noreferrer"&gt;Technical Support&lt;/A&gt;&amp;nbsp;and will keep posted here once we get resilution from Techsupport.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Sirish&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 03:10:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-workflow-manager-questions/quot-send-web-request-quot-step-error/m-p/1208540#M1715</guid>
      <dc:creator>sirishb</dc:creator>
      <dc:date>2022-09-01T03:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: "Send Web Request" step error</title>
      <link>https://community.esri.com/t5/arcgis-workflow-manager-questions/quot-send-web-request-quot-step-error/m-p/1237671#M1757</link>
      <description>&lt;P&gt;We had a very similar problem in directing path logic. here is the explanation from our (esri.australia technical rep Razi Mosadeghi). I have verified that the suggested fixes work&lt;/P&gt;&lt;P&gt;Please find below the explanation they have provided on why&amp;nbsp;Boolean(jobExtendedProperty($job, 'switchtable', 'nerrors')== 0)&amp;nbsp;Does not work:&lt;/P&gt;&lt;P&gt;It appears == 0 returns the string representation of the value here and not the actual value (an integer).&lt;/P&gt;&lt;P&gt;In addition, core Arcade logic is playing a role here as well. In Arcade, the &amp;gt; and &amp;lt; operations will first try to evaluate the result as a string value. If that fails (because you aren't using a string), it will then try to evaluate the result as a integer, which is what we are using here. The == function doesn't have that same logic. It tries to compare a string to a string and then will fail if it can't.&lt;/P&gt;&lt;P&gt;So, if you would like to use == 0 logic, we would need to do either one of the following:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Use &lt;STRONG&gt;Number&lt;/STRONG&gt;(jobExtendedProperty($job, 'tablenew', 'arcade')) == 0 when using an integer value&lt;/LI&gt;&lt;LI&gt;Or, use jobExtendedProperty($job, 'tablenew', 'arcade')) == &lt;STRONG&gt;'0'&lt;/STRONG&gt; if you are ok with using a string representation of the value&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Mon, 05 Dec 2022 05:50:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-workflow-manager-questions/quot-send-web-request-quot-step-error/m-p/1237671#M1757</guid>
      <dc:creator>StefanDieters</dc:creator>
      <dc:date>2022-12-05T05:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: "Send Web Request" step error</title>
      <link>https://community.esri.com/t5/arcgis-workflow-manager-questions/quot-send-web-request-quot-step-error/m-p/1310958#M1882</link>
      <description>&lt;P&gt;In our implementation for 10.9.1 WFM, no customization is involved. Still facing such issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What could be possible solution...&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2023 12:28:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-workflow-manager-questions/quot-send-web-request-quot-step-error/m-p/1310958#M1882</guid>
      <dc:creator>PankajKumarSingh</dc:creator>
      <dc:date>2023-07-24T12:28:25Z</dc:date>
    </item>
  </channel>
</rss>

