<?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: AGSRouteTask doesn't get default params (offline) in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agsroutetask-doesn-t-get-default-params-offline/m-p/758882#M6792</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tércyo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on my understanding, this is more related to a tn file issue when you generate the Network Dataset from ArcMap. I did a test on ArcMap 10.2.2 to generate a Network Dataset, even though I choose do not use traffic data and it turns out when I create the Runtime Content I still have this "historical_traffic" file under the .tn folder and its 0 kb.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Here is a screenshot to show:&amp;nbsp;&lt;A class="link-titled" href="https://s24.postimg.org/6uyyhncut/historical_traffic.jpg" title="https://s24.postimg.org/6uyyhncut/historical_traffic.jpg"&gt;https://s24.postimg.org/6uyyhncut/historical_traffic.jpg&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore, I would say behind the code there is probably a mechanism to check the file to decide if there is any value for "defaultRouteParameters". All you need to do is make sure this "historical_traffic" file in there even it is empty.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try to generate a new Runtime Content and you will see the "historical_traffic" file will always in the .tn folder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this can help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Jan 2017 00:46:45 GMT</pubDate>
    <dc:creator>YueWu1</dc:creator>
    <dc:date>2017-01-04T00:46:45Z</dc:date>
    <item>
      <title>AGSRouteTask doesn't get default params (offline)</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agsroutetask-doesn-t-get-default-params-offline/m-p/758881#M6791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an application that downloads a zip file that contains the network files, and save it in Documents application folder.&lt;/P&gt;&lt;P&gt;The problem is that some networks don't have the &lt;EM&gt;&lt;STRONG&gt;_ND&lt;EM&gt;_&lt;/EM&gt;historical_traffic&lt;/STRONG&gt;&lt;/EM&gt; inside .tn folder. When this happens and i try to get the default params, i get the issue bellow:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Error Domain=com.esri.arcgis.runtime.error Code=3072 &lt;BR /&gt;"The transportation network data files could not be opened, and may be missing." &lt;BR /&gt;UserInfo={&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Additional Message=Network_index::open_file_sections_, &lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;NSLocalizedFailureReason=Network_index::open_file_sections_, &lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;NSLocalizedDescription=The transportation network data files could not be opened, &lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;and may be missing.&lt;BR /&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;let folderPath = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true)[0]
let gdbPath = folderPath.appending("/network/data.geodatabase")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
self.routeTask = AGSRouteTask(fileURLToDatabase: URL(string:gdbPath)!, networkName: "network_ND")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
self.getDefaultParameters()
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;func getDefaultParameters() {
&amp;nbsp;&amp;nbsp;&amp;nbsp; self.routeTask.defaultRouteParameters(completion: {(params: AGSRouteParameters?, error: Error?) -&amp;gt; Void in
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if let error = error {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print(error)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; self.params = params
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; })
}&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 08:10:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agsroutetask-doesn-t-get-default-params-offline/m-p/758881#M6791</guid>
      <dc:creator>TércyoStorck1</dc:creator>
      <dc:date>2021-12-12T08:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: AGSRouteTask doesn't get default params (offline)</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agsroutetask-doesn-t-get-default-params-offline/m-p/758882#M6792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tércyo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on my understanding, this is more related to a tn file issue when you generate the Network Dataset from ArcMap. I did a test on ArcMap 10.2.2 to generate a Network Dataset, even though I choose do not use traffic data and it turns out when I create the Runtime Content I still have this "historical_traffic" file under the .tn folder and its 0 kb.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Here is a screenshot to show:&amp;nbsp;&lt;A class="link-titled" href="https://s24.postimg.org/6uyyhncut/historical_traffic.jpg" title="https://s24.postimg.org/6uyyhncut/historical_traffic.jpg"&gt;https://s24.postimg.org/6uyyhncut/historical_traffic.jpg&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore, I would say behind the code there is probably a mechanism to check the file to decide if there is any value for "defaultRouteParameters". All you need to do is make sure this "historical_traffic" file in there even it is empty.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try to generate a new Runtime Content and you will see the "historical_traffic" file will always in the .tn folder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this can help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2017 00:46:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agsroutetask-doesn-t-get-default-params-offline/m-p/758882#M6792</guid>
      <dc:creator>YueWu1</dc:creator>
      <dc:date>2017-01-04T00:46:45Z</dc:date>
    </item>
  </channel>
</rss>

