<?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 Using a Geodatabase Sequence With a Multi-Record Append in Attribute Rules Questions</title>
    <link>https://community.esri.com/t5/attribute-rules-questions/using-a-geodatabase-sequence-with-a-multi-record/m-p/1011921#M53</link>
    <description>&lt;P&gt;Is it possible to get an attribute rule to fire sequentially as records are appended to a feature class?&lt;/P&gt;&lt;P&gt;As a test I set a geodatabase sequence in a file geodatabase with a start value of 100 and increment value of 1.&amp;nbsp; I then added a standard return NextSequenceValue rule to a field, UniqueID:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;return "Prefix-" + NextSequenceValue ("SequenceName")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I appended several hundred records from another feature class.&amp;nbsp; All of the appended records have a UniqueID value of Prefix-100.&lt;/P&gt;&lt;P&gt;I was hoping they would have Prefix-100, Prefix-101, Prefix-102 and so on.&lt;/P&gt;&lt;P&gt;Is there a way to write a rule that uses a database sequence and will assign incremental values with a multi-record append?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1108"&gt;@XanderBakker&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Dec 2020 23:31:54 GMT</pubDate>
    <dc:creator>JoeBorgione</dc:creator>
    <dc:date>2020-12-22T23:31:54Z</dc:date>
    <item>
      <title>Using a Geodatabase Sequence With a Multi-Record Append</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/using-a-geodatabase-sequence-with-a-multi-record/m-p/1011921#M53</link>
      <description>&lt;P&gt;Is it possible to get an attribute rule to fire sequentially as records are appended to a feature class?&lt;/P&gt;&lt;P&gt;As a test I set a geodatabase sequence in a file geodatabase with a start value of 100 and increment value of 1.&amp;nbsp; I then added a standard return NextSequenceValue rule to a field, UniqueID:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;return "Prefix-" + NextSequenceValue ("SequenceName")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I appended several hundred records from another feature class.&amp;nbsp; All of the appended records have a UniqueID value of Prefix-100.&lt;/P&gt;&lt;P&gt;I was hoping they would have Prefix-100, Prefix-101, Prefix-102 and so on.&lt;/P&gt;&lt;P&gt;Is there a way to write a rule that uses a database sequence and will assign incremental values with a multi-record append?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1108"&gt;@XanderBakker&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2020 23:31:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/using-a-geodatabase-sequence-with-a-multi-record/m-p/1011921#M53</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2020-12-22T23:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: Using a Geodatabase Sequence With a Multi-Record Append</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/using-a-geodatabase-sequence-with-a-multi-record/m-p/1012119#M54</link>
      <description>&lt;P&gt;For now I've created a python script tool that uses a search cursor and a select statement within the search cursor to select a single feature in the input feature class and append it to target feature class.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It works, but anytime you have a search cursor with a selection, it's not the fastest thing around; to work through 100 records in the input feature class, it takes about 2.5 minutes to complete; however, since it's appending one record at a time, the sequence based attribute rule fires and updates the field accordingly.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2020 18:14:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/using-a-geodatabase-sequence-with-a-multi-record/m-p/1012119#M54</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2020-12-23T18:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: Using a Geodatabase Sequence With a Multi-Record Append</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/using-a-geodatabase-sequence-with-a-multi-record/m-p/1013361#M55</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/3374"&gt;@JoeBorgione&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The&amp;nbsp;&lt;SPAN&gt;NextSequenceValue should generate a new value every time a value is inserted in your data. How did you configure the sequence?&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The functionality that you are looking for is the one you are using, but it is strange that the same value is generated for each new feature (I don't think an append would be a single action and triggering the attribute rule only once...)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jan 2021 22:27:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/using-a-geodatabase-sequence-with-a-multi-record/m-p/1013361#M55</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-01-01T22:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: Using a Geodatabase Sequence With a Multi-Record Append</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/using-a-geodatabase-sequence-with-a-multi-record/m-p/1013649#M58</link>
      <description>&lt;P&gt;Happy New Year&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1108"&gt;@XanderBakker&lt;/a&gt;&amp;nbsp;. I set the sequence up just like any other I've used with a start value and an increment value.&amp;nbsp; It thought an append would fire the rule as each record is appended, not as a single update.&amp;nbsp; The cursor/select method works, so we are good to go.&amp;nbsp; I was just thinking if there might be a better way...&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jan 2021 17:55:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/using-a-geodatabase-sequence-with-a-multi-record/m-p/1013649#M58</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2021-01-04T17:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: Using a Geodatabase Sequence With a Multi-Record Append</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/using-a-geodatabase-sequence-with-a-multi-record/m-p/1015341#M60</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/3374"&gt;@JoeBorgione&lt;/a&gt;&amp;nbsp;, happy New Year to you too.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think the desired functionality of an attribute rule would be that it would be triggered by the newly appended features. Might be good to register this with support, since I don't think this is correct behavior.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Jan 2021 21:10:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/using-a-geodatabase-sequence-with-a-multi-record/m-p/1015341#M60</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-01-09T21:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: Using a Geodatabase Sequence With a Multi-Record Append</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/using-a-geodatabase-sequence-with-a-multi-record/m-p/1016621#M70</link>
      <description>&lt;P&gt;Just did a quick test on 2.7 and seems to be working&lt;/P&gt;&lt;P&gt;created two point classes testfrom and test&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;created a bunch of features in testfrom&lt;/P&gt;&lt;P&gt;created a sequence + AR above on Test class&lt;/P&gt;&lt;P&gt;executed an append from testfrom-&amp;gt; test and the resulting AR got executed as expected.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HusseinNasser2_0-1610575298407.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/3801iD81630C186E51D02/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HusseinNasser2_0-1610575298407.png" alt="HusseinNasser2_0-1610575298407.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2021 22:03:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/using-a-geodatabase-sequence-with-a-multi-record/m-p/1016621#M70</guid>
      <dc:creator>HusseinNasser2</dc:creator>
      <dc:date>2021-01-13T22:03:01Z</dc:date>
    </item>
    <item>
      <title>Re: Using a Geodatabase Sequence With a Multi-Record Append</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/using-a-geodatabase-sequence-with-a-multi-record/m-p/1016623#M71</link>
      <description>&lt;P&gt;I'll give it a second try then; maybe it's 2.6 thing.&amp;nbsp; I'm late in updating...&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2021 22:07:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/using-a-geodatabase-sequence-with-a-multi-record/m-p/1016623#M71</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2021-01-13T22:07:57Z</dc:date>
    </item>
  </channel>
</rss>

