<?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: Objects in this class cannot be updated outside an edit session in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/objects-in-this-class-cannot-be-updated-outside-an/m-p/721427#M40903</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This error message is associated with a number of possible causes. Here are two reasons:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1- If your SDE data is not versioned. In this case, simply register your data as versioned using ArcCatalog.&lt;/P&gt;&lt;P&gt;2- If you connected to your SDE geodatabase programmatically using IPropertySet, and the server name used is an alias name instead of the original server name. Use the IPropertySet.GetAll properties() method to investigate the exact names of all the properties you would need to supply to the IPropertySet. It is easier to simply connect via the SDE connection file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For detailed information about creating features and Managing Edit Sessions using ArcObjects, please view the following documentation in the ArcObjects Help:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Creating Features&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/#/Creating_features/00010000049v000000/" title="http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/#/Creating_features/00010000049v000000/"&gt;http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/#/Creating_features/00010000049v000000/&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Managing Editing Sessions and Edit Operations&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/#/Managing_edit_sessions_and_edit_operations/000100000340000000/" title="http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/#/Managing_edit_sessions_and_edit_operations/000100000340000000/"&gt;http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/#/Managing_edit_sessions_and_edit_operations/000100000340000000/&lt;/A&gt;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 15 Aug 2015 01:25:10 GMT</pubDate>
    <dc:creator>SamiEria</dc:creator>
    <dc:date>2015-08-15T01:25:10Z</dc:date>
    <item>
      <title>Objects in this class cannot be updated outside an edit session</title>
      <link>https://community.esri.com/t5/data-management-questions/objects-in-this-class-cannot-be-updated-outside-an/m-p/721424#M40900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;System.Runtime.InteropServices.COMException (0x80041354): Objects in this class cannot be updated outside an edit session [test.TEST.SECTIONDATA]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at ESRI.ArcGIS.Geodatabase.ITable.CreateRow()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at StreamAnalyst_AGS10.frmXSInspector.AddSurvey()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am getting this error using an custom extension built in .net using in ArcGIS 10, the error only appears when pointed to an SDE database and not a filegeodatabase.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Nov 2012 20:13:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/objects-in-this-class-cannot-be-updated-outside-an/m-p/721424#M40900</guid>
      <dc:creator>JohnCassarow</dc:creator>
      <dc:date>2012-11-28T20:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: Objects in this class cannot be updated outside an edit session</title>
      <link>https://community.esri.com/t5/data-management-questions/objects-in-this-class-cannot-be-updated-outside-an/m-p/721425#M40901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This sounds similar to the issue I was having, but I cannot be sure. Either way, my code below.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
IMapServer3 ms = (IMapServer3)this.mapServerDataAccess;
IDataset fc = this.mapServerDataAccess.GetDataSource(ms.DefaultMapName, 0) as IDataset;
IFeatureWorkspace workspace = (IFeatureWorkspace)fc.Workspace;
IWorkspaceEdit workspaceEdit = (IWorkspaceEdit)fc.Workspace;
&lt;STRONG&gt;workspaceEdit.StartEditing(false);
workspaceEdit.StartEditOperation();&lt;/STRONG&gt;
IFeatureClass fClass = workspace.OpenFeatureClass(layer);

IFeature feature = fClass.CreateFeature();
// Removed lines where assigning data to the feature...
feature.Store();

&lt;STRONG&gt;workspaceEdit.StopEditOperation();
workspaceEdit.StopEditing(true);&lt;/STRONG&gt;
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope it helps!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 06:51:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/objects-in-this-class-cannot-be-updated-outside-an/m-p/721425#M40901</guid>
      <dc:creator>JustinHunter</dc:creator>
      <dc:date>2021-12-12T06:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: Objects in this class cannot be updated outside an edit session</title>
      <link>https://community.esri.com/t5/data-management-questions/objects-in-this-class-cannot-be-updated-outside-an/m-p/721426#M40902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please note that if your featureclass contains attachments and you're in SDE, you'll have to use an additional ArcObject: IMultiuserWorkspaceEdit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Aug 2015 17:37:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/objects-in-this-class-cannot-be-updated-outside-an/m-p/721426#M40902</guid>
      <dc:creator>JulianGomez</dc:creator>
      <dc:date>2015-08-03T17:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: Objects in this class cannot be updated outside an edit session</title>
      <link>https://community.esri.com/t5/data-management-questions/objects-in-this-class-cannot-be-updated-outside-an/m-p/721427#M40903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This error message is associated with a number of possible causes. Here are two reasons:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1- If your SDE data is not versioned. In this case, simply register your data as versioned using ArcCatalog.&lt;/P&gt;&lt;P&gt;2- If you connected to your SDE geodatabase programmatically using IPropertySet, and the server name used is an alias name instead of the original server name. Use the IPropertySet.GetAll properties() method to investigate the exact names of all the properties you would need to supply to the IPropertySet. It is easier to simply connect via the SDE connection file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For detailed information about creating features and Managing Edit Sessions using ArcObjects, please view the following documentation in the ArcObjects Help:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Creating Features&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/#/Creating_features/00010000049v000000/" title="http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/#/Creating_features/00010000049v000000/"&gt;http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/#/Creating_features/00010000049v000000/&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Managing Editing Sessions and Edit Operations&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/#/Managing_edit_sessions_and_edit_operations/000100000340000000/" title="http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/#/Managing_edit_sessions_and_edit_operations/000100000340000000/"&gt;http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/#/Managing_edit_sessions_and_edit_operations/000100000340000000/&lt;/A&gt;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Aug 2015 01:25:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/objects-in-this-class-cannot-be-updated-outside-an/m-p/721427#M40903</guid>
      <dc:creator>SamiEria</dc:creator>
      <dc:date>2015-08-15T01:25:10Z</dc:date>
    </item>
  </channel>
</rss>

