<?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: Execute an attribute rule manually in Attribute Rules Questions</title>
    <link>https://community.esri.com/t5/attribute-rules-questions/execute-an-attribute-rule-manually/m-p/1016613#M68</link>
    <description>&lt;P&gt;This is probably what you are looking for Joe, Batch Calculation / Validation Rules which can be executed through the Evaluate method in error inspector in Pro or through the REST end point.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Video here&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/attribute-rules-videos/create-publish-and-work-with-batch-calculation-and-validation/m-p/976977#M10" target="_blank"&gt;https://community.esri.com/t5/attribute-rules-videos/create-publish-and-work-with-batch-calculation-and-validation/m-p/976977#M10&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 13 Jan 2021 21:50:38 GMT</pubDate>
    <dc:creator>HusseinNasser2</dc:creator>
    <dc:date>2021-01-13T21:50:38Z</dc:date>
    <item>
      <title>Execute an attribute rule manually</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/execute-an-attribute-rule-manually/m-p/432002#M12</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think someone one showed me how to do this, but I just can't remember.&amp;nbsp; Here is my scenario:&amp;nbsp; I have an existing feature class to which I added a couple of fields.&amp;nbsp; Those fields are to be populated as a concatenation of some other field values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I did to run them manually was first set them for insert and modify.&amp;nbsp; Then I selected all the features, and in one of the fields I have the new concatenation rules set, I simple hit the space bar while in the selected attributes pane.&amp;nbsp; That's enough for a modification so both rules fired and I'm good to go.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, that's sort of a hack; I thought there is a way to execute a rule manually without even making a phony modification.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2020 20:56:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/execute-an-attribute-rule-manually/m-p/432002#M12</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2020-10-20T20:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: Execute an attribute rule manually</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/execute-an-attribute-rule-manually/m-p/432003#M13</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/4422"&gt;Joe Borgione&lt;/A&gt;‌ are you talking about "Immediate Calculations"?&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/help/data/geodatabases/overview/calculation-attribute-rules.htm" title="https://pro.arcgis.com/en/pro-app/help/data/geodatabases/overview/calculation-attribute-rules.htm"&gt;Calculation attribute rules—ArcGIS Pro | Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2020 22:00:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/execute-an-attribute-rule-manually/m-p/432003#M13</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2020-10-20T22:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: Execute an attribute rule manually</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/execute-an-attribute-rule-manually/m-p/432004#M14</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not exactly: these rules are specifically set up to fire when a feature is either added or modified so they fall in the class of Immediate Calculations.&amp;nbsp; Basically all the features are already in the feature class and I added a couple of fields;&amp;nbsp; I wrote the rules just to get some practice; I could have just used the field calculator, but where is the fun in that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2020 22:15:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/execute-an-attribute-rule-manually/m-p/432004#M14</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2020-10-20T22:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: Execute an attribute rule manually</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/execute-an-attribute-rule-manually/m-p/432005#M15</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you made a custom toolbox that performs the repetitive add fields, and loads your calculations that you use most often? &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/wink.png" /&gt;&amp;nbsp;that would be fun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Oct 2020 00:16:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/execute-an-attribute-rule-manually/m-p/432005#M15</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2020-10-21T00:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: Execute an attribute rule manually</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/execute-an-attribute-rule-manually/m-p/432006#M16</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I asked around and there is no 'button to click' to execute an attribute rule on demand.&amp;nbsp; What was shown me was essentially the same thing I mention above: select a record and simply run a field calculation on the field with the rule and it will fire.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Oct 2020 20:36:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/execute-an-attribute-rule-manually/m-p/432006#M16</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2020-10-21T20:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: Execute an attribute rule manually</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/execute-an-attribute-rule-manually/m-p/1016613#M68</link>
      <description>&lt;P&gt;This is probably what you are looking for Joe, Batch Calculation / Validation Rules which can be executed through the Evaluate method in error inspector in Pro or through the REST end point.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Video here&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/attribute-rules-videos/create-publish-and-work-with-batch-calculation-and-validation/m-p/976977#M10" target="_blank"&gt;https://community.esri.com/t5/attribute-rules-videos/create-publish-and-work-with-batch-calculation-and-validation/m-p/976977#M10&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2021 21:50:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/execute-an-attribute-rule-manually/m-p/1016613#M68</guid>
      <dc:creator>HusseinNasser2</dc:creator>
      <dc:date>2021-01-13T21:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: Execute an attribute rule manually</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/execute-an-attribute-rule-manually/m-p/1046868#M111</link>
      <description>&lt;P&gt;I am also looking for the ability to run an attribute rule manually.&amp;nbsp; I'm attempting to reproduce some of the rules I had set up using the Attribute Assistant in ArcMap, as I migrate my data editing to Pro.&amp;nbsp; I've found some particular rules executing automatically causes more problems than it is helpful.&lt;/P&gt;&lt;P&gt;I was beginning to look into the Batch Calculation, but it seems that only a workspace w/ branch versioning or FGDB is supported.&amp;nbsp;&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/overview/evaluate-attribute-rules.htm" target="_self"&gt;https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/overview/evaluate-attribute-rules.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I am working with an SQL Server geodatabase w/ "traditional" versioning.&amp;nbsp; Is this supported?&amp;nbsp; If not, is it coming?&amp;nbsp;&amp;nbsp;&lt;STRIKE&gt;Is setting up a feature service also a requirement?&amp;nbsp; There is just one editor, so these seems like an awful lot of overhead if I need to set up a service.&amp;nbsp;&lt;/STRIKE&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Edited -&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;I see that branch versions are only editable through a web feature service.&amp;nbsp;&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/overview/branch-version-scenarios.htm" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/overview/branch-version-scenarios.htm&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Leon&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Apr 2021 18:14:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/execute-an-attribute-rule-manually/m-p/1046868#M111</guid>
      <dc:creator>LeonS</dc:creator>
      <dc:date>2021-04-16T18:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: Execute an attribute rule manually</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/execute-an-attribute-rule-manually/m-p/1219354#M592</link>
      <description>&lt;P&gt;Just wondering if you'd ever gotten anywhere with running an attribute rule manually?&amp;nbsp; I have the same problem - - I used AUTONUMBER in Attribute Rules but under the manual option because I don't want every feature auto-numbered, just the occasional one.&amp;nbsp; I don't see a way to make an attribute rule when I only need to run it occasionally.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 14:43:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/execute-an-attribute-rule-manually/m-p/1219354#M592</guid>
      <dc:creator>TerriWaddell1</dc:creator>
      <dc:date>2022-10-06T14:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: Execute an attribute rule manually</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/execute-an-attribute-rule-manually/m-p/1219400#M593</link>
      <description>&lt;P&gt;The only way to run an attribute rule manually is to use batch calculation rule using Evaluate method.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For your use case however, I think you can still use immediate calculation rule and have a special field in the class (call it trigger (true or false)) when creating a feature have the trigger default to false and only when you flip the trigger field to true the rule can execute.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The rule will look something like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;if ($feature.trigger == 'true') return NextSequenceValue('seq');

return;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is another way you can execute the rule manually.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 15:38:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/execute-an-attribute-rule-manually/m-p/1219400#M593</guid>
      <dc:creator>HusseinNasser2</dc:creator>
      <dc:date>2022-10-06T15:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: Execute an attribute rule manually</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/execute-an-attribute-rule-manually/m-p/1219447#M594</link>
      <description>&lt;P&gt;Be sure to reset the trigger, else the sequence field will be calculated every time you edit it:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;if($feature.trigger == "true") {
    return {result: {attributes: {trigger: "false", sequence_field: NextSequenceValue("seq")}}
}
return&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 16:37:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/execute-an-attribute-rule-manually/m-p/1219447#M594</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2022-10-06T16:37:38Z</dc:date>
    </item>
  </channel>
</rss>

