<?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 &amp;quot;Objects in this object class cannot be updated outside of an edit session.&amp;quot; Error on Creating Annotation in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/quot-objects-in-this-object-class-cannot-be/m-p/1279145#M9685</link>
    <description>&lt;P&gt;I have a point feature class A in file gdb and then I created a feature-linked annotation class B.&lt;/P&gt;&lt;P&gt;Then I have made a SDK program to create annotation on B, the program work fine on file gdb. But I copied both A &amp;amp; B to geodatabase on SQL Server, the program failed, 'Objects in this object class cannot be updated outside of an edit session.' is shown.&lt;BR /&gt;&lt;BR /&gt;I found that the error occurred on the code below:&lt;/P&gt;&lt;P&gt;RowBuffer annoBuf = annoFC.CreateRowBuffer();&lt;BR /&gt;Feature anFt = annoFC.CreateRow(annoBuf);&lt;BR /&gt;AnnotationFeature annoFt = (AnnotationFeature)anFt;&lt;BR /&gt;&lt;BR /&gt;Do anyone have ideas?&lt;/P&gt;</description>
    <pubDate>Mon, 17 Apr 2023 07:20:25 GMT</pubDate>
    <dc:creator>MatsHardy</dc:creator>
    <dc:date>2023-04-17T07:20:25Z</dc:date>
    <item>
      <title>"Objects in this object class cannot be updated outside of an edit session." Error on Creating Annotation</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/quot-objects-in-this-object-class-cannot-be/m-p/1279145#M9685</link>
      <description>&lt;P&gt;I have a point feature class A in file gdb and then I created a feature-linked annotation class B.&lt;/P&gt;&lt;P&gt;Then I have made a SDK program to create annotation on B, the program work fine on file gdb. But I copied both A &amp;amp; B to geodatabase on SQL Server, the program failed, 'Objects in this object class cannot be updated outside of an edit session.' is shown.&lt;BR /&gt;&lt;BR /&gt;I found that the error occurred on the code below:&lt;/P&gt;&lt;P&gt;RowBuffer annoBuf = annoFC.CreateRowBuffer();&lt;BR /&gt;Feature anFt = annoFC.CreateRow(annoBuf);&lt;BR /&gt;AnnotationFeature annoFt = (AnnotationFeature)anFt;&lt;BR /&gt;&lt;BR /&gt;Do anyone have ideas?&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2023 07:20:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/quot-objects-in-this-object-class-cannot-be/m-p/1279145#M9685</guid>
      <dc:creator>MatsHardy</dc:creator>
      <dc:date>2023-04-17T07:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: "Objects in this object class cannot be updated outside of an edit session." Error on Creating Annotation</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/quot-objects-in-this-object-class-cannot-be/m-p/1279200#M9686</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You need to use EditOperation to work with enterprise geodatabase. Sample here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/esri/arcgis-pro-sdk/wiki/ProConcepts-Editing-Annotation#creating-annotation-features" target="_self"&gt;https://github.com/esri/arcgis-pro-sdk/wiki/ProConcepts-Editing-Annotation#creating-annotation-features&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2023 12:28:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/quot-objects-in-this-object-class-cannot-be/m-p/1279200#M9686</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2023-04-17T12:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: "Objects in this object class cannot be updated outside of an edit session." Error on Creating Annotation</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/quot-objects-in-this-object-class-cannot-be/m-p/1279509#M9695</link>
      <description>&lt;P&gt;Many thx, but my annotation program is a standalone program rather than ArcGIS Pro add-in. How can I add the EditorOperation and inspector objects to my program? Besides, how can I implement desktop objects e.g. inspector, CurrentTemplate in standalone program?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2023 03:10:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/quot-objects-in-this-object-class-cannot-be/m-p/1279509#M9695</guid>
      <dc:creator>MatsHardy</dc:creator>
      <dc:date>2023-04-18T03:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: "Objects in this object class cannot be updated outside of an edit session." Error on Creating Annotation</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/quot-objects-in-this-object-class-cannot-be/m-p/1279572#M9698</link>
      <description>&lt;P&gt;&lt;SPAN&gt;For stand-alone CoreHost applications, calls to editing methods should be enclosed within a call to&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic72539.html" target="_blank"&gt;Geodatabase.ApplyEdits&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sample here:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic28926.html" target="_blank"&gt;CreateInsertCursor Method—ArcGIS Pro&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2023 09:04:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/quot-objects-in-this-object-class-cannot-be/m-p/1279572#M9698</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2023-04-18T09:04:47Z</dc:date>
    </item>
  </channel>
</rss>

