<?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 Using AGOL Routing Service in JSAPI 3.x in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/using-agol-routing-service-in-jsapi-3-x/m-p/1071626#M21020</link>
    <description>&lt;P&gt;Getting my feet wet with he world of routing. So I started with the simple 3.x example &lt;A href="https://developers.arcgis.com/javascript/3/sandbox/sandbox.html?sample=routetask_find_route" target="_self"&gt;here&lt;/A&gt; and wanted to expand on it.&lt;/P&gt;&lt;P&gt;I created an item in our Enterprise Portal for the &lt;A href="https://route.arcgis.com/arcgis/rest/services/World/Route/NAServer" target="_self"&gt;AGOL World Route&lt;/A&gt; service and provided my AGOL credentials. Then I plugged the URL for this item into the routeTask definition in the above referenced example, as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;routeTask = new RouteTask(&amp;lt;my enterprise URL&amp;gt;)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;When I try to run this, the call ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;routetask.solve(routeParams)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;fails and I see this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;error: {code: 404, messageCode: "POR_205244", message: "Your login session has been reset. Please try again.",…}
code: 404
details: []
message: "Your login session has been reset. Please try again."
messageCode: "POR_205244"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anything I need to change in AGOL or in my Enterprise Portal? Is there another, entirely different, approach to tap into a Routing services besides rolling your own on prem? New territory for me. Appreciate any feedback.&lt;/P&gt;</description>
    <pubDate>Wed, 23 Jun 2021 18:41:11 GMT</pubDate>
    <dc:creator>Arne_Gelfert</dc:creator>
    <dc:date>2021-06-23T18:41:11Z</dc:date>
    <item>
      <title>Using AGOL Routing Service in JSAPI 3.x</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/using-agol-routing-service-in-jsapi-3-x/m-p/1071626#M21020</link>
      <description>&lt;P&gt;Getting my feet wet with he world of routing. So I started with the simple 3.x example &lt;A href="https://developers.arcgis.com/javascript/3/sandbox/sandbox.html?sample=routetask_find_route" target="_self"&gt;here&lt;/A&gt; and wanted to expand on it.&lt;/P&gt;&lt;P&gt;I created an item in our Enterprise Portal for the &lt;A href="https://route.arcgis.com/arcgis/rest/services/World/Route/NAServer" target="_self"&gt;AGOL World Route&lt;/A&gt; service and provided my AGOL credentials. Then I plugged the URL for this item into the routeTask definition in the above referenced example, as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;routeTask = new RouteTask(&amp;lt;my enterprise URL&amp;gt;)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;When I try to run this, the call ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;routetask.solve(routeParams)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;fails and I see this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;error: {code: 404, messageCode: "POR_205244", message: "Your login session has been reset. Please try again.",…}
code: 404
details: []
message: "Your login session has been reset. Please try again."
messageCode: "POR_205244"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anything I need to change in AGOL or in my Enterprise Portal? Is there another, entirely different, approach to tap into a Routing services besides rolling your own on prem? New territory for me. Appreciate any feedback.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jun 2021 18:41:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/using-agol-routing-service-in-jsapi-3-x/m-p/1071626#M21020</guid>
      <dc:creator>Arne_Gelfert</dc:creator>
      <dc:date>2021-06-23T18:41:11Z</dc:date>
    </item>
  </channel>
</rss>

