<?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: Attribute Validation / Calculation using Arcade or Database Trigger in Geodatabase Questions</title>
    <link>https://community.esri.com/t5/geodatabase-questions/attribute-validation-calculation-using-arcade-or/m-p/1671979#M9741</link>
    <description>&lt;P&gt;So the way attribute rules work is similar to sql triggers. Because of this, any edits done to a record will trigger some kind of response if one is set. Validation simply checks to see if any of the incoming edits do not meet a certain criteria and can either warn or flag for certain issues. This won't keep the data integrity if that is of more importance. Rules, either constraint or calculation, will best serve your needs.&lt;/P&gt;&lt;P&gt;The other thing, regarding rules, is that they can either be application dependent, such as the case with most offline use, or that can be set to server only. Meaning when an edit is applied, if client side, it will only run on that instance whether it be tablet or phone, but if it is server side then it will update via the server and return the change after it passes server side.&lt;/P&gt;&lt;P&gt;Server side is typically used for checking against other tables/features or the features base table that would require the change be pushed to the server. It is then checked for changes either applied or attributes pulled from the other features, applies changes, and then returns and changes to the version used by the field.&lt;/P&gt;</description>
    <pubDate>Wed, 10 Dec 2025 15:44:38 GMT</pubDate>
    <dc:creator>RPGIS</dc:creator>
    <dc:date>2025-12-10T15:44:38Z</dc:date>
    <item>
      <title>Attribute Validation / Calculation using Arcade or Database Trigger</title>
      <link>https://community.esri.com/t5/geodatabase-questions/attribute-validation-calculation-using-arcade-or/m-p/1670048#M9731</link>
      <description>&lt;P&gt;I am just wondering if Attribute Validation is better with Database Trigger or Arcade.&lt;/P&gt;&lt;P&gt;Suppose I want to do Attribute Validation about the value of one coloumn that depends on the value of another coloumn OR maybe I want to limit the data entry of a coloumn OR maybe I want to populate a date coloumn automatically.&lt;/P&gt;&lt;P&gt;In a scenario in which the data (stored in SDE) have to be accessed by many people via Map / Feature Service, which one is more suitable in term of fastness and reliability ? What are the considerations in choosing a particular method ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 03 Dec 2025 08:57:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/attribute-validation-calculation-using-arcade-or/m-p/1670048#M9731</guid>
      <dc:creator>yockee</dc:creator>
      <dc:date>2025-12-03T08:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Validation / Calculation using Arcade or Database Trigger</title>
      <link>https://community.esri.com/t5/geodatabase-questions/attribute-validation-calculation-using-arcade-or/m-p/1670107#M9732</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/116349"&gt;@yockee&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I don't typically use validation rules simply because the workflows that we have generally will account for all the edits that come in from the field. Typically validation is mostly for verifying that the data that is entered meets a certain criteria.&lt;/P&gt;&lt;P&gt;It is usually best to create calculations that will account for certain things rather than try and force the editor to fill in the information. The solutions that we have created automatically account for certain behaviors and so there isn't a need to for validation.&lt;/P&gt;&lt;P&gt;The other thing is if you are concerned with certain types of edits then you could try and create a constraint rule instead. The benefit of a constraint rule is that you can customize messages will appear to the editors and letting them know what needs to be corrected in order to continue editing.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Dec 2025 14:47:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/attribute-validation-calculation-using-arcade-or/m-p/1670107#M9732</guid>
      <dc:creator>RPGIS</dc:creator>
      <dc:date>2025-12-03T14:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Validation / Calculation using Arcade or Database Trigger</title>
      <link>https://community.esri.com/t5/geodatabase-questions/attribute-validation-calculation-using-arcade-or/m-p/1670284#M9733</link>
      <description>&lt;P&gt;The attribute rule is going to be more reliable and have a better user experience, especially if you're working with data that is versioned or coming in through mobile workflows. You can even make some attribute rules available to mobile users when they are offline, so even when they're editing a local copy of the data integrity is still enforced.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Dec 2025 20:17:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/attribute-validation-calculation-using-arcade-or/m-p/1670284#M9733</guid>
      <dc:creator>RobertKrisher</dc:creator>
      <dc:date>2025-12-03T20:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Validation / Calculation using Arcade or Database Trigger</title>
      <link>https://community.esri.com/t5/geodatabase-questions/attribute-validation-calculation-using-arcade-or/m-p/1670398#M9734</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/138089"&gt;@RobertKrisher&lt;/a&gt;&amp;nbsp; any technical insight regarding why one is better than another one ?&lt;/P&gt;&lt;P&gt;I am thinking that database trigger works on Database Tier, whereas the Attribute Validation works on Server Tier. So the the database tier will work better because it is more efficient.&lt;/P&gt;&lt;P&gt;But I dont know how this Attribute Validation works in Map Feature Service ? The Attribute Validation never gets published as service but how can it work when one access the data via Map Feature Service ? Where is it stored ? On the other hand, database trigger can be seen as database object in the database.&lt;/P&gt;&lt;P&gt;I need more explanation. Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 04 Dec 2025 07:38:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/attribute-validation-calculation-using-arcade-or/m-p/1670398#M9734</guid>
      <dc:creator>yockee</dc:creator>
      <dc:date>2025-12-04T07:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Validation / Calculation using Arcade or Database Trigger</title>
      <link>https://community.esri.com/t5/geodatabase-questions/attribute-validation-calculation-using-arcade-or/m-p/1670776#M9735</link>
      <description>&lt;P&gt;The attribute rule is stored in the geodatabase and is exposed through a validation service to clients. There is also the ability to choose between enforcing rules client-side, or server-side only. I recommend you do some research on attribute rules and the validation service.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Dec 2025 03:09:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/attribute-validation-calculation-using-arcade-or/m-p/1670776#M9735</guid>
      <dc:creator>RobertKrisher</dc:creator>
      <dc:date>2025-12-05T03:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Validation / Calculation using Arcade or Database Trigger</title>
      <link>https://community.esri.com/t5/geodatabase-questions/attribute-validation-calculation-using-arcade-or/m-p/1670807#M9736</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/138089"&gt;@RobertKrisher&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"&lt;SPAN&gt;The attribute rule is stored in the geodatabase and is exposed through a validation service to clients"&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1. Where can I see the attribute rule in the geodatabase ?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2. What is the validation service looks like ? Is it a some sort of wer services ? I need to see the object.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Dec 2025 09:02:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/attribute-validation-calculation-using-arcade-or/m-p/1670807#M9736</guid>
      <dc:creator>yockee</dc:creator>
      <dc:date>2025-12-05T09:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Validation / Calculation using Arcade or Database Trigger</title>
      <link>https://community.esri.com/t5/geodatabase-questions/attribute-validation-calculation-using-arcade-or/m-p/1670986#M9737</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/116349"&gt;@yockee&lt;/a&gt;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/overview/create-modify-and-delete-attribute-rules.htm" target="_blank" rel="noopener"&gt;Create and manage attribute rules—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;2. Before worrying too much about the backend (&lt;A href="https://developers.arcgis.com/rest/services-reference/enterprise/validation-server/" target="_blank" rel="noopener"&gt;REST&lt;/A&gt;), I recommend you read more about the capability: &lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/overview/validation-attribute-rules.htm" target="_blank" rel="noopener"&gt;Validation attribute rules—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Dec 2025 20:35:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/attribute-validation-calculation-using-arcade-or/m-p/1670986#M9737</guid>
      <dc:creator>RobertKrisher</dc:creator>
      <dc:date>2025-12-05T20:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Validation / Calculation using Arcade or Database Trigger</title>
      <link>https://community.esri.com/t5/geodatabase-questions/attribute-validation-calculation-using-arcade-or/m-p/1671482#M9738</link>
      <description>&lt;P&gt;The main reason I am worrying too much is that the Portal is hosted on cloud (AWS).&lt;BR /&gt;FYI, any traffics that enter / leave to / from Portal will generate expenditure for us. I am talking about a really heavy traffic.&lt;/P&gt;&lt;P&gt;So, I need to spread the balance between the servers, DB and Portal. I am hoping that the Attribute Validation, if it is runs in the Portal server, is implemented on the DB via Trigger.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Dec 2025 07:45:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/attribute-validation-calculation-using-arcade-or/m-p/1671482#M9738</guid>
      <dc:creator>yockee</dc:creator>
      <dc:date>2025-12-09T07:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Validation / Calculation using Arcade or Database Trigger</title>
      <link>https://community.esri.com/t5/geodatabase-questions/attribute-validation-calculation-using-arcade-or/m-p/1671636#M9739</link>
      <description>&lt;P&gt;I hope that your database is also in AWS, and that you've read the guidance in the &lt;A href="https://architecture.arcgis.com/en/" target="_blank" rel="noopener"&gt;ArcGIS Architecture Center&lt;/A&gt;. Specifically, about the importance of minimizing the latency between the ArcGIS Enterprise and the Database Server.&lt;/P&gt;&lt;P&gt;The attribute rules can be configured to run on the client side or the server side. When they are run client-side they still need to make queries to the ArcGIS Server to satisfy the data requests. When the rules are run server-side they run on ArcGIS Server.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Dec 2025 15:49:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/attribute-validation-calculation-using-arcade-or/m-p/1671636#M9739</guid>
      <dc:creator>RobertKrisher</dc:creator>
      <dc:date>2025-12-09T15:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Validation / Calculation using Arcade or Database Trigger</title>
      <link>https://community.esri.com/t5/geodatabase-questions/attribute-validation-calculation-using-arcade-or/m-p/1671853#M9740</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/138089"&gt;@RobertKrisher&lt;/a&gt;&amp;nbsp;The database is run locally, not in the cloud. I am planning to move the Arcgis Server out of AWS next year. So this will make both of them rum locally.&lt;/P&gt;&lt;P&gt;FYI, I found that the attribute rule (Constraint) in gdb_items. This is the query :&amp;nbsp;&lt;/P&gt;&lt;P&gt;select definition from sde.gdb_items&amp;nbsp;where physicalname = 'DB.SCHEMA.TABLE_NAME'.&lt;/P&gt;&lt;P&gt;So, does this mean that the Constraint run on the Server Side ?&amp;nbsp;How do you differentiate between attribute rules that run on the Client Side vs Server Side ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Additional:&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found 2 good readings : &lt;A href="https://community.esri.com/t5/attribute-rules-blog/attribute-rule-authoring-and-configuration-tips/ba-p/1023745" target="_self"&gt;Atributes Rules Tips and Best Practices&lt;/A&gt;&amp;nbsp; and&amp;nbsp; &lt;A href="https://community.esri.com/t5/attribute-rules-questions/database-triggers-vs-calculation-attribute-rules/td-p/1148398" target="_self"&gt;Pros Cons Attribute Rules vs Trigger&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Dec 2025 02:47:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/attribute-validation-calculation-using-arcade-or/m-p/1671853#M9740</guid>
      <dc:creator>yockee</dc:creator>
      <dc:date>2025-12-10T02:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Validation / Calculation using Arcade or Database Trigger</title>
      <link>https://community.esri.com/t5/geodatabase-questions/attribute-validation-calculation-using-arcade-or/m-p/1671979#M9741</link>
      <description>&lt;P&gt;So the way attribute rules work is similar to sql triggers. Because of this, any edits done to a record will trigger some kind of response if one is set. Validation simply checks to see if any of the incoming edits do not meet a certain criteria and can either warn or flag for certain issues. This won't keep the data integrity if that is of more importance. Rules, either constraint or calculation, will best serve your needs.&lt;/P&gt;&lt;P&gt;The other thing, regarding rules, is that they can either be application dependent, such as the case with most offline use, or that can be set to server only. Meaning when an edit is applied, if client side, it will only run on that instance whether it be tablet or phone, but if it is server side then it will update via the server and return the change after it passes server side.&lt;/P&gt;&lt;P&gt;Server side is typically used for checking against other tables/features or the features base table that would require the change be pushed to the server. It is then checked for changes either applied or attributes pulled from the other features, applies changes, and then returns and changes to the version used by the field.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Dec 2025 15:44:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/attribute-validation-calculation-using-arcade-or/m-p/1671979#M9741</guid>
      <dc:creator>RPGIS</dc:creator>
      <dc:date>2025-12-10T15:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Validation / Calculation using Arcade or Database Trigger</title>
      <link>https://community.esri.com/t5/geodatabase-questions/attribute-validation-calculation-using-arcade-or/m-p/1671980#M9742</link>
      <description>&lt;P&gt;Yes, the constraint rules can run for both client and server side. As perhaps mentioned before, client side simply means using the devices resources to check for edits whereas server side typically checks tables where attributes reference other tables.&lt;/P&gt;&lt;P&gt;For instance,&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Field personnel update an inspection record n field maps.&lt;/LI&gt;&lt;/OL&gt;&lt;LI-CODE lang="javascript"&gt;// Constraint type on client side
var dt = $feature.date
iif( IsEmpty( dt ), { 'errorMesssage':'Please update the date field'}, True)

// Constraint type on server side
var FieldMapAtt = $feature.SomeValue
var RelVal = Filter( FeatureSetByName($datastore,"Feature Name",['Field'],False), "FieldName = 'SomeValue'" )
iif( TypeOf( RelVal ) != 'Feature', False, True )&lt;/LI-CODE&gt;&lt;P&gt;Hope this gives some idea on how this will work for you.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Dec 2025 15:54:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/attribute-validation-calculation-using-arcade-or/m-p/1671980#M9742</guid>
      <dc:creator>RPGIS</dc:creator>
      <dc:date>2025-12-10T15:54:53Z</dc:date>
    </item>
  </channel>
</rss>

