<?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 IRowBuffer fails with Memory Table in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/irowbuffer-fails-with-memory-table/m-p/324537#M8470</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am using ArcGIS 10.0 SP5 and Windows XP.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have had the experience where transferring a set of rows using IRowBuffer from a table in a MemoryWorkspace to an identical table in a File Geodatabase caused fields with NULL values to be 'left out'. All the field values after the field with a NULL value were shifted to the left.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The resulting FGDB table ended up with a single character text field containing a 40 character value. Nothing crashed and no exceptions were created! The last (text) field in the row had a piece (about 15 characters) of the second-last field inserted in it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I changed the fields with NULL values to have a value then everything copied ok from the memory table to the FGDB table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If I did the same copy (with NULL values) using IRow and assigning the field values individually then it all worked ok.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If I did the same copy using IRowBuffer but without the memory table (eg copied from the source of the memory table) then it all worked.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The only solution I could find for this problem is not to use IRowBuffer when copying from a table in a MemoryWorkspace.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;JM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Dec 2013 01:46:41 GMT</pubDate>
    <dc:creator>JohnMcGlynn</dc:creator>
    <dc:date>2013-12-11T01:46:41Z</dc:date>
    <item>
      <title>IRowBuffer fails with Memory Table</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/irowbuffer-fails-with-memory-table/m-p/324537#M8470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am using ArcGIS 10.0 SP5 and Windows XP.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have had the experience where transferring a set of rows using IRowBuffer from a table in a MemoryWorkspace to an identical table in a File Geodatabase caused fields with NULL values to be 'left out'. All the field values after the field with a NULL value were shifted to the left.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The resulting FGDB table ended up with a single character text field containing a 40 character value. Nothing crashed and no exceptions were created! The last (text) field in the row had a piece (about 15 characters) of the second-last field inserted in it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I changed the fields with NULL values to have a value then everything copied ok from the memory table to the FGDB table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If I did the same copy (with NULL values) using IRow and assigning the field values individually then it all worked ok.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If I did the same copy using IRowBuffer but without the memory table (eg copied from the source of the memory table) then it all worked.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The only solution I could find for this problem is not to use IRowBuffer when copying from a table in a MemoryWorkspace.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;JM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Dec 2013 01:46:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/irowbuffer-fails-with-memory-table/m-p/324537#M8470</guid>
      <dc:creator>JohnMcGlynn</dc:creator>
      <dc:date>2013-12-11T01:46:41Z</dc:date>
    </item>
  </channel>
</rss>

