<?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 How to open a Mobile Geodatabase? in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-open-a-mobile-geodatabase/m-p/1010805#M5890</link>
    <description>&lt;P&gt;Hi -&lt;/P&gt;&lt;P&gt;I get an exception trying to open a mobile geodatabase.&lt;/P&gt;&lt;P&gt;Is there a snippet for this somewhere?&lt;/P&gt;&lt;P&gt;Thanks, Kirk&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;public static void Test3()
{
    var mgdbPath = @"D:\nhd_data\Mobile2.geodatabase";
    if (!File.Exists(mgdbPath))
        throw new FileNotFoundException(mgdbPath);
    var cn = new DatabaseConnectionProperties(EnterpriseDatabaseType.SQLite)
    { 
        Database = mgdbPath //anything else to set??
    };

    using (var gdb = new Geodatabase(cn)) //exception here
    {
        var c = gdb.GetDefinitions&amp;lt;FeatureClassDefinition&amp;gt;().Count();
        Debug.Print($"count {c}");
    }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Dec 2020 22:29:58 GMT</pubDate>
    <dc:creator>KirkKuykendall1</dc:creator>
    <dc:date>2020-12-17T22:29:58Z</dc:date>
    <item>
      <title>How to open a Mobile Geodatabase?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-open-a-mobile-geodatabase/m-p/1010805#M5890</link>
      <description>&lt;P&gt;Hi -&lt;/P&gt;&lt;P&gt;I get an exception trying to open a mobile geodatabase.&lt;/P&gt;&lt;P&gt;Is there a snippet for this somewhere?&lt;/P&gt;&lt;P&gt;Thanks, Kirk&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;public static void Test3()
{
    var mgdbPath = @"D:\nhd_data\Mobile2.geodatabase";
    if (!File.Exists(mgdbPath))
        throw new FileNotFoundException(mgdbPath);
    var cn = new DatabaseConnectionProperties(EnterpriseDatabaseType.SQLite)
    { 
        Database = mgdbPath //anything else to set??
    };

    using (var gdb = new Geodatabase(cn)) //exception here
    {
        var c = gdb.GetDefinitions&amp;lt;FeatureClassDefinition&amp;gt;().Count();
        Debug.Print($"count {c}");
    }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2020 22:29:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-open-a-mobile-geodatabase/m-p/1010805#M5890</guid>
      <dc:creator>KirkKuykendall1</dc:creator>
      <dc:date>2020-12-17T22:29:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to open a Mobile Geodatabase?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-open-a-mobile-geodatabase/m-p/1010812#M5891</link>
      <description>&lt;P&gt;Hi Kirk,&lt;/P&gt;&lt;P&gt;The Pro SDK doesn't yet support directly opening mobile&amp;nbsp;geodatabases. &amp;nbsp;You can get a feature class or table that comes from a mobile&amp;nbsp;geodatabase by getting it from the map, and you can open a SQLite database as a Database using Database(SQLiteConnectionPath), but that doesn't give you the same capabilities.&lt;/P&gt;&lt;P&gt;We're hoping to get this into the next release of Pro.&lt;/P&gt;&lt;P&gt;Sorry I cannot help more,&lt;/P&gt;&lt;P&gt;--Rich&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2020 22:48:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-open-a-mobile-geodatabase/m-p/1010812#M5891</guid>
      <dc:creator>RichRuh</dc:creator>
      <dc:date>2020-12-17T22:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to open a Mobile Geodatabase?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-open-a-mobile-geodatabase/m-p/1405456#M11324</link>
      <description>&lt;P&gt;I just realized that I never went back and updated this thread.&lt;/P&gt;&lt;P&gt;We added support for mobile&amp;nbsp;geodatabases in Pro 3.0, which shipped in June 2022. Instead of using DatabaseConnectionProperties as shown in Kirk's code, you should use the &lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic72301.html" target="_self"&gt;MobileGeodatabaseConnectionPath&lt;/A&gt; class.&lt;/P&gt;&lt;P&gt;--Rich&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 20:41:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-open-a-mobile-geodatabase/m-p/1405456#M11324</guid>
      <dc:creator>RichRuh</dc:creator>
      <dc:date>2024-04-03T20:41:22Z</dc:date>
    </item>
  </channel>
</rss>

