<?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 Why can't I save/delete annotations using CoreHost? in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/why-can-t-i-save-delete-annotations-using-corehost/m-p/849972#M4209</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Environment/Project&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;ArcGIS Pro 2.6&lt;/LI&gt;&lt;LI&gt;.NET Framework 4.8 CoreHost referencing ArcGIS.Core 12.6.0&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problems&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;AnnotationFeature&amp;nbsp;setters (e.g. SetGraphic(), SetStatus(), etc) and Store() wrapped in ApplyEdits() does not save edits to the database. No exceptions are thrown.&lt;/LI&gt;&lt;LI&gt;AnnotationFeatureClass DeleteRows() wrapped in ApplyEdits() throws a geodatabase exception if Element field is null.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Workaround&lt;/P&gt;&lt;P&gt;Do not wrap&amp;nbsp;annotation saves/deletes within ApplyEdits().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this the expected behavior?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(For&amp;nbsp;full detail please see the attached PDF)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 12 Sep 2020 22:45:07 GMT</pubDate>
    <dc:creator>SungBae</dc:creator>
    <dc:date>2020-09-12T22:45:07Z</dc:date>
    <item>
      <title>Why can't I save/delete annotations using CoreHost?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/why-can-t-i-save-delete-annotations-using-corehost/m-p/849972#M4209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Environment/Project&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;ArcGIS Pro 2.6&lt;/LI&gt;&lt;LI&gt;.NET Framework 4.8 CoreHost referencing ArcGIS.Core 12.6.0&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problems&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;AnnotationFeature&amp;nbsp;setters (e.g. SetGraphic(), SetStatus(), etc) and Store() wrapped in ApplyEdits() does not save edits to the database. No exceptions are thrown.&lt;/LI&gt;&lt;LI&gt;AnnotationFeatureClass DeleteRows() wrapped in ApplyEdits() throws a geodatabase exception if Element field is null.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Workaround&lt;/P&gt;&lt;P&gt;Do not wrap&amp;nbsp;annotation saves/deletes within ApplyEdits().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this the expected behavior?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(For&amp;nbsp;full detail please see the attached PDF)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Sep 2020 22:45:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/why-can-t-i-save-delete-annotations-using-corehost/m-p/849972#M4209</guid>
      <dc:creator>SungBae</dc:creator>
      <dc:date>2020-09-12T22:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't I save/delete annotations using CoreHost?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/why-can-t-i-save-delete-annotations-using-corehost/m-p/849973#M4210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sung,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A few questions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did this code work in the file&amp;nbsp;geodatabase where you created the data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm a little confused by these two statements:&lt;/P&gt;&lt;UL&gt;&lt;LI style="font-size: 11pt;"&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt;"&gt;I have copied that annotation feature class from the file geodatabase to a branch versioned SQL&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt;"&gt;Server Enterprise geodatabase using arcpy.FeatureClassToFeatureClass_conversion(), and&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt;"&gt;included a few custom fields (e.g. long, text) using arcpy.AddField_management().&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI style="font-size: 11pt;"&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt;"&gt;I have published my non-versioned annotation feature class as a feature service.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think what you're saying is that the annotation feature class is added to a SQL Server enterprise&amp;nbsp;geodatabase that uses branch versioning (presumably it's a utility network), but is itself not branch versioned. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you publish the annotation feature class to a feature service, is this a separate feature service? &amp;nbsp;Or are you attempting to put this in the same feature service as the&amp;nbsp;utility network?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Rich&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Sep 2020 18:04:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/why-can-t-i-save-delete-annotations-using-corehost/m-p/849973#M4210</guid>
      <dc:creator>RichRuh</dc:creator>
      <dc:date>2020-09-13T18:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't I save/delete annotations using CoreHost?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/why-can-t-i-save-delete-annotations-using-corehost/m-p/849974#M4211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just tested this out in a file geodatabase, and it looks like I can make annotation&amp;nbsp;save/delete&amp;nbsp;perfectly fine within ApplyEdits(). So it seems like this issue&amp;nbsp;arises when using a feature service.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You're assumptions from my two statements is correct. I have added an annotation feature class to a branch versioned SQL Server enterprise UN geodatabase but the annotation feature class itself is not versioned. Regarding those statements, I wanted to convey how I made my annotation feature class, and how I've included it into my enterprise gdb.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am publishing this non-versioned annotation feature class as a separate feature service. I want it to be separate from the UN data feature service.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you need any other information/clarifications.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sung&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2020 00:40:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/why-can-t-i-save-delete-annotations-using-corehost/m-p/849974#M4211</guid>
      <dc:creator>SungBae</dc:creator>
      <dc:date>2020-09-14T00:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't I save/delete annotations using CoreHost?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/why-can-t-i-save-delete-annotations-using-corehost/m-p/849975#M4212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank, Sung. &amp;nbsp;Let me try some experiments on my end and see what I get.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2020 00:23:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/why-can-t-i-save-delete-annotations-using-corehost/m-p/849975#M4212</guid>
      <dc:creator>RichRuh</dc:creator>
      <dc:date>2020-09-15T00:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't I save/delete annotations using CoreHost?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/why-can-t-i-save-delete-annotations-using-corehost/m-p/849976#M4213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/411875"&gt;Sung Bae&lt;/A&gt;‌ &lt;SPAN style="background-color: #ffffff;"&gt;Thanks for bringing this to our attention. We have logged the issue as a bug in our internal bug tracking system and development team will investigates the cause of this behavior. You can use the workaround until it is fixed.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2020 18:02:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/why-can-t-i-save-delete-annotations-using-corehost/m-p/849976#M4213</guid>
      <dc:creator>Aashis</dc:creator>
      <dc:date>2020-09-23T18:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't I save/delete annotations using CoreHost?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/why-can-t-i-save-delete-annotations-using-corehost/m-p/849977#M4214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This should be fixed in Pro 2.7. &amp;nbsp;Note that this behavior applies to&amp;nbsp;&lt;STRONG&gt;all&lt;/STRONG&gt; editing done inside Geodatabase.ApplyEdits() on services that do not support version management, not just annotation edits.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2020 16:20:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/why-can-t-i-save-delete-annotations-using-corehost/m-p/849977#M4214</guid>
      <dc:creator>RichRuh</dc:creator>
      <dc:date>2020-10-28T16:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't I save/delete annotations using CoreHost?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/why-can-t-i-save-delete-annotations-using-corehost/m-p/1009989#M5875</link>
      <description>&lt;P&gt;This is fixed in the just-released ArcGIS Pro 2.7&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2020 23:51:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/why-can-t-i-save-delete-annotations-using-corehost/m-p/1009989#M5875</guid>
      <dc:creator>RichRuh</dc:creator>
      <dc:date>2020-12-15T23:51:45Z</dc:date>
    </item>
  </channel>
</rss>

