<?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: &amp;quot;SQL error or missing database&amp;quot; when adding a feature layer in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/quot-sql-error-or-missing-database-quot-when/m-p/430469#M5222</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;P&gt;In the recent v100.2 release we improved to error message in this scenario to tell you that the table has too many fields (exceeds the current 2000 limit).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Please download the latest Visual Studio extension from&amp;nbsp;&lt;/SPAN&gt;&lt;A class="" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fdevelopers.arcgis.com%2Fdownloads" rel="nofollow" style="color: #2989c5; background-color: #ffffff; border: 0px; text-decoration: none; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;ArcGIS for Developers&lt;/A&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp;or update your NuGet packages via the NuGet package manager.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Feb 2018 21:38:26 GMT</pubDate>
    <dc:creator>MichaelBranscomb</dc:creator>
    <dc:date>2018-02-12T21:38:26Z</dc:date>
    <item>
      <title>"SQL error or missing database" when adding a feature layer</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/quot-sql-error-or-missing-database-quot-when/m-p/430464#M5217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I have a problem I'm hoping to get some help with.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer"&gt;This is my base map&lt;/A&gt;, and &lt;A href="http://utility.arcgis.com/usrsvcs/servers/5ac4e87c0f1e4a429e258532cc9d98d8/rest/services/USA_Demographics_and_Boundaries_2016/MapServer"&gt;this is the layer&lt;/A&gt; I want to load as feature layers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There's something special about some of &lt;A href="http://utility.arcgis.com/usrsvcs/servers/5ac4e87c0f1e4a429e258532cc9d98d8/rest/services/USA_Demographics_and_Boundaries_2016/MapServer"&gt;the layers found here&lt;/A&gt;, for some reason, a lot of them throw this error when they reach this external call "&lt;SPAN style="color: green;"&gt;RuntimeCoreNet.CoreFeatureSourceNativeMethods&lt;/SPAN&gt;.CoreFeatureSource_Create(...)" to "&lt;SPAN style="color: #a31515;"&gt;RuntimeCoreNETDesktop.dll&lt;/SPAN&gt;".&lt;/P&gt;&lt;P&gt;Now this call&amp;nbsp;originates from "Esri.ArcGISRuntime.Controls.ViewBase.AddInitializedLayerToViewAsync(...)" when it tries to "CreateCoreLayerInternal(...)"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example here's the error for layer #44&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;18:15:22:8706 EsriMap (Error): '&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Futility.arcgis.com%2Fusrsvcs%2Fservers%2F5ac4e87c0f1e4a429e258532cc9d98d8%2Frest%2Fservices%2FUSA_Demographics_and_Boundaries_2016%2FMapServer%2F44" rel="nofollow" target="_blank"&gt;http://utility.arcgis.com/usrsvcs/servers/5ac4e87c0f1e4a429e258532cc9d98d8/rest/services/USA_Demographics_and_Boundaries_2016/MapServer/44&lt;/A&gt;&lt;SPAN&gt;' Layer could not be added to Map because creation of the core layer failed. See InnerException for more information.&lt;/SPAN&gt;&lt;BR /&gt;Exception:&lt;BR /&gt;System.Exception: SQL error or missing database : &lt;BR /&gt; at RuntimeCoreNet.Interop.HandleException(Boolean retVal) in C:\Users\******\AppData\Local\JetBrains\Shared\v08\DecompilerCache\decompiler\D213313B-6D49-4D97-B6BE-4C90E70857F6\fc\36386527\Interop.cs:line 24&lt;BR /&gt; at Esri.ArcGISRuntime.Data.ServiceFeatureTable.CreateFeatureSource(SpatialReference sr_override) in C:\Users\******\AppData\Local\JetBrains\Shared\v08\DecompilerCache\decompiler\D213313B-6D49-4D97-B6BE-4C90E70857F6\09\02d92b9d\ServiceFeatureTable.cs:line 641&lt;BR /&gt; at System.Threading.Tasks.Task.Execute()&lt;BR /&gt;--- End of stack trace from previous location where exception was thrown ---&lt;BR /&gt; at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)&lt;BR /&gt; at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&lt;BR /&gt; at Esri.ArcGISRuntime.Layers.FeatureLayer.&amp;lt;CreateCoreLayerAsync&amp;gt;d__5.MoveNext() in C:\Users\******\AppData\Local\JetBrains\Shared\v08\DecompilerCache\decompiler\D213313B-6D49-4D97-B6BE-4C90E70857F6\b7\feb17b6f\FeatureLayer.cs:line 429&lt;BR /&gt;--- End of stack trace from previous location where exception was thrown ---&lt;BR /&gt; at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)&lt;BR /&gt; at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&lt;BR /&gt; at Esri.ArcGISRuntime.Layers.Layer.&amp;lt;CreateCoreLayerInternal&amp;gt;d__5.MoveNext() in C:\Users\*****\AppData\Local\JetBrains\Shared\v08\DecompilerCache\decompiler\D213313B-6D49-4D97-B6BE-4C90E70857F6\13\a04ade1a\Layer.cs:line 412&lt;BR /&gt;--- End of stack trace from previous location where exception was thrown ---&lt;BR /&gt; at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)&lt;BR /&gt; at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&lt;BR /&gt; at Esri.ArcGISRuntime.Controls.ViewBase.&amp;lt;AddInitializedLayerToViewAsync&amp;gt;d__9.MoveNext() in C:\Users\*****\AppData\Local\JetBrains\Shared\v08\DecompilerCache\decompiler\D213313B-6D49-4D97-B6BE-4C90E70857F6\20\8bcb57c8\ViewBase.cs:line 695&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I load them&amp;nbsp;as dynamic instead of feature layers, then everything works fine, but if I try to load them as feature layers then I get the error above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure what's going on, but other feature layers work just fine - for example: &lt;A href="http://sampleserver6.arcgisonline.com/arcgis/rest/services/USA/MapServer"&gt;USA Demography&lt;/A&gt;, &lt;A href="http://utility.arcgis.com/usrsvcs/servers/8cd01a89cdc74c87893127f4438844b5/rest/services/World/Traffic/MapServer"&gt;Traffic&lt;/A&gt; - with the exact same code, it's only this specific set of layers that seem to be problematic - and slows my application to a halt for a good minute when it's trying to load the map with all those feature layer errors being thrown -.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there&amp;nbsp;anything special about these layers that might be causing this problem? just wondering how come the same code works fine for many other feature layers, but not these.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jul 2017 22:29:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/quot-sql-error-or-missing-database-quot-when/m-p/430464#M5217</guid>
      <dc:creator>SamTan</dc:creator>
      <dc:date>2017-07-12T22:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: "SQL error or missing database" when adding a feature layer</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/quot-sql-error-or-missing-database-quot-when/m-p/430465#M5218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for reporting this issue. You seem to be working with v10.2.x, is that right? I'm also able to reproduce in v100.1. We'll be looking into this and let you know if there's any available workaround.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2017 20:24:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/quot-sql-error-or-missing-database-quot-when/m-p/430465#M5218</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2017-07-25T20:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: "SQL error or missing database" when adding a feature layer</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/quot-sql-error-or-missing-database-quot-when/m-p/430466#M5219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem seems to be with the number of fields these services have. Alternatively, you can add the layer as `ArcGISDynamicMapServiceLayer` if using v10.2.x or as `ArcGISMapImageLayer` if using v100.x. What operation are you looking to perform on the layer or features? If in v10.2.x, you can probably use QueryTask to workaround the issue that table cannot be created or loaded.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2017 21:05:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/quot-sql-error-or-missing-database-quot-when/m-p/430466#M5219</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2017-07-25T21:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: "SQL error or missing database" when adding a feature layer</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/quot-sql-error-or-missing-database-quot-when/m-p/430467#M5220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jennifer,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are right I'm using 10.2.7.0, I'm currently falling back to loading these layers as dynamic. I was just wondering If I was loading or setting them up wrong or if there's really an issue with the ArcGISRuntime or the layers themselves. So you can confirm that this is an issue with the&amp;nbsp;&lt;SPAN&gt;ArcGISRuntime&amp;nbsp; v10.2.7.0 ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your understanding.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2017 13:45:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/quot-sql-error-or-missing-database-quot-when/m-p/430467#M5220</guid>
      <dc:creator>SamTan</dc:creator>
      <dc:date>2017-07-26T13:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: "SQL error or missing database" when adding a feature layer</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/quot-sql-error-or-missing-database-quot-when/m-p/430468#M5221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, this is the current limitation - we seem to be hitting this limit:&amp;nbsp;&lt;A href="https://sqlite.org/limits.html"&gt;https://sqlite.org/limits.html&lt;/A&gt; so you weren't setting up anything wrong. Thanks for your feedback. I've logged in an issue for the team to consider.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;default setting for SQLITE_MAX_COLUMN is 2000&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2017 15:31:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/quot-sql-error-or-missing-database-quot-when/m-p/430468#M5221</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2017-07-26T15:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: "SQL error or missing database" when adding a feature layer</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/quot-sql-error-or-missing-database-quot-when/m-p/430469#M5222</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;P&gt;In the recent v100.2 release we improved to error message in this scenario to tell you that the table has too many fields (exceeds the current 2000 limit).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Please download the latest Visual Studio extension from&amp;nbsp;&lt;/SPAN&gt;&lt;A class="" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fdevelopers.arcgis.com%2Fdownloads" rel="nofollow" style="color: #2989c5; background-color: #ffffff; border: 0px; text-decoration: none; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;ArcGIS for Developers&lt;/A&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp;or update your NuGet packages via the NuGet package manager.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2018 21:38:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/quot-sql-error-or-missing-database-quot-when/m-p/430469#M5222</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2018-02-12T21:38:26Z</dc:date>
    </item>
  </channel>
</rss>

