<?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 Unable to create a Row in Enterprise Database in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/unable-to-create-a-row-in-enterprise-database/m-p/859956#M4696</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am encountering an error when trying to create a row in an enterprise table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"An exception of type 'ArcGIS.Core.Data.GeodatabaseException' occurred in mscorlib.dll but was not handled in user code"&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/452380_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On Click of View Detail it gives me "A geodatabase exception has occurred.``&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure what I am doing wrong here:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the code I used for creating a row in enterpriseDatabase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;await ArcGIS.Desktop.Framework.Threading.Tasks.QueuedTask.Run(() =&amp;gt; {&lt;BR /&gt; using (Geodatabase geodatabase = new Geodatabase(new DatabaseConnectionFile(new Uri("C:\\Users\\NNagandla\\Documents\\ArcGIS\\Projects\\BRIDGE_DATA_STRUCTURE_FINAL\\Mi_BIS_Dev_12c.sde"))))&lt;BR /&gt; {&lt;BR /&gt; // Use the geodatabase.&lt;BR /&gt; var isTblExists = TableExists(geodatabase, "BRIDGES_DATA.STRUCTURE_NEW");&lt;BR /&gt; if (isTblExists)&lt;BR /&gt; {&lt;BR /&gt; using (ArcGIS.Core.Data.Table enterpriseTable = geodatabase.OpenDataset&amp;lt;ArcGIS.Core.Data.Table&amp;gt;("BRIDGES_DATA.STRUCTURE_NEW"))&lt;BR /&gt; {&lt;/P&gt;&lt;P&gt;var count = enterpriseTable.GetCount();&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;using (RowBuffer rowBuffer = enterpriseTable.CreateRowBuffer())&lt;/SPAN&gt;&lt;BR /&gt; {&lt;BR /&gt; // Either the field index or the field name can be used in the indexer.&lt;BR /&gt;rowBuffer["ID"] = _intID;&lt;BR /&gt; rowBuffer["SITE"] = _txtSiteNumber;&lt;BR /&gt; rowBuffer["SEQ"] = _txtSeqNumber;&lt;BR /&gt; rowBuffer["LONGITUDE"] = _dblLong;&lt;BR /&gt; rowBuffer["LATITUDE"] = _dblLat;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;using (Row row = enterpriseTable.CreateRow(rowBuffer))&lt;/SPAN&gt;&lt;BR /&gt; {&lt;BR /&gt; // store the values&lt;BR /&gt; row.Store();&lt;BR /&gt; }&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt; }&lt;BR /&gt; }&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It throws error on line&amp;nbsp;&lt;SPAN&gt;Row row = enterpriseTable.CreateRow(rowBuffer)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Jul 2019 21:41:20 GMT</pubDate>
    <dc:creator>NareshNagandla</dc:creator>
    <dc:date>2019-07-04T21:41:20Z</dc:date>
    <item>
      <title>Unable to create a Row in Enterprise Database</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/unable-to-create-a-row-in-enterprise-database/m-p/859956#M4696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am encountering an error when trying to create a row in an enterprise table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"An exception of type 'ArcGIS.Core.Data.GeodatabaseException' occurred in mscorlib.dll but was not handled in user code"&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/452380_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On Click of View Detail it gives me "A geodatabase exception has occurred.``&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure what I am doing wrong here:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the code I used for creating a row in enterpriseDatabase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;await ArcGIS.Desktop.Framework.Threading.Tasks.QueuedTask.Run(() =&amp;gt; {&lt;BR /&gt; using (Geodatabase geodatabase = new Geodatabase(new DatabaseConnectionFile(new Uri("C:\\Users\\NNagandla\\Documents\\ArcGIS\\Projects\\BRIDGE_DATA_STRUCTURE_FINAL\\Mi_BIS_Dev_12c.sde"))))&lt;BR /&gt; {&lt;BR /&gt; // Use the geodatabase.&lt;BR /&gt; var isTblExists = TableExists(geodatabase, "BRIDGES_DATA.STRUCTURE_NEW");&lt;BR /&gt; if (isTblExists)&lt;BR /&gt; {&lt;BR /&gt; using (ArcGIS.Core.Data.Table enterpriseTable = geodatabase.OpenDataset&amp;lt;ArcGIS.Core.Data.Table&amp;gt;("BRIDGES_DATA.STRUCTURE_NEW"))&lt;BR /&gt; {&lt;/P&gt;&lt;P&gt;var count = enterpriseTable.GetCount();&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;using (RowBuffer rowBuffer = enterpriseTable.CreateRowBuffer())&lt;/SPAN&gt;&lt;BR /&gt; {&lt;BR /&gt; // Either the field index or the field name can be used in the indexer.&lt;BR /&gt;rowBuffer["ID"] = _intID;&lt;BR /&gt; rowBuffer["SITE"] = _txtSiteNumber;&lt;BR /&gt; rowBuffer["SEQ"] = _txtSeqNumber;&lt;BR /&gt; rowBuffer["LONGITUDE"] = _dblLong;&lt;BR /&gt; rowBuffer["LATITUDE"] = _dblLat;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;using (Row row = enterpriseTable.CreateRow(rowBuffer))&lt;/SPAN&gt;&lt;BR /&gt; {&lt;BR /&gt; // store the values&lt;BR /&gt; row.Store();&lt;BR /&gt; }&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt; }&lt;BR /&gt; }&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It throws error on line&amp;nbsp;&lt;SPAN&gt;Row row = enterpriseTable.CreateRow(rowBuffer)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jul 2019 21:41:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/unable-to-create-a-row-in-enterprise-database/m-p/859956#M4696</guid>
      <dc:creator>NareshNagandla</dc:creator>
      <dc:date>2019-07-04T21:41:20Z</dc:date>
    </item>
  </channel>
</rss>

