<?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 IWorkspaceEdit2.StartEditOperation and AbortEditOperation in a NON-versioned database in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/iworkspaceedit2-starteditoperation-and/m-p/450537#M25779</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to use Edit Operations inside an edit session in a non-versioned&amp;nbsp; database, without success though.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems that is not possible to rollback (AbortEditOperation) just one operation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Is it possible to use Edit Operations in an non-versioned database?&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My code bellow:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
// Cast the workspace to the IWorkspaceEdit2 and IMultiuserWorkspaceEdit interfaces.
IWorkspaceEdit2 workspaceEdit2 = (IWorkspaceEdit2)GetWorkspace();
IMultiuserWorkspaceEdit muWorkspaceEdit = (IMultiuserWorkspaceEdit)GetWorkspace();

// Start a non-versioned edit session.
muWorkspaceEdit.StartMultiuserEditing(esriMultiuserEditSessionMode.esriMESMNonVersioned);

// Start an Edit Operarion
workspaceEdit2.StartEditOperation();
// ...
// MODIFICATION 1
// ...
// Close and save the operation
workspaceEdit2.StopEditOperation();

// Start the second Edit Operation
workspaceEdit2.StartEditOperation();
// ...
// MODIFICATION 2
// ...
// Abort the operation (Although it won't be rolled back)
workspaceEdit2.AbortEditOperation();

// After this point, I got saved the modifications 1 and 2, in spite of the AbortEditOperation being called after the second modification

&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 20:07:09 GMT</pubDate>
    <dc:creator>VitorFortunato</dc:creator>
    <dc:date>2021-12-11T20:07:09Z</dc:date>
    <item>
      <title>IWorkspaceEdit2.StartEditOperation and AbortEditOperation in a NON-versioned database</title>
      <link>https://community.esri.com/t5/data-management-questions/iworkspaceedit2-starteditoperation-and/m-p/450537#M25779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to use Edit Operations inside an edit session in a non-versioned&amp;nbsp; database, without success though.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems that is not possible to rollback (AbortEditOperation) just one operation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Is it possible to use Edit Operations in an non-versioned database?&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My code bellow:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
// Cast the workspace to the IWorkspaceEdit2 and IMultiuserWorkspaceEdit interfaces.
IWorkspaceEdit2 workspaceEdit2 = (IWorkspaceEdit2)GetWorkspace();
IMultiuserWorkspaceEdit muWorkspaceEdit = (IMultiuserWorkspaceEdit)GetWorkspace();

// Start a non-versioned edit session.
muWorkspaceEdit.StartMultiuserEditing(esriMultiuserEditSessionMode.esriMESMNonVersioned);

// Start an Edit Operarion
workspaceEdit2.StartEditOperation();
// ...
// MODIFICATION 1
// ...
// Close and save the operation
workspaceEdit2.StopEditOperation();

// Start the second Edit Operation
workspaceEdit2.StartEditOperation();
// ...
// MODIFICATION 2
// ...
// Abort the operation (Although it won't be rolled back)
workspaceEdit2.AbortEditOperation();

// After this point, I got saved the modifications 1 and 2, in spite of the AbortEditOperation being called after the second modification

&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 20:07:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/iworkspaceedit2-starteditoperation-and/m-p/450537#M25779</guid>
      <dc:creator>VitorFortunato</dc:creator>
      <dc:date>2021-12-11T20:07:09Z</dc:date>
    </item>
    <item>
      <title>IWorkspaceEdit2.StartEditOperation and AbortEditOperation in a NON-versioned database</title>
      <link>https://community.esri.com/t5/data-management-questions/iworkspaceedit2-starteditoperation-and/m-p/450538#M25780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is anybody there?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Apr 2010 18:33:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/iworkspaceedit2-starteditoperation-and/m-p/450538#M25780</guid>
      <dc:creator>VitorFortunato</dc:creator>
      <dc:date>2010-04-19T18:33:53Z</dc:date>
    </item>
  </channel>
</rss>

