<?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: What am I doing wrong on this insert cursor? in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/what-am-i-doing-wrong-on-this-insert-cursor/m-p/375729#M9889</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Without seeing the actual error message and as the code looks OK to me I'm guessing the problem is to do with your newFC.&lt;BR /&gt;&lt;BR /&gt;Are you trying to:&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;Insert incorrect geometries (e.g. storing a polyline in a point FeatureClass)?&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Does the source featureclass have a different spatial reference?&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Does the source featureclass support MZ values and your newFC does not?&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;Also can you confirm your queryfilter is actually selecting data?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the reply.&amp;nbsp; The error message is really vague: Error: The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT)) Exception: System.Runtime.InteropServices.COMException.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was thinking the error might be with the newFC as well.&amp;nbsp; I created a copy of the source DB, deleted the features from it, and tried to write to that and I got the same error.&amp;nbsp; So, it has to be something going awry with the insert and/or values going into fields.&amp;nbsp; Though, like I said, I went through and checked every value going into the first feature buffer and they all match the field types.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can confirm the queryfilter is returning data.&amp;nbsp; I took out a line of code that skips feature classes when the queryfilter returns nothing:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;if (currFeat == null) continue; &lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Oct 2013 18:08:07 GMT</pubDate>
    <dc:creator>JohnStephens</dc:creator>
    <dc:date>2013-10-07T18:08:07Z</dc:date>
    <item>
      <title>What am I doing wrong on this insert cursor?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/what-am-i-doing-wrong-on-this-insert-cursor/m-p/375727#M9887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a QC process that runs through some data, flags various features, and then I want it to write them out to a new database with an exact copy of the feature class (I can't copy the feature class completely, because not all of the features are flagged).&amp;nbsp; My code for flagging the data works fine, but when I go to insert my created feature buffer I get a vague COM Exception.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've read that these errors usually occur with field/field value errors, but I've used a IFieldChecker, which reports no errors.&amp;nbsp; And I've gone through the created feature class fie and the values in the feature&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;using (ComReleaser comReleaser = new ComReleaser()) {&amp;nbsp;&amp;nbsp; IFeatureCursor featuresToCopy = fc.Search(qf, true);&amp;nbsp;&amp;nbsp; comReleaser.ManageLifetime(featuresToCopy);&amp;nbsp;&amp;nbsp; IFeature currFeat = featuresToCopy.NextFeature();&amp;nbsp;&amp;nbsp; IFeatureCursor insertCursor = newFC.Insert(true);&amp;nbsp; comReleaser.ManageLifetime(insertCursor);&amp;nbsp;&amp;nbsp; while (currFeat != 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; IFeatureBuffer featBuff = newFC.CreateFeatureBuffer();&amp;nbsp; &amp;nbsp; // Add the original feature's geometry to the feature buffer. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; featBuff.Shape = currFeat.Shape; &amp;nbsp;&amp;nbsp; &amp;nbsp; // Add all the original feature's fields to the feature buffer &amp;nbsp; AddFieldsToFeatureBuffer(ref featBuff, currFeat);&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; try &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; { &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; insertCursor.InsertFeature(featBuff); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; catch { throw; } &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; currFeat = featuresToCopy.NextFeature(); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } }&amp;nbsp; //This code was taken right from here&amp;nbsp; private void AddFieldsToFeatureBuffer(ref IFeatureBuffer featBuffer, IFeature feature) { &amp;nbsp;&amp;nbsp;&amp;nbsp; // Copy the attributes of the orig feature the new feature &amp;nbsp;&amp;nbsp;&amp;nbsp; IRowBuffer rowBuffer = (IRowBuffer)featBuffer; &amp;nbsp;&amp;nbsp;&amp;nbsp; IFields fieldsNew = rowBuffer.Fields;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; IFields fields = feature.Fields; &amp;nbsp;&amp;nbsp;&amp;nbsp; for (int i = 0; i &amp;lt;= fields.FieldCount - 1; i++) &amp;nbsp;&amp;nbsp;&amp;nbsp; { &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IField field = fields.get_Field(i); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ((field.Type != esriFieldType.esriFieldTypeGeometry) &amp;amp;&amp;amp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (field.Type != esriFieldType.esriFieldTypeOID)) &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; { &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int intFieldIndex = fieldsNew.FindField(field.Name); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (intFieldIndex != -1) &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; { &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; try &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; { &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var value = feature.get_Value(i); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; featBuffer.set_Value(intFieldIndex, 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;&amp;nbsp;&amp;nbsp;&amp;nbsp; catch (Exception ex) { WriteError(ex); } &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &amp;nbsp;&amp;nbsp;&amp;nbsp; } }&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, I'm not sure if it is related, but when I am debugging the code the execute function to check the members of the insert cursor does not work.&amp;nbsp; I am assuming it's because the cursor has an exclusive lock on the data.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Oct 2013 15:26:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/what-am-i-doing-wrong-on-this-insert-cursor/m-p/375727#M9887</guid>
      <dc:creator>JohnStephens</dc:creator>
      <dc:date>2013-10-07T15:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: What am I doing wrong on this insert cursor?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/what-am-i-doing-wrong-on-this-insert-cursor/m-p/375728#M9888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Without seeing the actual error message and as the code looks OK to me I'm guessing the problem is to do with your newFC.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you trying to:&lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;Insert incorrect geometries (e.g. storing a polyline in a point FeatureClass)?&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Does the source featureclass have a different spatial reference?&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Does the source featureclass support MZ values and your newFC does not?&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;SPAN&gt;Also can you confirm your queryfilter is actually selecting data?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Oct 2013 17:44:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/what-am-i-doing-wrong-on-this-insert-cursor/m-p/375728#M9888</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2013-10-07T17:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: What am I doing wrong on this insert cursor?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/what-am-i-doing-wrong-on-this-insert-cursor/m-p/375729#M9889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Without seeing the actual error message and as the code looks OK to me I'm guessing the problem is to do with your newFC.&lt;BR /&gt;&lt;BR /&gt;Are you trying to:&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;Insert incorrect geometries (e.g. storing a polyline in a point FeatureClass)?&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Does the source featureclass have a different spatial reference?&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Does the source featureclass support MZ values and your newFC does not?&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;Also can you confirm your queryfilter is actually selecting data?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the reply.&amp;nbsp; The error message is really vague: Error: The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT)) Exception: System.Runtime.InteropServices.COMException.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was thinking the error might be with the newFC as well.&amp;nbsp; I created a copy of the source DB, deleted the features from it, and tried to write to that and I got the same error.&amp;nbsp; So, it has to be something going awry with the insert and/or values going into fields.&amp;nbsp; Though, like I said, I went through and checked every value going into the first feature buffer and they all match the field types.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can confirm the queryfilter is returning data.&amp;nbsp; I took out a line of code that skips feature classes when the queryfilter returns nothing:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;if (currFeat == null) continue; &lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Oct 2013 18:08:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/what-am-i-doing-wrong-on-this-insert-cursor/m-p/375729#M9889</guid>
      <dc:creator>JohnStephens</dc:creator>
      <dc:date>2013-10-07T18:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: What am I doing wrong on this insert cursor?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/what-am-i-doing-wrong-on-this-insert-cursor/m-p/375730#M9890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The error hints at a server, are you storing data in ArcServer? If so it might be some weird permissions problem, if it is then I have to defer to someone else with more knowledge of ArcServer (as I have not used it). So that in mind can you try putting your newFc in a file geodatabase and try writing to that?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Oct 2013 18:22:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/what-am-i-doing-wrong-on-this-insert-cursor/m-p/375730#M9890</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2013-10-07T18:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: What am I doing wrong on this insert cursor?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/what-am-i-doing-wrong-on-this-insert-cursor/m-p/375731#M9891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The error hints at a server, are you storing data in ArcServer? If so it might be some weird permissions problem, if it is then I have to defer to someone else with more knowledge of ArcServer (as I have not used it). So that in mind can you try putting your newFc in a file geodatabase and try writing to that?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yeah, I don't know why it's talking about a server.&amp;nbsp; I'm doing nothing with ArcSever.&amp;nbsp; Everything is on my C drive right now and this is just a stand-alone desktop application.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Oct 2013 18:29:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/what-am-i-doing-wrong-on-this-insert-cursor/m-p/375731#M9891</guid>
      <dc:creator>JohnStephens</dc:creator>
      <dc:date>2013-10-07T18:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: What am I doing wrong on this insert cursor?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/what-am-i-doing-wrong-on-this-insert-cursor/m-p/375732#M9892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;3 things I would try first:&amp;nbsp; use ShapeCopy instead of Shape to set the geometry, add a check to the field to make sure it's editable before trying to copy the field value and combine the field value assignment to not use a variable (feature.set_Value = feature.get_value).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Oct 2013 18:42:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/what-am-i-doing-wrong-on-this-insert-cursor/m-p/375732#M9892</guid>
      <dc:creator>NeilClemmons</dc:creator>
      <dc:date>2013-10-07T18:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: What am I doing wrong on this insert cursor?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/what-am-i-doing-wrong-on-this-insert-cursor/m-p/375733#M9893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;3 things I would try first:&amp;nbsp; use ShapeCopy instead of Shape to set the geometry, add a check to the field to make sure it's editable before trying to copy the field value and combine the field value assignment to not use a variable (feature.set_Value = feature.get_value).&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for responding, Neil.&amp;nbsp; I had added that var assignment just for debugging.&amp;nbsp; I forgot to take it out when I posted the code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyway, I used ShapeCopy and added a check to see if any of the fields were not editable.&amp;nbsp; They were all editable and I still hit the same error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also tried opening an IWorkspaceEdit session and that did nothing.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2013 10:37:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/what-am-i-doing-wrong-on-this-insert-cursor/m-p/375733#M9893</guid>
      <dc:creator>JohnStephens</dc:creator>
      <dc:date>2013-10-08T10:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: What am I doing wrong on this insert cursor?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/what-am-i-doing-wrong-on-this-insert-cursor/m-p/375734#M9894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;OK well if this was me I would try to start to narrow down what is causing the problem? Try just writing the shape, if code runs then it suggests its to do with the transferring of the remaining attributes. Then try the reverse and if that is inconclusive try just writing blank rows?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2013 13:47:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/what-am-i-doing-wrong-on-this-insert-cursor/m-p/375734#M9894</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2013-10-08T13:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: What am I doing wrong on this insert cursor?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/what-am-i-doing-wrong-on-this-insert-cursor/m-p/375735#M9895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the help guys.&amp;nbsp; After a lot of head banging on the keyboard, I finally found that it was an error with my threading.&amp;nbsp; I created the database I was writing to outside of the current thread and that was the issue.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyway, I'll give you guys some points for giving me some suggestions.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Oct 2013 13:06:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/what-am-i-doing-wrong-on-this-insert-cursor/m-p/375735#M9895</guid>
      <dc:creator>JohnStephens</dc:creator>
      <dc:date>2013-10-10T13:06:50Z</dc:date>
    </item>
  </channel>
</rss>

