<?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: IFeatureClass.Update in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/ifeatureclass-update/m-p/533572#M14396</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ghassan,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are many ways to do updates.&amp;nbsp; Are you using store on the feature or are you calling updatefeature on the featurecursor?&amp;nbsp; Are you inside an edit session (on the editor extension or on IWorkspaceEdit) or not in an edit session?&amp;nbsp; If in an edit session are you in an edit operation?&amp;nbsp; Are you using com release on each feature after the edit is done?&amp;nbsp; Have you place the featureclasses in load only mode?&amp;nbsp;&amp;nbsp; Is the data in a enterprise database or a file database?&amp;nbsp; If in a enterprise database, is the data versioned? You may be running out of memory if you don't release any of the features as you go along.&amp;nbsp; You could be filling up user allocated space on the database also.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Mar 2013 17:05:50 GMT</pubDate>
    <dc:creator>AlexanderGray</dc:creator>
    <dc:date>2013-03-07T17:05:50Z</dc:date>
    <item>
      <title>IFeatureClass.Update</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/ifeatureclass-update/m-p/533567#M14391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am migrating .NET code from 9.3 to 10.1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The code is using &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IFeatureClass.Update(queryfileter, true) where true is for recycling.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know recycling should not be used when we do update, and actually it was permitted on 9.3 in spite of being undesirable, and it is totally prevented on 10.1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On 10.1 the code is not working, so I assumed it is because of the recycle, and I did change it to false.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And here my first question. If it is not permitted , then why you give it as an option in 10.1 when we open a cursor of update?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to use it in 10.1 with recycle being true?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and my second question.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;After I changed it to false, I was able to successfully update the features.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It worked for all kind of update.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But it is hanging on one place, where I am selecting more that 100,000 rows at once.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The IFeatureClass.Update is hanging, without doing anything.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to ask if any one has any idea on how to do what I am doing on 10.1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;P.S, I am maintaining very bad written and messy code, and what I need is just to migrate it to 10.1 with the less modification possible.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Mar 2013 21:34:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/ifeatureclass-update/m-p/533567#M14391</guid>
      <dc:creator>GhassanKarwchan</dc:creator>
      <dc:date>2013-03-06T21:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: IFeatureClass.Update</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/ifeatureclass-update/m-p/533568#M14392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;I know recycling should not be used when we do update, and actually it was permitted on 9.3 in spite of being undesirable, &lt;STRONG&gt;and it is totally prevented on 10.1&lt;/STRONG&gt;&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Where did you read that it is prevented in 10.1?&amp;nbsp; The docs suggest that you do not modify features returned by a recycling cursor.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The &lt;SPAN style="font-style:italic;"&gt;recycling &lt;/SPAN&gt;parameter controls row object allocation behavior.&amp;nbsp; Recycling cursors rehydrate a single feature object on each fetch and can be&amp;nbsp; used to optimize read-only access, for example, when drawing. &lt;SPAN style="color:#0000cd;"&gt;It is illegal to&amp;nbsp; maintain a reference on a feature object returned by a recycling cursor across&amp;nbsp; multiple calls to &lt;STRONG&gt;NextFeature &lt;/STRONG&gt;on the cursor&lt;/SPAN&gt;. &lt;SPAN style="text-decoration:underline;"&gt;Features returned&amp;nbsp; by a recycling cursor should not be modified.&lt;/SPAN&gt; Non-recycling cursors return a&amp;nbsp; separate feature object on each fetch. The features returned by a non-recycling&amp;nbsp; cursor may be modified and stored with polymorphic behavior.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Why give it as an option?&amp;nbsp; Because ESRI assumes you will use it wisely.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The false parameter means use a non-recycling cursor, which is safe for making updates.&amp;nbsp; FeatureCursors aren't that fast when you are making updates, especially on 100,000 rows, and especially if you are in a programmatic edit session.&amp;nbsp; Are you updating attributes or actually updating the geometry of the feature on those 100,000 rows?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2013 00:17:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/ifeatureclass-update/m-p/533568#M14392</guid>
      <dc:creator>LeoDonahue</dc:creator>
      <dc:date>2013-03-07T00:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: IFeatureClass.Update</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/ifeatureclass-update/m-p/533569#M14393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Where did you read that it is prevented in 10.1?&amp;nbsp; The docs suggest that you do not modify features returned by a recycling cursor.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Idonahue. I assume you didn't write a code that is trying to update rows returned by a recyclable cursor in 10.1 yet. Because if you did, you will get an error message.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2013 13:01:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/ifeatureclass-update/m-p/533569#M14393</guid>
      <dc:creator>GhassanKarwchan</dc:creator>
      <dc:date>2013-03-07T13:01:22Z</dc:date>
    </item>
    <item>
      <title>Re: IFeatureClass.Update</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/ifeatureclass-update/m-p/533570#M14394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What kind of error message would I get?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2013 14:06:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/ifeatureclass-update/m-p/533570#M14394</guid>
      <dc:creator>LeoDonahue</dc:creator>
      <dc:date>2013-03-07T14:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: IFeatureClass.Update</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/ifeatureclass-update/m-p/533571#M14395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;What kind of error message would I get?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FDO_E_CANNOT_STORE_RECYCLED_ROW_IN_EDIT_SESSION&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2013 15:51:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/ifeatureclass-update/m-p/533571#M14395</guid>
      <dc:creator>GhassanKarwchan</dc:creator>
      <dc:date>2013-03-07T15:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: IFeatureClass.Update</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/ifeatureclass-update/m-p/533572#M14396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ghassan,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are many ways to do updates.&amp;nbsp; Are you using store on the feature or are you calling updatefeature on the featurecursor?&amp;nbsp; Are you inside an edit session (on the editor extension or on IWorkspaceEdit) or not in an edit session?&amp;nbsp; If in an edit session are you in an edit operation?&amp;nbsp; Are you using com release on each feature after the edit is done?&amp;nbsp; Have you place the featureclasses in load only mode?&amp;nbsp;&amp;nbsp; Is the data in a enterprise database or a file database?&amp;nbsp; If in a enterprise database, is the data versioned? You may be running out of memory if you don't release any of the features as you go along.&amp;nbsp; You could be filling up user allocated space on the database also.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2013 17:05:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/ifeatureclass-update/m-p/533572#M14396</guid>
      <dc:creator>AlexanderGray</dc:creator>
      <dc:date>2013-03-07T17:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: IFeatureClass.Update</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/ifeatureclass-update/m-p/533573#M14397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;FDO_E_CANNOT_STORE_RECYCLED_ROW_IN_EDIT_SESSION&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/0025/0025000000mn000000.htm"&gt;http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/0025/0025000000mn000000.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[TABLE="class: dtTABLE"][TD="class: t"]&lt;/SPAN&gt;&lt;STRONG&gt;FDO_E_CANNOT_STORE_RECYCLED_ROW_IN_EDIT_SESSION&lt;/STRONG&gt;&lt;SPAN&gt;[/TD]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; [TD="class: t, width: 25%, align: left"]-2147219112[/TD]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; [TD="class: t, width: 32%, align: left"]Cannot call Store on a recycled row while editing.[/TD]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[/TABLE]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That error matches exactly what the documentation says is illegal to maintain, that I quoted earlier.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2013 17:50:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/ifeatureclass-update/m-p/533573#M14397</guid>
      <dc:creator>LeoDonahue</dc:creator>
      <dc:date>2013-03-07T17:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: IFeatureClass.Update</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/ifeatureclass-update/m-p/533574#M14398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;That error matches exactly what the documentation says is illegal to maintain, that I quoted earlier. &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;ok&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am not sure what we are arguing or discussing about.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know it is illegal. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My question was, why ESRI provides (recyclable option) on update cursor if it is not going to work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That was my question&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Forget about this thread, and thank you for creating all that noise with no answer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I will create another post&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2013 18:31:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/ifeatureclass-update/m-p/533574#M14398</guid>
      <dc:creator>GhassanKarwchan</dc:creator>
      <dc:date>2013-03-07T18:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: IFeatureClass.Update</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/ifeatureclass-update/m-p/533575#M14399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Ghassan,&lt;BR /&gt;&lt;BR /&gt;There are many ways to do updates.&amp;nbsp; Are you using store on the feature or are you calling updatefeature on the featurecursor?&amp;nbsp; Are you inside an edit session (on the editor extension or on IWorkspaceEdit) or not in an edit session?&amp;nbsp; If in an edit session are you in an edit operation?&amp;nbsp; Are you using com release on each feature after the edit is done?&amp;nbsp; Have you place the featureclasses in load only mode?&amp;nbsp;&amp;nbsp; Is the data in a enterprise database or a file database?&amp;nbsp; If in a enterprise database, is the data versioned? You may be running out of memory if you don't release any of the features as you go along.&amp;nbsp; You could be filling up user allocated space on the database also.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks agray&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Finally someone that is making sense in his answer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I will look at this options in more details.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;maybe I am running out of memory.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The code is not mine, and I was just try to do fast migration to 10.1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but seems I have to read the code&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2013 18:35:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/ifeatureclass-update/m-p/533575#M14399</guid>
      <dc:creator>GhassanKarwchan</dc:creator>
      <dc:date>2013-03-07T18:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: IFeatureClass.Update</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/ifeatureclass-update/m-p/533576#M14400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;ok&lt;BR /&gt;&lt;BR /&gt;I am not sure what we are arguing or discussing about.&lt;BR /&gt;&lt;BR /&gt;I know it is illegal. &lt;BR /&gt;My question was, why ESRI provides (recyclable option) on update cursor if it is not going to work.&lt;BR /&gt;That was my question&lt;BR /&gt;&lt;BR /&gt;Forget about this thread, and thank you for creating all that noise with no answer.&lt;BR /&gt;&lt;BR /&gt;I will create another post&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I didn't know we were arguing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ESRI provides an API that has a boolean parameter to a method.&amp;nbsp; Let's talk about how you use it.&amp;nbsp; If you are not using an edit session, nor calling the store method, but you set the parameter to use recycling, and your record that you are updating is using the updateFeature method on a single feature, would that not update the feature attribute?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Noise is the result of not sharing the error message with us in your first post.&amp;nbsp; Posting questions that say something hangs and doesn't do anything, then indicating you get errors in a second message, and leaving out that information only allows us to guess at your problems. If I hadn't asked, I don't think you would have posted the error message.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2013 01:00:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/ifeatureclass-update/m-p/533576#M14400</guid>
      <dc:creator>LeoDonahue</dc:creator>
      <dc:date>2013-03-08T01:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: IFeatureClass.Update</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/ifeatureclass-update/m-p/533577#M14401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Leo is making valid points and was right to ask what is the error message.&amp;nbsp; The other half of the equation is, of course, what code is generating this message.&amp;nbsp; However, if one assumes there is only one way to edit, one might not think to provide that information. With a little more info to start with there is a lot less confusion.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2013 13:01:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/ifeatureclass-update/m-p/533577#M14401</guid>
      <dc:creator>AlexanderGray</dc:creator>
      <dc:date>2013-03-08T13:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: IFeatureClass.Update</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/ifeatureclass-update/m-p/533578#M14402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This post has been very helpful.&amp;nbsp; I had the same error but not for the same reason. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I found two ways to successfully edit the attributes and would like to know which way is better.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This one uses Update: &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp; _SFRMPSelectionSet.Update(null, false, out pCursor);&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (pCursor == null) { return false; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pRow = pCursor.NextRow();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; while (pRow != null)
&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;&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;&amp;nbsp;&amp;nbsp; foreach (var pair in dictFieldsValues)
&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fldIndex = _SFRMPFeatureLayer.FeatureClass.Fields.FindField(pair.Key);
&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; objectValue = pair.Value;&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;&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;&amp;nbsp; pRow.set_Value(fldIndex, objectValue);
&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; pCursor.UpdateRow(pRow);
&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; pRow = pCursor.NextRow();&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This one uses Store:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt; _SFRMPSelectionSet.Search(null, false, out pCursor);&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;&amp;nbsp;&amp;nbsp; if (pCursor == null) {return false; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pRow = pCursor.NextRow();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; while (pRow != null)
&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;&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;&amp;nbsp;&amp;nbsp; foreach (var pair in dictFieldsValues)
&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fldIndex = _SFRMPFeatureLayer.FeatureClass.Fields.FindField(pair.Key);
&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; objectValue = pair.Value;
&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pRow.set_Value(fldIndex, objectValue);
&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; pRow.Store();
&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; pRow = pCursor.NextRow();&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you so much.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:11:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/ifeatureclass-update/m-p/533578#M14402</guid>
      <dc:creator>soniadickerson1</dc:creator>
      <dc:date>2021-12-11T23:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: IFeatureClass.Update</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/ifeatureclass-update/m-p/533579#M14403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;This post has been very helpful.&amp;nbsp; I had the same error but not for the same reason. &lt;BR /&gt;&lt;BR /&gt;I found two ways to successfully edit the attributes and would like to know which way is better.&lt;BR /&gt;&lt;BR /&gt;This one uses Update: &lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp; _SFRMPSelectionSet.Update(null, false, out pCursor);&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (pCursor == null) { return false; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pRow = pCursor.NextRow();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; while (pRow != null)
&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;&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;&amp;nbsp;&amp;nbsp; foreach (var pair in dictFieldsValues)
&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fldIndex = _SFRMPFeatureLayer.FeatureClass.Fields.FindField(pair.Key);
&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; objectValue = pair.Value;&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;&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;&amp;nbsp; pRow.set_Value(fldIndex, objectValue);
&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; pCursor.UpdateRow(pRow);
&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; pRow = pCursor.NextRow();&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;This one uses Store:&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt; _SFRMPSelectionSet.Search(null, false, out pCursor);&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;&amp;nbsp;&amp;nbsp; if (pCursor == null) {return false; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pRow = pCursor.NextRow();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; while (pRow != null)
&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;&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;&amp;nbsp;&amp;nbsp; foreach (var pair in dictFieldsValues)
&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fldIndex = _SFRMPFeatureLayer.FeatureClass.Fields.FindField(pair.Key);
&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; objectValue = pair.Value;
&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pRow.set_Value(fldIndex, objectValue);
&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; pRow.Store();
&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; pRow = pCursor.NextRow();&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you so much.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In general, using the Update cursor is faster, especially if you're updating a large number of records.&amp;nbsp; However, there is a certain amount of overhead that comes with using the Update cursor.&amp;nbsp; If you're only going to be updating a handful of records (less than a hundred or so), then the Store method is probably going to be quicker.&amp;nbsp; If you don't know how many records you're going to be updating or if you're writing a general function where the number can vary, then go with the Update cursor.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:11:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/ifeatureclass-update/m-p/533579#M14403</guid>
      <dc:creator>NeilClemmons</dc:creator>
      <dc:date>2021-12-11T23:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: IFeatureClass.Update</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/ifeatureclass-update/m-p/533580#M14404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I set recycling to true, correct me if I'm mistaken, but each feature will be release as soon as it moves to the next row.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;_SFRMPSelectionSet.Update(null, true, out pCursor);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Per my testing, setting the recycling value to true does not cause any errors on low record volume.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Wouldn't this be a good way to go?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Mar 2013 13:22:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/ifeatureclass-update/m-p/533580#M14404</guid>
      <dc:creator>soniadickerson1</dc:creator>
      <dc:date>2013-03-26T13:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: IFeatureClass.Update</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/ifeatureclass-update/m-p/533581#M14405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No, a recycling cursor does not release the feature objects.&amp;nbsp; It uses the same instance of a Feature object over and over.&amp;nbsp; For this reason, you shouldn't use a recycling cursor if you intend to modify the features it contains.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Mar 2013 13:57:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/ifeatureclass-update/m-p/533581#M14405</guid>
      <dc:creator>NeilClemmons</dc:creator>
      <dc:date>2013-03-26T13:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: IFeatureClass.Update</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/ifeatureclass-update/m-p/533582#M14406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Sonia,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Everyone should really have this topic under their belt.&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/java_ao_adf/conceptualHelp/engine/0001/0001000003s5000000.htm"&gt;"How to use cursors in the geodatabase"&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I"m not sure "better way" is the phrase I would use. The options are based on what type of data you are editing and whether you are in an edit session.&amp;nbsp; You may want to call update, but if the features you are editing are complex, you get overruled.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;When working with simple features and edit sessions in an Engine application, it's recommended that a search cursor be used to take advantage of batched updates in edit operations.&amp;nbsp; Outside of edit sessions, an update cursor allows performance and error handling advantages.&amp;nbsp; &lt;STRONG&gt;With complex features, on the other hand, update calls are overridden by the features' custom behavior, meaning that the feature's store method will be called even if an update cursor is used&lt;/STRONG&gt;.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Mar 2013 19:23:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/ifeatureclass-update/m-p/533582#M14406</guid>
      <dc:creator>LeoDonahue</dc:creator>
      <dc:date>2013-03-26T19:23:09Z</dc:date>
    </item>
  </channel>
</rss>

