<?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: No Data exception opening runtime geodatabase in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/no-data-exception-opening-runtime-geodatabase/m-p/580232#M7085</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I received this error when Norton data protector blocked attempt to lock file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Jan 2020 16:05:22 GMT</pubDate>
    <dc:creator>KevinHoman</dc:creator>
    <dc:date>2020-01-30T16:05:22Z</dc:date>
    <item>
      <title>No Data exception opening runtime geodatabase</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/no-data-exception-opening-runtime-geodatabase/m-p/580231#M7084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm writing a Xamarin.Forms application targeting iOS/Android/UWP. Runtime 100.3, I also tried 100.2.1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm attempting to side load a runtime geodatabase .geodatabase that I created in ArcGIS 10.3.1 for Desktop by adding a few layers to a .mxd and then clicking File-&amp;gt;Share As-&amp;gt;ArcGIS Runtime Content...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then copied the output .geodatabase file into the path of my application and load it with this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (System.IO.File.Exists(System.IO.Path.Combine(Storage.PublicFolderPath, "db.geodatabase")))&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Geodatabase gdb = await Geodatabase.OpenAsync(System.IO.Path.Combine(Storage.PublicFolderPath, "db.geodatabase"));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; foreach (GeodatabaseFeatureTable ft in gdb.GeodatabaseFeatureTables.Reverse())&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FeatureLayer fl = new FeatureLayer(ft);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _map.OperationalLayers.Add(fl);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works fine on iOS/UWP but on Android I get an unhandled exception trying to execute:&lt;/P&gt;&lt;P&gt;Geodatabase.OpenAsync(...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unhandled Exception:&lt;/P&gt;&lt;P&gt;Esri.ArcGISRuntime.ArcGISRuntimeException: No data occurred&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And thats all the info I get. I've tried a few different android devices and emulators and it always throws the same error. I tried modifying my database to remove some layers / tables but that didn't help. I'd think it was a data issue but it works find on iOS/UWP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2018 03:07:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/no-data-exception-opening-runtime-geodatabase/m-p/580231#M7084</guid>
      <dc:creator>BrianMarchionni1</dc:creator>
      <dc:date>2018-08-30T03:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: No Data exception opening runtime geodatabase</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/no-data-exception-opening-runtime-geodatabase/m-p/580232#M7085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I received this error when Norton data protector blocked attempt to lock file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2020 16:05:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/no-data-exception-opening-runtime-geodatabase/m-p/580232#M7085</guid>
      <dc:creator>KevinHoman</dc:creator>
      <dc:date>2020-01-30T16:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: No Data exception opening runtime geodatabase</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/no-data-exception-opening-runtime-geodatabase/m-p/580233#M7086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since this is Android only, are you sure that file is in that path you provided? What does File.Exists(...) return?&lt;BR /&gt;Does your app allow you to read from that location? (Try File.Open(...)).&lt;/P&gt;&lt;P&gt;How did you get the file onto the Android device? (Note that Android doesn't support the convenient 'Content' build action that iOS and UWP does)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This resource might also be helpful:&amp;nbsp;&lt;A class="link-titled" href="https://docs.microsoft.com/en-us/xamarin/android/platform/files/external-storage?tabs=windows" title="https://docs.microsoft.com/en-us/xamarin/android/platform/files/external-storage?tabs=windows"&gt;File access on external storage with Xamarin.Android - Xamarin | Microsoft Docs&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(and yes the error could be better - we're working on that)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2020 20:56:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/no-data-exception-opening-runtime-geodatabase/m-p/580233#M7086</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2020-01-30T20:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: No Data exception opening runtime geodatabase</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/no-data-exception-opening-runtime-geodatabase/m-p/580234#M7087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I also get this error. I'm trying to open a gdb but &lt;STRONG&gt;I'm on android only with Kotlin.&lt;/STRONG&gt; When I call Geodatabase(fakepath), and then run geodatabase.loadAsync(), I get a "File not found" exception. When I call Geodatabase(goodpath), and then run geodatabase.loadAsync() I get a "No data" exception. So it means my app can access the file. I tried generating the geodatabase with ArcGIS Pro and directly on AGS Server but it's the same issue.&amp;nbsp;The gdb is opened without issue on AGS Pro.&lt;/P&gt;&lt;P&gt;My code :&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #cc7832;"&gt;val &lt;/SPAN&gt;geodatabase = Geodatabase(context.getString(R.string.&lt;SPAN style="color: #9876aa;"&gt;offline_gdb_path&lt;/SPAN&gt;))
&lt;SPAN&gt;logDescription&lt;/SPAN&gt;(geodatabase.&lt;SPAN style="color: #9876aa;"&gt;path&lt;/SPAN&gt;)
&lt;SPAN&gt;logDescription&lt;/SPAN&gt;(&lt;SPAN style="color: #6a8759;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;${&lt;/SPAN&gt;geodatabase.&lt;SPAN style="color: #9876aa;"&gt;geodatabaseFeatureTables&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;"&lt;/SPAN&gt;)
geodatabase.loadAsync()
&lt;SPAN&gt;logDescription&lt;/SPAN&gt;(&lt;SPAN style="color: #6a8759;"&gt;"startLoadAsync"&lt;/SPAN&gt;)
geodatabase.addLoadStatusChangedListener &lt;SPAN style="font-weight: bold;"&gt;{
&lt;/SPAN&gt;&lt;SPAN style="font-weight: bold;"&gt;    &lt;/SPAN&gt;&lt;SPAN&gt;logDescription&lt;/SPAN&gt;(geodatabase.&lt;SPAN style="color: #9876aa;"&gt;loadStatus&lt;/SPAN&gt;.toString())
    &lt;SPAN&gt;logDescription&lt;/SPAN&gt;(geodatabase.&lt;SPAN style="color: #9876aa;"&gt;loadError&lt;/SPAN&gt;.&lt;SPAN style="color: #9876aa;"&gt;message&lt;/SPAN&gt;)
    &lt;SPAN&gt;logDescription&lt;/SPAN&gt;(geodatabase.&lt;SPAN style="color: #9876aa;"&gt;loadError&lt;/SPAN&gt;.&lt;SPAN style="color: #9876aa;"&gt;additionalMessage&lt;/SPAN&gt;)
&lt;SPAN style="font-weight: bold;"&gt;}
&lt;/SPAN&gt;geodatabase.addDoneLoadingListener &lt;SPAN style="font-weight: bold;"&gt;{
&lt;/SPAN&gt;&lt;SPAN style="font-weight: bold;"&gt;    &lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;if &lt;/SPAN&gt;(geodatabase.&lt;SPAN style="color: #9876aa;"&gt;loadStatus &lt;/SPAN&gt;== LoadStatus.&lt;SPAN style="color: #9876aa;"&gt;LOADED&lt;/SPAN&gt;) {
        &lt;SPAN&gt;logDescription&lt;/SPAN&gt;(&lt;SPAN style="color: #6a8759;"&gt;"Loaded"&lt;/SPAN&gt;)
        &lt;SPAN style="color: #808080;"&gt;//make a featurelayer from each feature table
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;        &lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;for &lt;/SPAN&gt;(featureTable &lt;SPAN style="color: #cc7832;"&gt;in &lt;/SPAN&gt;geodatabase.&lt;SPAN style="color: #9876aa;"&gt;geodatabaseFeatureTables&lt;/SPAN&gt;) {
            &lt;SPAN style="color: #cc7832;"&gt;val &lt;/SPAN&gt;featureLayer = FeatureLayer(featureTable)
            &lt;SPAN style="color: #9876aa;"&gt;mapView&lt;/SPAN&gt;.&lt;SPAN style="color: #9876aa;"&gt;map&lt;/SPAN&gt;.&lt;SPAN style="color: #9876aa;"&gt;operationalLayers&lt;/SPAN&gt;.add(featureLayer)
        }
    }
&lt;SPAN style="font-weight: bold;"&gt;}&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;When I open the gdb with AGS Pro, there are datas in the layers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 00:57:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/no-data-exception-opening-runtime-geodatabase/m-p/580234#M7087</guid>
      <dc:creator>ClémentLaskar</dc:creator>
      <dc:date>2021-12-12T00:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: No Data exception opening runtime geodatabase</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/no-data-exception-opening-runtime-geodatabase/m-p/580235#M7088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh well I found it, I had the wrong type of geodatabase. I found&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/android/10-2/guide/supported-geodatabase-formats.htm" title="https://developers.arcgis.com/android/10-2/guide/supported-geodatabase-formats.htm"&gt;Supported geodatabase formats—ArcGIS Runtime SDK for Android | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;and in fact I tried with the .gdb file which was the wrong one. I tried with a .geodatabase file and it's ok ! I don't know well the Esri solutions but it's a bit misleading to understand that geodatabase can mean 4 different things that are not treated the same way by all the solutions. Furthermore the "No data" message is not explicit at all...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2020 08:58:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/no-data-exception-opening-runtime-geodatabase/m-p/580235#M7088</guid>
      <dc:creator>ClémentLaskar</dc:creator>
      <dc:date>2020-02-05T08:58:33Z</dc:date>
    </item>
  </channel>
</rss>

