<?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: Error 1014 SQLite cannot open in Swift Maps SDK Questions</title>
    <link>https://community.esri.com/t5/swift-maps-sdk-questions/error-1014-sqlite-cannot-open/m-p/1379154#M205</link>
    <description>&lt;P&gt;Thanks.&amp;nbsp; I saw that post but it doesn't apply to this issue.&amp;nbsp; I think I found the solution though.&amp;nbsp; I found some references to layers/tables in the currently loaded map that were not set to nil before loading the new map.&amp;nbsp; I'll have to check tomorrow's download to see if I fixed it.&amp;nbsp; I'll post back....&lt;/P&gt;</description>
    <pubDate>Wed, 07 Feb 2024 16:10:14 GMT</pubDate>
    <dc:creator>DuanePfeiffer</dc:creator>
    <dc:date>2024-02-07T16:10:14Z</dc:date>
    <item>
      <title>Error 1014 SQLite cannot open</title>
      <link>https://community.esri.com/t5/swift-maps-sdk-questions/error-1014-sqlite-cannot-open/m-p/1378750#M203</link>
      <description>&lt;P&gt;I am experiencing a strange error when opening a just-downloaded .mmpk.&amp;nbsp; It only happens on the first download of the day.&amp;nbsp; All subsequent downloads and opens of the same .mmpk work just fine.&amp;nbsp; Same thing when I use a different iPad to download to.&amp;nbsp; Here are some code snippets:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;// destination
toURL = try! FileManager.default.url(for: .documentDirectory, in: .userDomainMask, appropriateFor: nil, create: false)

// after download code
            // SUCCESS, SAVE FILE
            if FileManager.default.fileExists(atPath: toURL.path) {
                try FileManager.default.removeItem(atPath: toURL.path)
            }
            try data.write(to: toURL)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2024 17:22:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/swift-maps-sdk-questions/error-1014-sqlite-cannot-open/m-p/1378750#M203</guid>
      <dc:creator>DuanePfeiffer</dc:creator>
      <dc:date>2024-02-06T17:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: Error 1014 SQLite cannot open</title>
      <link>https://community.esri.com/t5/swift-maps-sdk-questions/error-1014-sqlite-cannot-open/m-p/1378927#M204</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/143199"&gt;@DuanePfeiffer&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I'm not sure why you are getting SQLite 1014 error by just looking at the above code. However, there was another user who posted issue in the &lt;A href="https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/load-tables-and-layers-problem-sqlite-cannot-open/td-p/1230901" target="_self"&gt;thread&lt;/A&gt;&amp;nbsp;for the same error. Please check if same applied in your case. If not, I would appreciate if you can provide a reproducible Xcode project for us to debug. Please feel free to DM me.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nimesh&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2024 00:03:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/swift-maps-sdk-questions/error-1014-sqlite-cannot-open/m-p/1378927#M204</guid>
      <dc:creator>NimeshJarecha</dc:creator>
      <dc:date>2024-02-07T00:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: Error 1014 SQLite cannot open</title>
      <link>https://community.esri.com/t5/swift-maps-sdk-questions/error-1014-sqlite-cannot-open/m-p/1379154#M205</link>
      <description>&lt;P&gt;Thanks.&amp;nbsp; I saw that post but it doesn't apply to this issue.&amp;nbsp; I think I found the solution though.&amp;nbsp; I found some references to layers/tables in the currently loaded map that were not set to nil before loading the new map.&amp;nbsp; I'll have to check tomorrow's download to see if I fixed it.&amp;nbsp; I'll post back....&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2024 16:10:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/swift-maps-sdk-questions/error-1014-sqlite-cannot-open/m-p/1379154#M205</guid>
      <dc:creator>DuanePfeiffer</dc:creator>
      <dc:date>2024-02-07T16:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: Error 1014 SQLite cannot open</title>
      <link>https://community.esri.com/t5/swift-maps-sdk-questions/error-1014-sqlite-cannot-open/m-p/1379935#M209</link>
      <description>&lt;P&gt;Update:&lt;/P&gt;&lt;P&gt;This issue has been resolved by removing any references to the existing map before downloading and opening a new .mmpk&lt;/P&gt;&lt;LI-CODE lang="swift"&gt;    public func DisposeMap()
    {
        mapLineTable = nil
        mapLineLayer = nil
        mapPointTable = nil
        mapPointLayer = nil
        geodatabase = nil
        map.removeAllOperationalLayers()
        map.removeAllTables()
        map = Map()
        if mobileMapPackage == nil { return }
        mobileMapPackage.close()
        mobileMapPackage = nil
}&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 08 Feb 2024 19:16:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/swift-maps-sdk-questions/error-1014-sqlite-cannot-open/m-p/1379935#M209</guid>
      <dc:creator>DuanePfeiffer</dc:creator>
      <dc:date>2024-02-08T19:16:43Z</dc:date>
    </item>
  </channel>
</rss>

