<?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 Intermittent geodatabase exception from mapservice layer cursor in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/intermittent-geodatabase-exception-from-mapservice/m-p/823955#M2963</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a bit of SDK functionality that creates a featurelayer from a mapservice uri and then queries the layer for a search string using &lt;STRONG&gt;layer.Search(queryFilter) &lt;/STRONG&gt;to retrieve a rowcursor, and then loops through the rowcursor to retrieve values using &lt;STRONG&gt;while (cursor.MoveNext())&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works most of the time but I occassionally get a geodatabase exception when calling &lt;STRONG&gt;MoveNext()&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ArcGIS.Core.Data.GeodatabaseException: 'A geodatabase exception has occurred.'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;COMException: Bad variable type. (Exception from HRESULT: 0x80020008 (DISP_E_BADVARTYPE))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;at ArcGIS.Core.Data.RowCursor.MoveNext()&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas what could be causing this error? The same bit of code works perfectly for local layer files. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Jun 2018 13:16:24 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2018-06-14T13:16:24Z</dc:date>
    <item>
      <title>Intermittent geodatabase exception from mapservice layer cursor</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/intermittent-geodatabase-exception-from-mapservice/m-p/823955#M2963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a bit of SDK functionality that creates a featurelayer from a mapservice uri and then queries the layer for a search string using &lt;STRONG&gt;layer.Search(queryFilter) &lt;/STRONG&gt;to retrieve a rowcursor, and then loops through the rowcursor to retrieve values using &lt;STRONG&gt;while (cursor.MoveNext())&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works most of the time but I occassionally get a geodatabase exception when calling &lt;STRONG&gt;MoveNext()&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ArcGIS.Core.Data.GeodatabaseException: 'A geodatabase exception has occurred.'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;COMException: Bad variable type. (Exception from HRESULT: 0x80020008 (DISP_E_BADVARTYPE))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;at ArcGIS.Core.Data.RowCursor.MoveNext()&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas what could be causing this error? The same bit of code works perfectly for local layer files. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2018 13:16:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/intermittent-geodatabase-exception-from-mapservice/m-p/823955#M2963</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2018-06-14T13:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: Intermittent geodatabase exception from mapservice layer cursor</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/intermittent-geodatabase-exception-from-mapservice/m-p/823956#M2964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This isn't something we've seen before.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In theory, we know what is causing this; the error code tells us that the Variant's type isn't valid. &amp;nbsp;In practice, we don't know what could be causing this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have a consistent, or sometimes consistent, reproducible case, could you please log it with support?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2018 16:12:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/intermittent-geodatabase-exception-from-mapservice/m-p/823956#M2964</guid>
      <dc:creator>RichRuh</dc:creator>
      <dc:date>2018-06-15T16:12:22Z</dc:date>
    </item>
  </channel>
</rss>

