<?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 Bug with ArcPro? Edited Features in Branch Versions Do Not Get Updated Until Restart or Change Version in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/bug-with-arcpro-edited-features-in-branch-versions/m-p/1489058#M11648</link>
    <description>&lt;P&gt;Bug with ArcPro? Edited Features in Branch Versions Do Not Get Updated Until Restart or Change Version:&lt;/P&gt;&lt;P&gt;A feature is edited from code (an insert, not update), and posted to a branch version.&lt;/P&gt;&lt;P&gt;There is an attribute rule that is applied on backend which change the values of an "inserted" record.&lt;/P&gt;&lt;P&gt;From code, edits are saved, and the version refreshed.&lt;/P&gt;&lt;P&gt;But the changes are not reflected on the feature when examined in table or map (popup info).&lt;/P&gt;&lt;P&gt;Only after restart, or the version is changed to another and changed back, does the changes from the attribute rule reflected.&lt;/P&gt;</description>
    <pubDate>Tue, 11 Jun 2024 18:50:32 GMT</pubDate>
    <dc:creator>Gurunara</dc:creator>
    <dc:date>2024-06-11T18:50:32Z</dc:date>
    <item>
      <title>Bug with ArcPro? Edited Features in Branch Versions Do Not Get Updated Until Restart or Change Version</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/bug-with-arcpro-edited-features-in-branch-versions/m-p/1489058#M11648</link>
      <description>&lt;P&gt;Bug with ArcPro? Edited Features in Branch Versions Do Not Get Updated Until Restart or Change Version:&lt;/P&gt;&lt;P&gt;A feature is edited from code (an insert, not update), and posted to a branch version.&lt;/P&gt;&lt;P&gt;There is an attribute rule that is applied on backend which change the values of an "inserted" record.&lt;/P&gt;&lt;P&gt;From code, edits are saved, and the version refreshed.&lt;/P&gt;&lt;P&gt;But the changes are not reflected on the feature when examined in table or map (popup info).&lt;/P&gt;&lt;P&gt;Only after restart, or the version is changed to another and changed back, does the changes from the attribute rule reflected.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2024 18:50:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/bug-with-arcpro-edited-features-in-branch-versions/m-p/1489058#M11648</guid>
      <dc:creator>Gurunara</dc:creator>
      <dc:date>2024-06-11T18:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: Bug with ArcPro? Edited Features in Branch Versions Do Not Get Updated Until Restart or Change Version</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/bug-with-arcpro-edited-features-in-branch-versions/m-p/1489460#M11649</link>
      <description>&lt;P&gt;What version of the Pro and Enterprise are you using&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/632615"&gt;@Gurunara&lt;/a&gt;?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2024 21:05:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/bug-with-arcpro-edited-features-in-branch-versions/m-p/1489460#M11649</guid>
      <dc:creator>Aashis</dc:creator>
      <dc:date>2024-06-11T21:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: Bug with ArcPro? Edited Features in Branch Versions Do Not Get Updated Until Restart or Change Version</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/bug-with-arcpro-edited-features-in-branch-versions/m-p/1489895#M11652</link>
      <description>&lt;P&gt;Enterprise: 11.2&amp;nbsp;&lt;/P&gt;&lt;P&gt;ArcPro: 3.2.2&lt;/P&gt;&lt;P&gt;For update requests, the changes are reflected immediately on the map before after saves.&lt;/P&gt;&lt;P&gt;But for new (insert) operations, whether an attribute rule is run on the backend or not to update the values of some fields in the incoming request, the changes are not reflected before after saves. One can see the new feature on the map, but fields which get assigned default values on the backend for e.g. from an attribute rule run are not reflected "until" one restarts ArcPro or changes the version to another and back.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2024 03:08:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/bug-with-arcpro-edited-features-in-branch-versions/m-p/1489895#M11652</guid>
      <dc:creator>Gurunara</dc:creator>
      <dc:date>2024-06-12T03:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: Bug with ArcPro? Edited Features in Branch Versions Do Not Get Updated Until Restart or Change Version</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/bug-with-arcpro-edited-features-in-branch-versions/m-p/1489896#M11653</link>
      <description>&lt;P&gt;Seems the update changes are available immediately since the changes are made on both the client and server side. But the inserts are not available, since the updated values are available only on the server side.&lt;BR /&gt;&lt;BR /&gt;So this may be a "refresh" issue..?&lt;BR /&gt;&lt;BR /&gt;Currently doing refresh 2 ways:&lt;BR /&gt;1) from ArcPro, under Verioning tab, click on Refresh button&lt;BR /&gt;2) from code:&lt;BR /&gt;&lt;BR /&gt;QueuedTask.Run(() =&amp;gt;&lt;BR /&gt;{&lt;BR /&gt;using (var geoDatabase = featureLayer.GetFeatureClass().GetDatastore() as Geodatabase)&lt;BR /&gt;using (var versionManager = geoDatabase.GetVersionManager())&lt;BR /&gt;using (var version = versionManager.GetCurrentVersion())&lt;BR /&gt;{&lt;BR /&gt;version.Refresh();&lt;BR /&gt;}&lt;BR /&gt;});&lt;BR /&gt;&lt;BR /&gt;Neither seems to update values from the backend. I can see the updated values resulting from changes from the attribute rule run on the backend when querying directly via feature service url query tool (by setting the "&lt;SPAN&gt;Geodatabase Version Name:"), but those changes don't seem to be reflected on the map by performing the refresh by above 2 methods...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Is there another refresh method one needs to use, for e.g. refresh on the featurelayer or map level, not a version refresh..?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2024 03:29:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/bug-with-arcpro-edited-features-in-branch-versions/m-p/1489896#M11653</guid>
      <dc:creator>Gurunara</dc:creator>
      <dc:date>2024-06-12T03:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: Bug with ArcPro? Edited Features in Branch Versions Do Not Get Updated Until Restart or Change Version</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/bug-with-arcpro-edited-features-in-branch-versions/m-p/1490408#M11655</link>
      <description>&lt;P&gt;But is this a bug with ArcPro, since how would a normal user of ArcPro see the change if there is no code behind of refresh of the values (even if there is a way to refresh the values from code-behind)..? I.e. if user does a manual save of edits, the values for inserts which occur on the backend via attribute rules are not reflected, until he/she restarts or change version and back..?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2024 11:37:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/bug-with-arcpro-edited-features-in-branch-versions/m-p/1490408#M11655</guid>
      <dc:creator>Gurunara</dc:creator>
      <dc:date>2024-06-12T11:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: Bug with ArcPro? Edited Features in Branch Versions Do Not Get Updated Until Restart or Change Version</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/bug-with-arcpro-edited-features-in-branch-versions/m-p/1490409#M11656</link>
      <description>&lt;P&gt;Also currently doing invalidate on the new row did not work:&lt;BR /&gt;&lt;BR /&gt;using (Feature feature = featureClass.CreateRow(rowBuffer))&lt;BR /&gt;{&lt;BR /&gt;// To Indicate that the attribute table has to be updated&lt;BR /&gt;context.Invalidate(feature);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2024 11:38:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/bug-with-arcpro-edited-features-in-branch-versions/m-p/1490409#M11656</guid>
      <dc:creator>Gurunara</dc:creator>
      <dc:date>2024-06-12T11:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: Bug with ArcPro? Edited Features in Branch Versions Do Not Get Updated Until Restart or Change Version</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/bug-with-arcpro-edited-features-in-branch-versions/m-p/1490470#M11659</link>
      <description>&lt;P&gt;Have you called Version.&lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic19017.html" target="_self"&gt;Reconcile&amp;nbsp;&lt;/A&gt;to pull updated changes from the default version after the Post? After the &lt;A href="https://github.com/Esri/arcgis-pro-sdk/wiki/ProConcepts-Geodatabase#versioning" target="_self"&gt;Reconcile&lt;/A&gt;, you will notice features' record change ( insert, update, or delete) from the target version ( default in branch) are applied to your edit version.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2024 13:09:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/bug-with-arcpro-edited-features-in-branch-versions/m-p/1490470#M11659</guid>
      <dc:creator>Aashis</dc:creator>
      <dc:date>2024-06-12T13:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: Bug with ArcPro? Edited Features in Branch Versions Do Not Get Updated Until Restart or Change Version</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/bug-with-arcpro-edited-features-in-branch-versions/m-p/1490490#M11662</link>
      <description>&lt;P&gt;Our workflow will not require Reconcile to the default version...&lt;/P&gt;&lt;P&gt;Looks like found another way to update the client values...&lt;BR /&gt;featurelayer.ClearDisplayCache() seems to do the trick.&lt;BR /&gt;&lt;BR /&gt;This can be called when doing edit saves from code behind. As for when manual saves are being done via ArcPro, can hook into:&lt;BR /&gt;&lt;BR /&gt;EditCompletedEvent.Subscribe event to check for the layer of interest being saved and call&amp;nbsp;ClearDisplayCache there too...&lt;BR /&gt;&lt;BR /&gt;there check for&amp;nbsp;args.CompletedType == EditCompletedType.Save to detect when the save operation is being performed.&lt;BR /&gt;&lt;BR /&gt;the only thing is when&amp;nbsp;args.CompletedType == EditCompletedType.Save, the layer information doesn't seem to be available... so have to check for it when&amp;nbsp;args.CompletedType == EditCompletedType.Operation and save that to some temporary variable and check for that in&amp;nbsp;args.CompletedType == EditCompletedType.Save...&lt;BR /&gt;&lt;BR /&gt;wish the layer information was available at&amp;nbsp;args.CompletedType == EditCompletedType.Save&lt;BR /&gt;&lt;BR /&gt;ref:&amp;nbsp;&lt;A href="https://github.com/esri/arcgis-pro-sdk/wiki/ProConcepts-Editing#editcompletedevent" target="_blank"&gt;https://github.com/esri/arcgis-pro-sdk/wiki/ProConcepts-Editing#editcompletedevent&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2024 13:36:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/bug-with-arcpro-edited-features-in-branch-versions/m-p/1490490#M11662</guid>
      <dc:creator>Gurunara</dc:creator>
      <dc:date>2024-06-12T13:36:52Z</dc:date>
    </item>
  </channel>
</rss>

