<?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: RouteTask Failed to Load Cause Msg: Token Required in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/routetask-failed-to-load-cause-msg-token-required/m-p/1586670#M6282</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;What is the url of your route service? If you are using an API Key, does your API Key has &lt;A href="https://developers.arcgis.com/documentation/security-and-authentication/api-key-authentication/tutorials/manage-api-key-credentials/#edit-privileges" target="_self"&gt;privileges&lt;/A&gt; to access your route service?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Rama&lt;/P&gt;</description>
    <pubDate>Tue, 18 Feb 2025 22:06:14 GMT</pubDate>
    <dc:creator>RamaChintapalli</dc:creator>
    <dc:date>2025-02-18T22:06:14Z</dc:date>
    <item>
      <title>RouteTask Failed to Load Cause Msg: Token Required</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/routetask-failed-to-load-cause-msg-token-required/m-p/1586236#M6277</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm using ArcGIS Maps Sdk version:&lt;/P&gt;&lt;P&gt;implementation &lt;SPAN&gt;'com.esri.arcgisruntime:arcgis-android:100.15.6'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I' getting this below error while want to draw route path using multiple stop points in ArcGIS mapview&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;RouteTask Failed to Load Cause: com.esri.arcgisruntime.io.JsonEmbeddedException: Token Required&lt;BR /&gt;RouteTask Failed to Load Cause Msg: Token Required&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please find the below code to draw route between multiple points:&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;private fun &lt;/SPAN&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;drawRouteBetweenMultiplePointArcGIS&lt;/STRONG&gt;&lt;/FONT&gt;(listOfStops: ArrayList&amp;lt;Stop&amp;gt;) {&lt;BR /&gt;Log.e(&lt;SPAN&gt;TAG&lt;/SPAN&gt;, &lt;SPAN&gt;"######Inside drawRouteBetweenMultiplePointArcGIS########"&lt;/SPAN&gt;)&lt;BR /&gt;Log.e(&lt;SPAN&gt;TAG&lt;/SPAN&gt;, &lt;SPAN&gt;"listOfStops Size: &lt;/SPAN&gt;&lt;SPAN&gt;${&lt;/SPAN&gt;listOfStops.&lt;SPAN&gt;size&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;// Load RouteTask before using it&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;routeTask&lt;/SPAN&gt;.loadAsync()&lt;BR /&gt;&lt;SPAN&gt;routeTask&lt;/SPAN&gt;.addDoneLoadingListener &lt;SPAN&gt;{&lt;BR /&gt;&lt;/SPAN&gt;Log.e(&lt;SPAN&gt;TAG&lt;/SPAN&gt;, &lt;SPAN&gt;"@@@Inside routeTask.addDoneLoadingListener"&lt;/SPAN&gt;)&lt;BR /&gt;Log.e(&lt;SPAN&gt;TAG&lt;/SPAN&gt;, &lt;SPAN&gt;"routeTask.loadStatus &lt;/SPAN&gt;&lt;SPAN&gt;${&lt;/SPAN&gt;&lt;SPAN&gt;routeTask&lt;/SPAN&gt;.&lt;SPAN&gt;loadStatus&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;)&lt;BR /&gt;Log.e(&lt;SPAN&gt;TAG&lt;/SPAN&gt;, &lt;SPAN&gt;"RouteTask Failed to Load: &lt;/SPAN&gt;&lt;SPAN&gt;${&lt;/SPAN&gt;&lt;SPAN&gt;routeTask&lt;/SPAN&gt;.&lt;SPAN&gt;loadError&lt;/SPAN&gt;.&lt;SPAN&gt;message&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;)&lt;BR /&gt;Log.e(&lt;SPAN&gt;TAG&lt;/SPAN&gt;, &lt;SPAN&gt;"RouteTask Failed to Load Cause: &lt;/SPAN&gt;&lt;SPAN&gt;${&lt;/SPAN&gt;&lt;SPAN&gt;routeTask&lt;/SPAN&gt;.&lt;SPAN&gt;loadError&lt;/SPAN&gt;.&lt;SPAN&gt;cause&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;)&lt;BR /&gt;Log.e(&lt;SPAN&gt;TAG&lt;/SPAN&gt;, &lt;SPAN&gt;"RouteTask Failed to Load Cause Msg: &lt;/SPAN&gt;&lt;SPAN&gt;${&lt;/SPAN&gt;&lt;SPAN&gt;routeTask&lt;/SPAN&gt;.&lt;SPAN&gt;loadError&lt;/SPAN&gt;.&lt;SPAN&gt;cause&lt;/SPAN&gt;?.&lt;SPAN&gt;message&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;)&lt;BR /&gt;&lt;SPAN&gt;if &lt;/SPAN&gt;(&lt;SPAN&gt;routeTask&lt;/SPAN&gt;.&lt;SPAN&gt;loadStatus &lt;/SPAN&gt;== LoadStatus.&lt;SPAN&gt;LOADED&lt;/SPAN&gt;) {&lt;BR /&gt;Log.e(&lt;SPAN&gt;TAG&lt;/SPAN&gt;, &lt;SPAN&gt;"@@@Inside LoadStatus.LOADED"&lt;/SPAN&gt;)&lt;BR /&gt;&lt;SPAN&gt;// Create Route Parameters&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;val &lt;/SPAN&gt;routeParamsFuture = &lt;SPAN&gt;routeTask&lt;/SPAN&gt;.createDefaultParametersAsync()&lt;BR /&gt;routeParamsFuture.addDoneListener &lt;SPAN&gt;{&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;val &lt;/SPAN&gt;routeParams = routeParamsFuture.get()&lt;BR /&gt;routeParams.&lt;SPAN&gt;isReturnRoutes &lt;/SPAN&gt;= &lt;SPAN&gt;true&lt;BR /&gt;&lt;/SPAN&gt;routeParams.&lt;SPAN&gt;isReturnDirections &lt;/SPAN&gt;= &lt;SPAN&gt;true&lt;BR /&gt;&lt;/SPAN&gt;routeParams.&lt;SPAN&gt;isFindBestSequence &lt;/SPAN&gt;= &lt;SPAN&gt;true &lt;/SPAN&gt;&lt;SPAN&gt;// Enables shortest path optimization&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;// Get available travel modes and set driving mode&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;val &lt;/SPAN&gt;travelModes = &lt;SPAN&gt;routeTask&lt;/SPAN&gt;.&lt;SPAN&gt;routeTaskInfo&lt;/SPAN&gt;.&lt;SPAN&gt;travelModes&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;val &lt;/SPAN&gt;drivingMode = travelModes.&lt;SPAN&gt;find &lt;/SPAN&gt;&lt;SPAN&gt;{ it&lt;/SPAN&gt;.&lt;SPAN&gt;name&lt;/SPAN&gt;.&lt;SPAN&gt;contains&lt;/SPAN&gt;(&lt;SPAN&gt;"Driving"&lt;/SPAN&gt;, &lt;SPAN&gt;true&lt;/SPAN&gt;) &lt;SPAN&gt;}&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;if &lt;/SPAN&gt;(drivingMode != &lt;SPAN&gt;null&lt;/SPAN&gt;) {&lt;BR /&gt;routeParams.&lt;SPAN&gt;travelMode &lt;/SPAN&gt;= drivingMode&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;routeParams.setStops(listOfStops)&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;// Solve Route&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;val &lt;/SPAN&gt;routeResultFuture = &lt;SPAN&gt;routeTask&lt;/SPAN&gt;.solveRouteAsync(routeParams)&lt;BR /&gt;routeResultFuture.addDoneListener &lt;SPAN&gt;{&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;val &lt;/SPAN&gt;routeResult = routeResultFuture.get()&lt;BR /&gt;&lt;SPAN&gt;if &lt;/SPAN&gt;(routeResult.&lt;SPAN&gt;routes&lt;/SPAN&gt;.&lt;SPAN&gt;isNotEmpty&lt;/SPAN&gt;()) {&lt;BR /&gt;&lt;SPAN&gt;val &lt;/SPAN&gt;route = routeResult.&lt;SPAN&gt;routes&lt;/SPAN&gt;[&lt;SPAN&gt;0&lt;/SPAN&gt;] &lt;SPAN&gt;// Get the best route&lt;BR /&gt;&lt;/SPAN&gt;drawPolylineArcGIS(route) &lt;SPAN&gt;// Draw route on map&lt;BR /&gt;&lt;/SPAN&gt;}&lt;BR /&gt;&lt;SPAN&gt;}&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;BR /&gt;&lt;/SPAN&gt;}&lt;BR /&gt;&lt;SPAN&gt;}&lt;BR /&gt;&lt;/SPAN&gt;}&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;private fun &lt;/SPAN&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;drawPolylineArcGIS&lt;/STRONG&gt;&lt;/FONT&gt;(route: Route) {&lt;BR /&gt;&lt;SPAN&gt;val &lt;/SPAN&gt;routeGeometry = route.&lt;SPAN&gt;routeGeometry&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;// Create line symbol&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;val &lt;/SPAN&gt;lineSymbol = SimpleLineSymbol(SimpleLineSymbol.Style.&lt;SPAN&gt;SOLID&lt;/SPAN&gt;, Color.&lt;SPAN&gt;BLUE&lt;/SPAN&gt;, &lt;SPAN&gt;10f&lt;/SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;// Create polyline graphic&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;polylineGraphic &lt;/SPAN&gt;= Graphic(routeGeometry, lineSymbol)&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;// Add route graphic to map&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;mGraphicsOverlay&lt;/SPAN&gt;.&lt;SPAN&gt;graphics&lt;/SPAN&gt;.add(&lt;SPAN&gt;polylineGraphic&lt;/SPAN&gt;)&lt;BR /&gt;}&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I'm using runtime API key to validate ArcGIS mapView:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;private fun &lt;/SPAN&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;setArcMapAPIKey&lt;/STRONG&gt;&lt;/FONT&gt;() &lt;FONT color="#000000"&gt;{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;ArcGISRuntimeEnvironment.setApiKey(Constant.&lt;SPAN&gt;ARCGIS_MAP_API_KEY&lt;/SPAN&gt;)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;}&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#000000"&gt;Show currently, what steps need to be taken to solve this above issue?&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#000000"&gt;kindly suggest.&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 18 Feb 2025 06:53:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/routetask-failed-to-load-cause-msg-token-required/m-p/1586236#M6277</guid>
      <dc:creator>MottainaiRecycling</dc:creator>
      <dc:date>2025-02-18T06:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: RouteTask Failed to Load Cause Msg: Token Required</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/routetask-failed-to-load-cause-msg-token-required/m-p/1586670#M6282</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;What is the url of your route service? If you are using an API Key, does your API Key has &lt;A href="https://developers.arcgis.com/documentation/security-and-authentication/api-key-authentication/tutorials/manage-api-key-credentials/#edit-privileges" target="_self"&gt;privileges&lt;/A&gt; to access your route service?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Rama&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 22:06:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/routetask-failed-to-load-cause-msg-token-required/m-p/1586670#M6282</guid>
      <dc:creator>RamaChintapalli</dc:creator>
      <dc:date>2025-02-18T22:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: RouteTask Failed to Load Cause Msg: Token Required</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/routetask-failed-to-load-cause-msg-token-required/m-p/1586814#M6283</link>
      <description>&lt;P&gt;&lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;Url For Route Service:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;private val &lt;/SPAN&gt;&lt;SPAN&gt;routeTask &lt;/SPAN&gt;&lt;SPAN&gt;by &lt;/SPAN&gt;&lt;SPAN&gt;lazy &lt;/SPAN&gt;&lt;SPAN&gt;{&lt;BR /&gt;&lt;/SPAN&gt;RouteTask&lt;SPAN&gt;(&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;this,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;EM&gt;&lt;STRONG&gt;&lt;A href="https://route.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World" target="_blank"&gt;https://route.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World&lt;/A&gt;&lt;/STRONG&gt;&lt;/EM&gt;"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;FONT color="#3366FF"&gt;API key access&amp;nbsp;type:&lt;/FONT&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;STRONG&gt;Creator&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 19 Feb 2025 06:14:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/routetask-failed-to-load-cause-msg-token-required/m-p/1586814#M6283</guid>
      <dc:creator>MottainaiRecycling</dc:creator>
      <dc:date>2025-02-19T06:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: RouteTask Failed to Load Cause Msg: Token Required</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/routetask-failed-to-load-cause-msg-token-required/m-p/1587092#M6284</link>
      <description>&lt;P&gt;Can you go to the Developer Credential (API key) portal item and in the settings tab, do you see Routing enabled in available services ?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DeveloperCredential-Routing.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/125813i7E62F343BB259E8C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DeveloperCredential-Routing.png" alt="DeveloperCredential-Routing.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2025 17:58:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/routetask-failed-to-load-cause-msg-token-required/m-p/1587092#M6284</guid>
      <dc:creator>RamaChintapalli</dc:creator>
      <dc:date>2025-02-19T17:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: RouteTask Failed to Load Cause Msg: Token Required</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/routetask-failed-to-load-cause-msg-token-required/m-p/1587380#M6285</link>
      <description>&lt;P&gt;Yes Routing service is enabled on the used api key.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 07:36:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/routetask-failed-to-load-cause-msg-token-required/m-p/1587380#M6285</guid>
      <dc:creator>MottainaiRecycling</dc:creator>
      <dc:date>2025-02-20T07:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: RouteTask Failed to Load Cause Msg: Token Required</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/routetask-failed-to-load-cause-msg-token-required/m-p/1588775#M6286</link>
      <description>&lt;P&gt;If the API key has the permissions to access route service, I expect it to work. You if you have network debug tools (like Charles) to trace the traffic, you can see the logs to understand which token being used for the route solve operation and whether token being applied or not correctly.&lt;BR /&gt;&lt;BR /&gt;Also, would it be possible for you to share a repro case (similar to this &lt;A href="https://github.com/Esri/arcgis-runtime-samples-android/tree/main/kotlin/find-route" target="_self"&gt;sample&lt;/A&gt;) privately with me or contact &lt;A href="http://%20https://support.esri.com/en-us/contact" target="_self"&gt;customer support&lt;/A&gt; to debug into your app?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2025 22:54:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/routetask-failed-to-load-cause-msg-token-required/m-p/1588775#M6286</guid>
      <dc:creator>RamaChintapalli</dc:creator>
      <dc:date>2025-02-24T22:54:00Z</dc:date>
    </item>
  </channel>
</rss>

