<?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: vb.net arcobjects strange when using feature store in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/vb-net-arcobjects-strange-when-using-feature-store/m-p/595515#M16012</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK the only thing I can think of is export the data to a file geodatabase, adjust the code accordingly and see if it executes with error. If that happens then it would suggest your code is OK and it is some sort of problem with the other database (I guess it is ArcServer)? At that point I'm out of ideas as I don't use enterprise databases.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Oct 2014 09:08:14 GMT</pubDate>
    <dc:creator>DuncanHornby</dc:creator>
    <dc:date>2014-10-23T09:08:14Z</dc:date>
    <item>
      <title>vb.net arcobjects strange when using feature store</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/vb-net-arcobjects-strange-when-using-feature-store/m-p/595510#M16007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I met a strange thing when I am trying to update value in attribute table. I am in editing session and after I perform feature.store and open the attribute table, there is no record in the attribute table. When I exit editing session, the records return, but the value not updated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pActiveView = pMxDoc.FocusMap&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pMxDoc = My.ArcMap.Application.Document&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pMap = pMxDoc.FocusMap&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim layerNum = GetIndexNumberFromLayerName(pActiveView, "proj_db.DBO.Line")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pFLayer As IFeatureLayer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pFLayer = pMap.Layer(layerNum)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim featureClass As ESRI.ArcGIS.Geodatabase.IFeatureClass = pFLayer.FeatureClass&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If featureClass is DbNull.value then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Return&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim feature as IFeature = pFLayer.FeatureClass.GetFeature(maxOBJECID)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If feature is DbNull.value then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Return&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim nameFieldIndex As Integer = pFLayer.FindField("Seg_ID")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; feature.Value(nameFieldIndex) = inputSegID&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; feature.Store()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There no error also. Don't know what is up in my code, please help me on it, thank you very much!&lt;/P&gt;&lt;P&gt;I am using arcobjects 10.2.2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2014 04:35:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/vb-net-arcobjects-strange-when-using-feature-store/m-p/595510#M16007</guid>
      <dc:creator>LiYao</dc:creator>
      <dc:date>2014-10-20T04:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: vb.net arcobjects strange when using feature store</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/vb-net-arcobjects-strange-when-using-feature-store/m-p/595511#M16008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know if this is the problem but I would not have used &lt;STRONG&gt;DbNull.value.&lt;/STRONG&gt; I would use &lt;STRONG&gt;Nothing&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my line would be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;If featureClass is Nothing Then&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Same when you test feature.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2014 13:43:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/vb-net-arcobjects-strange-when-using-feature-store/m-p/595511#M16008</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2014-10-20T13:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: vb.net arcobjects strange when using feature store</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/vb-net-arcobjects-strange-when-using-feature-store/m-p/595512#M16009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Duncan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for the reply. But after I modify the code, the result still the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is caused by the line feature.store().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there errors other than the DBNull? Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2014 00:45:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/vb-net-arcobjects-strange-when-using-feature-store/m-p/595512#M16009</guid>
      <dc:creator>LiYao</dc:creator>
      <dc:date>2014-10-21T00:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: vb.net arcobjects strange when using feature store</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/vb-net-arcobjects-strange-when-using-feature-store/m-p/595513#M16010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is &lt;EM style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;nameFieldIndex&lt;/EM&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt; definitely getting set to the correct index position? If you have joins on the table then I believe you will need to prefix it with the table name.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2014 10:43:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/vb-net-arcobjects-strange-when-using-feature-store/m-p/595513#M16010</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2014-10-21T10:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: vb.net arcobjects strange when using feature store</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/vb-net-arcobjects-strange-when-using-feature-store/m-p/595514#M16011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Duncan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for the answer. After I add the table name before the field name, it still not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I use:&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Consolas;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt; nameFieldIndex &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Consolas;"&gt;As&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Consolas;"&gt;Integer&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt; = pFLayer.FindField(&lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-size: 10pt; font-family: Consolas;"&gt;"proj_db.DBO.Line.Seg_ID"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;Then the application will exit.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;If I use:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Consolas;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt; nameFieldIndex &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Consolas;"&gt;As&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Consolas;"&gt;Integer&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt; = pFLayer.FeatureClass.FindField&lt;/SPAN&gt;(&lt;SPAN style="color: #a31515; font-size: 10pt; font-family: Consolas;"&gt;"proj_db.DBO.Line.Seg_ID"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: 10pt;"&gt;It will still the strange result as described in the question. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: 10pt;"&gt;Totally no idea on it..... &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2014 01:23:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/vb-net-arcobjects-strange-when-using-feature-store/m-p/595514#M16011</guid>
      <dc:creator>LiYao</dc:creator>
      <dc:date>2014-10-23T01:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: vb.net arcobjects strange when using feature store</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/vb-net-arcobjects-strange-when-using-feature-store/m-p/595515#M16012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK the only thing I can think of is export the data to a file geodatabase, adjust the code accordingly and see if it executes with error. If that happens then it would suggest your code is OK and it is some sort of problem with the other database (I guess it is ArcServer)? At that point I'm out of ideas as I don't use enterprise databases.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2014 09:08:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/vb-net-arcobjects-strange-when-using-feature-store/m-p/595515#M16012</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2014-10-23T09:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: vb.net arcobjects strange when using feature store</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/vb-net-arcobjects-strange-when-using-feature-store/m-p/595516#M16013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Duncan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much for the kind help. I will look further according to your suggestion.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2014 09:11:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/vb-net-arcobjects-strange-when-using-feature-store/m-p/595516#M16013</guid>
      <dc:creator>LiYao</dc:creator>
      <dc:date>2014-10-23T09:11:43Z</dc:date>
    </item>
  </channel>
</rss>

