<?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 Geodatabase initWithPath error in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/geodatabase-initwithpath-error/m-p/553507#M4746</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When the app is online, I create and save a geodatabase to disk.&lt;/P&gt;&lt;P&gt;When I NSLog the path, it looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;/var/mobile/Applications/4401076A-A1AA-4CFE-AF76-09FFDEE98B82/Documents/1300467805.geodatabase&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I put the phone in airplane mode and start the app again, i check for an internet connection and if none try and load the geodatabase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use initWithPath.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;AGSGDBGeodatabase *geo = [[AGSGDBGeodatabase alloc] initWithPath:geodatabasePath error:&amp;amp;error];&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;geodatabasePath comes from NSUserDefaults when the geodatabase is created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I keep getting the error:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
Error Domain=com.esri.arcgis.runtime.error Code=10003 
"Geodatbase at path '/var/mobile/Applications/4401076A-A1AA-4CFE-AF76-09FFDEE98B82/Documents/1300467805.geodatabase' not found." UserInfo=0x165a5d70 {NSLocalizedDescription=Geodatbase at path '/var/mobile/Applications/4401076A-A1AA-4CFE-AF76-09FFDEE98B82/Documents/1300467805.geodatabase' not found.}&lt;/PRE&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 23:55:31 GMT</pubDate>
    <dc:creator>KyleDunaway</dc:creator>
    <dc:date>2021-12-11T23:55:31Z</dc:date>
    <item>
      <title>Geodatabase initWithPath error</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/geodatabase-initwithpath-error/m-p/553507#M4746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When the app is online, I create and save a geodatabase to disk.&lt;/P&gt;&lt;P&gt;When I NSLog the path, it looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;/var/mobile/Applications/4401076A-A1AA-4CFE-AF76-09FFDEE98B82/Documents/1300467805.geodatabase&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I put the phone in airplane mode and start the app again, i check for an internet connection and if none try and load the geodatabase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use initWithPath.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;AGSGDBGeodatabase *geo = [[AGSGDBGeodatabase alloc] initWithPath:geodatabasePath error:&amp;amp;error];&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;geodatabasePath comes from NSUserDefaults when the geodatabase is created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I keep getting the error:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
Error Domain=com.esri.arcgis.runtime.error Code=10003 
"Geodatbase at path '/var/mobile/Applications/4401076A-A1AA-4CFE-AF76-09FFDEE98B82/Documents/1300467805.geodatabase' not found." UserInfo=0x165a5d70 {NSLocalizedDescription=Geodatbase at path '/var/mobile/Applications/4401076A-A1AA-4CFE-AF76-09FFDEE98B82/Documents/1300467805.geodatabase' not found.}&lt;/PRE&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:55:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/geodatabase-initwithpath-error/m-p/553507#M4746</guid>
      <dc:creator>KyleDunaway</dc:creator>
      <dc:date>2021-12-11T23:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: Geodatabase initWithPath error</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/geodatabase-initwithpath-error/m-p/553508#M4747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/44473"&gt;Kyle Dunaway&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you try checking the application data and see if the geodatabase file still exists?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not then this is how you can do it. Connect your device to your machine. In Xcode, go to "Window" (menu) and then "Devices". Select your device from the list on the left. You will see all the applications installed on your device. Double click on the application in question and you should see the files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Gagan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2015 18:42:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/geodatabase-initwithpath-error/m-p/553508#M4747</guid>
      <dc:creator>GagandeepSingh</dc:creator>
      <dc:date>2015-01-07T18:42:28Z</dc:date>
    </item>
  </channel>
</rss>

