<?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 GenerateOfflineMapJob GetResultAsync not giving appropriate response in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/generateofflinemapjob-getresultasync-not-giving/m-p/103013#M1152</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 15px;"&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 15px;"&gt;I am trying to download an offline map from my Web Map using the GenerateOfflineMapJob task in my Xamarin Forms project. However, I am facing below two issues,&amp;nbsp;please help me with these :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 15px;"&gt;Code Syn&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 15px;"&gt;1. Once the download starts, and if the application goes in background, then because of backgrounding the job download stops, progress changes from 40-50 to direct&amp;nbsp;&amp;nbsp;100%, but&amp;nbsp;GetResultAsync() status is coming "Succeeded"&amp;nbsp;and it is not returning any error, so how can I identify an error in such scenarios.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 15px;"&gt;2. On my map, I have a few shapefile layers overlayed, and below are two scenarios related to it :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 15px;"&gt;a) If I select features,&amp;nbsp;combine extents of these features using&amp;nbsp;GeometryEngine.CombineExtents&amp;nbsp; to calculate offline download extent, download&amp;nbsp; result gives an error related to Vector Tile(my base map in web map) ( error message e.g.&amp;nbsp;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;VectorTile_118: For input string: "{"xmin":-12696158.575750671”)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-weight: normal; text-decoration: none; font-size: 15px;"&gt;b) If&amp;nbsp;I select all feature layers full extent&amp;nbsp; as offline download extent&amp;nbsp; &amp;nbsp;GeometryEngine.CombineExtents(SBUMapView.Map.OperationalLayers.Select(x =&amp;gt; x.FullExtent)), it gets downloaded successfully.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-weight: normal; text-decoration: none; font-size: 15px;"&gt;What is the cause of error in the first case?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-weight: normal; text-decoration: none; font-size: 15px;"&gt;package&amp;nbsp;version in use - Esri.ArcGISRuntime.Xamarin.Forms (100.7.0 )&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-weight: normal; text-decoration: none; font-size: 15px;"&gt;Please help me with these issues.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-weight: normal; text-decoration: none; font-size: 15px;"&gt;Thanks in Advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Sep 2020 19:16:45 GMT</pubDate>
    <dc:creator>KavitaPandey</dc:creator>
    <dc:date>2020-09-22T19:16:45Z</dc:date>
    <item>
      <title>GenerateOfflineMapJob GetResultAsync not giving appropriate response</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/generateofflinemapjob-getresultasync-not-giving/m-p/103013#M1152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 15px;"&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 15px;"&gt;I am trying to download an offline map from my Web Map using the GenerateOfflineMapJob task in my Xamarin Forms project. However, I am facing below two issues,&amp;nbsp;please help me with these :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 15px;"&gt;Code Syn&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 15px;"&gt;1. Once the download starts, and if the application goes in background, then because of backgrounding the job download stops, progress changes from 40-50 to direct&amp;nbsp;&amp;nbsp;100%, but&amp;nbsp;GetResultAsync() status is coming "Succeeded"&amp;nbsp;and it is not returning any error, so how can I identify an error in such scenarios.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 15px;"&gt;2. On my map, I have a few shapefile layers overlayed, and below are two scenarios related to it :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 15px;"&gt;a) If I select features,&amp;nbsp;combine extents of these features using&amp;nbsp;GeometryEngine.CombineExtents&amp;nbsp; to calculate offline download extent, download&amp;nbsp; result gives an error related to Vector Tile(my base map in web map) ( error message e.g.&amp;nbsp;&lt;SPAN style="font-weight: normal; text-decoration: none;"&gt;VectorTile_118: For input string: "{"xmin":-12696158.575750671”)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-weight: normal; text-decoration: none; font-size: 15px;"&gt;b) If&amp;nbsp;I select all feature layers full extent&amp;nbsp; as offline download extent&amp;nbsp; &amp;nbsp;GeometryEngine.CombineExtents(SBUMapView.Map.OperationalLayers.Select(x =&amp;gt; x.FullExtent)), it gets downloaded successfully.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-weight: normal; text-decoration: none; font-size: 15px;"&gt;What is the cause of error in the first case?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-weight: normal; text-decoration: none; font-size: 15px;"&gt;package&amp;nbsp;version in use - Esri.ArcGISRuntime.Xamarin.Forms (100.7.0 )&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-weight: normal; text-decoration: none; font-size: 15px;"&gt;Please help me with these issues.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-weight: normal; text-decoration: none; font-size: 15px;"&gt;Thanks in Advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2020 19:16:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/generateofflinemapjob-getresultasync-not-giving/m-p/103013#M1152</guid>
      <dc:creator>KavitaPandey</dc:creator>
      <dc:date>2020-09-22T19:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: GenerateOfflineMapJob GetResultAsync not giving appropriate response</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/generateofflinemapjob-getresultasync-not-giving/m-p/103014#M1153</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;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;1. Once the download starts, and if the application goes in background, then because of backgrounding the job download stops, progress changes from 40-50 to direct&amp;nbsp;&amp;nbsp;100%, but&amp;nbsp;GetResultAsync() status is coming "Succeeded"&amp;nbsp;and it is not returning any error, so how can I identify an error in such scenarios.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the&amp;nbsp;&lt;A href="https://developers.arcgis.com/net/latest/wpf/api-reference/html/P_Esri_ArcGISRuntime_Tasks_Offline_GenerateOfflineMapResult_HasErrors.htm"&gt;GenerateOfflineMapResult.HasErrors Property&lt;/A&gt;&amp;nbsp;to determine if there are any errors.&lt;/P&gt;&lt;P&gt;It does sound like there may be an error during the offline map generation because the status goes directly to 100%.&lt;/P&gt;&lt;P&gt;We do recommend though that when you app may be backgrounded you use the following APIs to handle this scenario:&lt;/P&gt;&lt;P&gt;-&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/net/latest/wpf/api-reference/html/M_Esri_ArcGISRuntime_Tasks_Job_1_Pause.htm" title="https://developers.arcgis.com/net/latest/wpf/api-reference/html/M_Esri_ArcGISRuntime_Tasks_Job_1_Pause.htm"&gt;Job(T).Pause Method&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/net/latest/wpf/api-reference/html/M_Esri_ArcGISRuntime_Tasks_Job_1_ToJson.htm" title="https://developers.arcgis.com/net/latest/wpf/api-reference/html/M_Esri_ArcGISRuntime_Tasks_Job_1_ToJson.htm"&gt;Job(T).ToJson Method&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;-&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/net/latest/wpf/api-reference/html/M_Esri_ArcGISRuntime_Tasks_Offline_GenerateOfflineMapJob_FromJson.htm" title="https://developers.arcgis.com/net/latest/wpf/api-reference/html/M_Esri_ArcGISRuntime_Tasks_Offline_GenerateOfflineMapJob_FromJson.htm"&gt;GenerateOfflineMapJob.FromJson Method&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/net/latest/wpf/api-reference/html/M_Esri_ArcGISRuntime_Tasks_Job_1_Start.htm" title="https://developers.arcgis.com/net/latest/wpf/api-reference/html/M_Esri_ArcGISRuntime_Tasks_Job_1_Start.htm"&gt;Job(T).Start Method&lt;/A&gt;&amp;nbsp;(note this will resume if it was in progress)&lt;/P&gt;&lt;P&gt;-&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/net/latest/wpf/api-reference/html/M_Esri_ArcGISRuntime_Tasks_Job_1_CheckStatusAsync.htm" title="https://developers.arcgis.com/net/latest/wpf/api-reference/html/M_Esri_ArcGISRuntime_Tasks_Job_1_CheckStatusAsync.htm"&gt;Job(T).CheckStatusAsync Method&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;2. On my map, I have a few shapefile layers overlayed, and below are two scenarios related to it :&lt;/P&gt;&lt;P&gt;a) If I select features, combine extents of these features using GeometryEngine.CombineExtents to calculate offline download extent, download result gives an error related to Vector Tile(my base map in web map) ( error message e.g. VectorTile_118: For input string: "{"xmin":-12696158.575750671”)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible the union/combination of the extents of all features is greater that the full extent of the basemap?&lt;/P&gt;&lt;P&gt;Also, it may be worth checking the spatial references.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2020 00:27:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/generateofflinemapjob-getresultasync-not-giving/m-p/103014#M1153</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2020-09-25T00:27:28Z</dc:date>
    </item>
  </channel>
</rss>

