<?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: Unable to create a new row in a featureclass in Enterprise gdb in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/unable-to-create-a-new-row-in-a-featureclass-in/m-p/1331299#M10449</link>
    <description>&lt;P&gt;Here are a few things to consider:&lt;/P&gt;&lt;P&gt;- Did&amp;nbsp;Project.Current.SaveEditsAsync() return true?&lt;/P&gt;&lt;P&gt;- Do you see the newly added data in the table view in ArcGIS Pro ?&lt;/P&gt;&lt;P&gt;- Is your GeoDatabase versioned?&amp;nbsp; If so that might explain why you don't see the data using SQL Server.&lt;/P&gt;</description>
    <pubDate>Thu, 21 Sep 2023 23:27:30 GMT</pubDate>
    <dc:creator>Wolf</dc:creator>
    <dc:date>2023-09-21T23:27:30Z</dc:date>
    <item>
      <title>Unable to create a new row in a featureclass in Enterprise gdb</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/unable-to-create-a-new-row-in-a-featureclass-in/m-p/1331237#M10439</link>
      <description>&lt;P&gt;I am trying to save a new feature into a SQL Server gdb table. The process succeeds (editOperation.ExecuteAsync returns true) and I even get the new feature's globalID. But I cannot see the new feature in the table using SQL Server Management Studio (querying by globalID).&lt;/P&gt;&lt;P&gt;(I call Project.Current.SaveEditsAsync() after the code below.)&lt;/P&gt;&lt;P&gt;I have been following this&amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-pro-sdk/blob/e79fbb738b32dd178c089a6b321e2098f8c9c069/Examples/Geodatabase/FeatureClass/FeatureClassCreateRow.cs#L85C15-L85C15" target="_blank"&gt;https://github.com/Esri/arcgis-pro-sdk/blob/e79fbb738b32dd178c089a6b321e2098f8c9c069/Examples/Geodatabase/FeatureClass/FeatureClassCreateRow.cs#L85C15-L85C15&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This is my code&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;using var gdb = new Geodatabase(SMARTConnectionsProvider.Connection);
using FeatureClass fc = gdb.OpenDataset&amp;lt;FeatureClass&amp;gt;(SMARTConnectionsProvider.SOMETABLE.TableName);

var editOperation = new EditOperation();
editOperation.Callback(context =&amp;gt;
{                
	using var rowBuffer = fc.CreateRowBuffer();
	rowBuffer[SMARTConnectionsProvider.SOMETABLE.Fields.RANGEID] = rangeId;
	rowBuffer[SMARTConnectionsProvider.SOMETABLE.Fields.SID] = smalId;
	rowBuffer[SMARTConnectionsProvider.SOMETABLE.Fields.SHAPE] = geometry;

	var newFeature = fc.CreateRow(rowBuffer);

	Log.Information($"GLOBALID {newFeature.GetGlobalID()}");                
}, fc);

return await editOperation.ExecuteAsync();&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 19:35:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/unable-to-create-a-new-row-in-a-featureclass-in/m-p/1331237#M10439</guid>
      <dc:creator>ViktorSafar</dc:creator>
      <dc:date>2023-09-21T19:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create a new row in a featureclass in Enterprise gdb</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/unable-to-create-a-new-row-in-a-featureclass-in/m-p/1331299#M10449</link>
      <description>&lt;P&gt;Here are a few things to consider:&lt;/P&gt;&lt;P&gt;- Did&amp;nbsp;Project.Current.SaveEditsAsync() return true?&lt;/P&gt;&lt;P&gt;- Do you see the newly added data in the table view in ArcGIS Pro ?&lt;/P&gt;&lt;P&gt;- Is your GeoDatabase versioned?&amp;nbsp; If so that might explain why you don't see the data using SQL Server.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 23:27:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/unable-to-create-a-new-row-in-a-featureclass-in/m-p/1331299#M10449</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2023-09-21T23:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create a new row in a featureclass in Enterprise gdb</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/unable-to-create-a-new-row-in-a-featureclass-in/m-p/1331864#M10470</link>
      <description>&lt;P&gt;&lt;SPAN&gt;- Did&amp;nbsp;Project.Current.SaveEditsAsync() return true?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Yes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- Do you see the newly added data in the table view in ArcGIS Pro ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Just opened it now, yes, my data is the table when viewed via ArcGIS Pro. The data is not there when I query the same instance/table with the same connection detail via SSMS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- Is your GeoDatabase versioned?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I don't think so, or at least Pro is showing only the default version.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2023 06:46:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/unable-to-create-a-new-row-in-a-featureclass-in/m-p/1331864#M10470</guid>
      <dc:creator>ViktorSafar</dc:creator>
      <dc:date>2023-09-25T06:46:09Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create a new row in a featureclass in Enterprise gdb</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/unable-to-create-a-new-row-in-a-featureclass-in/m-p/1331876#M10471</link>
      <description>&lt;P&gt;Found out the feature class is indeed versioned and my data are in SOMETABLE_evw view.&lt;/P&gt;&lt;P&gt;in Pro - right click on the feature class - Properties - and there is says Versioning: Versioned&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-enterprise-questions/can-t-see-new-data-in-databases-in-sql-server/td-p/1061065" target="_blank" rel="noopener"&gt;https://community.esri.com/t5/arcgis-enterprise-questions/can-t-see-new-data-in-databases-in-sql-server/td-p/1061065&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2023 08:06:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/unable-to-create-a-new-row-in-a-featureclass-in/m-p/1331876#M10471</guid>
      <dc:creator>ViktorSafar</dc:creator>
      <dc:date>2023-09-25T08:06:48Z</dc:date>
    </item>
  </channel>
</rss>

