<?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: FeatureService, attribute rules not triggered in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/featureservice-attribute-rules-not-triggered/m-p/1686018#M13452</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;It would be nice to see piece of your code. How do you use&amp;nbsp; CreateRow? Are you using&amp;nbsp;editOperation.Callback as in sample &lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic7013.html" target="_self"&gt;here&lt;/A&gt;? Are you calling context invalidate for feature:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;context.Invalidate(feature);&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 23 Feb 2026 20:01:22 GMT</pubDate>
    <dc:creator>GKmieliauskas</dc:creator>
    <dc:date>2026-02-23T20:01:22Z</dc:date>
    <item>
      <title>FeatureService, attribute rules not triggered</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/featureservice-attribute-rules-not-triggered/m-p/1685972#M13451</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am currently experiencing an issue with a Feature Service when creating a large number of features.&lt;/P&gt;&lt;P&gt;I have an attribute rule on a field named &lt;STRONG&gt;UID&lt;/STRONG&gt;, which calls a sequence to generate a unique identifier using the following expression:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;'S' + NextSequenceValue('s100.seq_UID')&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;This works perfectly in both file geodatabases and enterprise geodatabases. However, when working with a &lt;STRONG&gt;branch-versioned enterprise geodatabase published as a Feature Service&lt;/STRONG&gt;, the UID field is often empty immediately after calling CreateRow() and attempting to read the value from the returned feature:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class=""&gt;var&lt;/SPAN&gt; &lt;SPAN class=""&gt;feature&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;featureClass&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;CreateRow&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;buffer&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class=""&gt;var&lt;/SPAN&gt; &lt;SPAN class=""&gt;name&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;Convert&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;ToString&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;feature&lt;/SPAN&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN class=""&gt;"UID"&lt;/SPAN&gt;&lt;SPAN&gt;]);&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The UID field does appear to be populated at some point, but it is not available in the returned feature object at the time I need it. Unfortunately, I require the UID value immediately within my code workflow.&lt;/P&gt;&lt;P&gt;Could you please advise why this behavior occurs in a branch-versioned Feature Service environment, and how I might implement a reliable solution?&lt;/P&gt;&lt;P&gt;Any suggestions would be greatly appreciated.&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Jens Christiansen&lt;/P&gt;</description>
      <pubDate>Mon, 23 Feb 2026 18:09:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/featureservice-attribute-rules-not-triggered/m-p/1685972#M13451</guid>
      <dc:creator>pocalipse</dc:creator>
      <dc:date>2026-02-23T18:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureService, attribute rules not triggered</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/featureservice-attribute-rules-not-triggered/m-p/1686018#M13452</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;It would be nice to see piece of your code. How do you use&amp;nbsp; CreateRow? Are you using&amp;nbsp;editOperation.Callback as in sample &lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic7013.html" target="_self"&gt;here&lt;/A&gt;? Are you calling context invalidate for feature:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;context.Invalidate(feature);&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 23 Feb 2026 20:01:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/featureservice-attribute-rules-not-triggered/m-p/1686018#M13452</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2026-02-23T20:01:22Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureService, attribute rules not triggered</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/featureservice-attribute-rules-not-triggered/m-p/1687432#M13465</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/42133"&gt;@GKmieliauskas&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm running my code as a Hosted application so it is actually a console application using the ArcGIS Pro SDK.&amp;nbsp;&lt;/P&gt;&lt;P&gt;That said I actually only open the feature class, create a RowBuffer, add some attributes and then call CreateRow. The returned feature doesn't always contain the updated attribute initialized by the AttributeRule which then breaks my code since I need that generated value.&lt;/P&gt;&lt;P&gt;If I just continue the attribute is generated at some point but "long" time after I call CreateRow.&lt;/P&gt;&lt;P&gt;So all in all it seems that attribute rules aren't executed doing CreateRow like on any other supported database which then makes it pretty difficult to use Attribute Rules for this kind of scenario.&lt;/P&gt;&lt;P&gt;I'm using the Attribute Rule to create a global ID - which isn't the GlobalID but something a bit simpler &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Jens Christiansen&lt;/P&gt;</description>
      <pubDate>Fri, 27 Feb 2026 19:59:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/featureservice-attribute-rules-not-triggered/m-p/1687432#M13465</guid>
      <dc:creator>pocalipse</dc:creator>
      <dc:date>2026-02-27T19:59:22Z</dc:date>
    </item>
  </channel>
</rss>

