<?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: Sort Field and then Calculate Sequential Values in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/sort-field-and-then-calculate-sequential-values/m-p/713836#M31428</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, interesting! So I took the same layer and threw it into the toolbox from your zip file. This is a layer in an Enterprise Geodatabase that I have full editing privileges to. It said that it failed because it didn't want to work outside of an edit session (I'm working in ArcGIS Pro 2.2.4)... so I exported&amp;nbsp;out the feature layer to the project geodatabase and ran the tool and it worked fine. Hmmm.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Nov 2018 19:05:00 GMT</pubDate>
    <dc:creator>deleted-user-jxpbpbjlZInj</dc:creator>
    <dc:date>2018-11-15T19:05:00Z</dc:date>
    <item>
      <title>Sort Field and then Calculate Sequential Values</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/sort-field-and-then-calculate-sequential-values/m-p/713828#M31420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have ZERO experience with ArcPy, Arcade expressions... yadda yadda. I basically limp along until something magically works and I'm a huge fan of Copy/Paste. THAT SAID, I'm dipping my toe into something that I thought would be easy...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a bunch of campgrounds, and these are in some parks. I want to give them sequential values based on sorting the PARK_NAME field alphabetically. Using Python 3 in Field Calculator, "Sequential Number" will only assign sequential values based on the Object ID field - it doesn't care how I've sorted it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I tell it to use my sorted field instead of the Object ID? Help!&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2018 17:40:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/sort-field-and-then-calculate-sequential-values/m-p/713828#M31420</guid>
      <dc:creator>deleted-user-jxpbpbjlZInj</dc:creator>
      <dc:date>2018-06-22T17:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Field and then Calculate Sequential Values</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/sort-field-and-then-calculate-sequential-values/m-p/713829#M31421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/blogs/dan_patterson/2018/02/12/table-tools-a-set-of-tools-for-working-with-tabular-data"&gt;/blogs/dan_patterson/2018/02/12/table-tools-a-set-of-tools-for-working-with-tabular-data&lt;/A&gt; is a description to the Code sharing site for my set of table tools.&lt;/P&gt;&lt;P&gt;Calculations for text fields may be what you are looking for... but a better example of your desired output might help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2018 18:17:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/sort-field-and-then-calculate-sequential-values/m-p/713829#M31421</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-06-22T18:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Field and then Calculate Sequential Values</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/sort-field-and-then-calculate-sequential-values/m-p/713830#M31422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alrighty in this table I've run the Sequential python 3 straight from the calculate field options and this is sorted ascending OID. You can see that the sequential values were assigned by the OID. I don't want this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/412118_OID_sequential.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this next screen shot, I've ordered park name ascending by alphabet. I would prefer that the CampgroundID would then be "001, 002, 003", but it's not... &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/sad.png" /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/412119_Alpha_Sequential.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this help explain what I'm looking for? Just downloaded Table Tools!! &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/grin.png" /&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2018 19:25:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/sort-field-and-then-calculate-sequential-values/m-p/713830#M31422</guid>
      <dc:creator>deleted-user-jxpbpbjlZInj</dc:creator>
      <dc:date>2018-06-22T19:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Field and then Calculate Sequential Values</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/sort-field-and-then-calculate-sequential-values/m-p/713831#M31423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;let me know if it works or you have any issues... I never got many applicable test cases … it was more an exercise in coding&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Jun 2018 01:00:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/sort-field-and-then-calculate-sequential-values/m-p/713831#M31423</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-06-23T01:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Field and then Calculate Sequential Values</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/sort-field-and-then-calculate-sequential-values/m-p/713832#M31424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Dan,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I'm circling back around to this item. I've got table tools and I ran Text Fields and keep getting this error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt; File "c:\program files\arcgis\pro\Resources\ArcToolbox\toolboxes\Scripts\sequential_funcs_txt.py", line 199, in &amp;lt;module&amp;gt;&lt;BR /&gt; in_tbl, in_arr, in_fld, out_fld, del_fld, func, xtend = _tool()&lt;BR /&gt; File "c:\program files\arcgis\pro\Resources\ArcToolbox\toolboxes\Scripts\sequential_funcs_txt.py", line 185, in _tool&lt;BR /&gt; in_arr = tbl_2_np_array(in_tbl, flds)&lt;BR /&gt;NameError: name 'tbl_2_np_array' is not defined&lt;BR /&gt; Failed to execute (TxtFieldCalculations).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Nov 2018 17:16:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/sort-field-and-then-calculate-sequential-values/m-p/713832#M31424</guid>
      <dc:creator>deleted-user-jxpbpbjlZInj</dc:creator>
      <dc:date>2018-11-15T17:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Field and then Calculate Sequential Values</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/sort-field-and-then-calculate-sequential-values/m-p/713833#M31425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;like sequential number text fields?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;IMG alt="" class="j-img-floatstart image-2 jive-image" height="259" src="https://community.esri.com/legacyfs/online/429651_sequential_number_text.png" style="float: left;" width="530" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="j-img-floatstart image-1 jive-image" height="517" src="https://community.esri.com/legacyfs/online/429649_Table_Tools03.png" style="float: left;" width="308" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Nov 2018 18:11:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/sort-field-and-then-calculate-sequential-values/m-p/713833#M31425</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-11-15T18:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Field and then Calculate Sequential Values</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/sort-field-and-then-calculate-sequential-values/m-p/713834#M31426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes! Exactly. I keep trying to run this - even trying different tables - and it is giving me the above error.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Nov 2018 18:16:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/sort-field-and-then-calculate-sequential-values/m-p/713834#M31426</guid>
      <dc:creator>deleted-user-jxpbpbjlZInj</dc:creator>
      <dc:date>2018-11-15T18:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Field and then Calculate Sequential Values</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/sort-field-and-then-calculate-sequential-values/m-p/713835#M31427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;"&gt;I will check the version online... had some issues with things not being updated&lt;/SPAN&gt;.&amp;nbsp; I have attached a zip... try it&lt;/P&gt;&lt;P&gt;unzip into a folder and run from there.&lt;/P&gt;&lt;P&gt;don't separate anything and make sure the destination folder has no spaces (i don't tolerate them)&lt;/P&gt;&lt;P&gt;if this doesn't work, zip and email a copy of the table in a gdb (remove fluff and anonymize if needed) and I will have a look at it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Nov 2018 18:33:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/sort-field-and-then-calculate-sequential-values/m-p/713835#M31427</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-11-15T18:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Field and then Calculate Sequential Values</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/sort-field-and-then-calculate-sequential-values/m-p/713836#M31428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, interesting! So I took the same layer and threw it into the toolbox from your zip file. This is a layer in an Enterprise Geodatabase that I have full editing privileges to. It said that it failed because it didn't want to work outside of an edit session (I'm working in ArcGIS Pro 2.2.4)... so I exported&amp;nbsp;out the feature layer to the project geodatabase and ran the tool and it worked fine. Hmmm.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Nov 2018 19:05:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/sort-field-and-then-calculate-sequential-values/m-p/713836#M31428</guid>
      <dc:creator>deleted-user-jxpbpbjlZInj</dc:creator>
      <dc:date>2018-11-15T19:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Field and then Calculate Sequential Values</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/sort-field-and-then-calculate-sequential-values/m-p/713837#M31429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Work local.&amp;nbsp; Enterprise is for Star Trek.&amp;nbsp; You can get a full refund if you aren't satisfied &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Nov 2018 19:10:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/sort-field-and-then-calculate-sequential-values/m-p/713837#M31429</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-11-15T19:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Field and then Calculate Sequential Values</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/sort-field-and-then-calculate-sequential-values/m-p/713838#M31430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lulz. Not an option! I have a bunch of feature layers to iterate through and give unique IDs to. With the Enterprise geodatabase, this happens OFTEN with scripts - my coworker suspects that it's failing because it's wanting to know WHICH version to edit. Built in tools never seem to have this issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Nov 2018 19:18:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/sort-field-and-then-calculate-sequential-values/m-p/713838#M31430</guid>
      <dc:creator>deleted-user-jxpbpbjlZInj</dc:creator>
      <dc:date>2018-11-15T19:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Field and then Calculate Sequential Values</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/sort-field-and-then-calculate-sequential-values/m-p/713839#M31431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;probably the case, I don't work in or on the Enterprise, so there is only 1 version (except for backups) and 1 editor.&amp;nbsp; That is what the expensive software is expected to handle.&amp;nbsp; I couldn't even test in all environments and configurations... so whatever gets written in one night goes out the door &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Nov 2018 19:38:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/sort-field-and-then-calculate-sequential-values/m-p/713839#M31431</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-11-15T19:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Field and then Calculate Sequential Values</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/sort-field-and-then-calculate-sequential-values/m-p/713840#M31432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Understand! Bummertown. Thank you for sticking it out and helping, though.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Nov 2018 19:42:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/sort-field-and-then-calculate-sequential-values/m-p/713840#M31432</guid>
      <dc:creator>deleted-user-jxpbpbjlZInj</dc:creator>
      <dc:date>2018-11-15T19:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Field and then Calculate Sequential Values</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/sort-field-and-then-calculate-sequential-values/m-p/713841#M31433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does the following work for you when the table is in your EGDB?&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; itertools &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; count&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; groupby
&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; operator &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; itemgetter

tbl &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;# path to table&lt;/SPAN&gt;
case_fields &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"PARK_NAME"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"OJBECTID"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
increment_field &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"CampgroundID"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
sql_orderby &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"ORDER BY {}"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;", "&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;join&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;case_fields&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;with&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;da&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;UpdateCursor&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp; tbl&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp; case_fields &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; increment_field&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp; sql_clause&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;None&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; sql_orderby&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;as&lt;/SPAN&gt; cursor&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; counter &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; count&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; case_func &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; itemgetter&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;cursor&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;fields&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;index&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;fld&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; fld &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; case_fields&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; key&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; group &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; groupby&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;cursor&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; case_func&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; row &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; group&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cursor&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;updateRow&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;list&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;key&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"{:0&amp;gt;3}"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;next&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;counter&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 06:34:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/sort-field-and-then-calculate-sequential-values/m-p/713841#M31433</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2021-12-12T06:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Field and then Calculate Sequential Values</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/sort-field-and-then-calculate-sequential-values/m-p/1308442#M71080</link>
      <description>&lt;P&gt;Thank you, the tool has solved the issue of the task I'm working on.&lt;/P&gt;</description>
      <pubDate>Sun, 16 Jul 2023 10:06:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/sort-field-and-then-calculate-sequential-values/m-p/1308442#M71080</guid>
      <dc:creator>ZulfadliSalleh</dc:creator>
      <dc:date>2023-07-16T10:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Field and then Calculate Sequential Values</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/sort-field-and-then-calculate-sequential-values/m-p/1413974#M82263</link>
      <description>&lt;P&gt;I had the same issue and finally found the script to create sequential values NOT based on ObjectID but related to any other defined column here:&amp;nbsp;&lt;A href="https://mediaspace.esri.com/media/t/1_1fkt56w1" target="_blank"&gt;https://mediaspace.esri.com/media/t/1_1fkt56w1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2024 06:45:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/sort-field-and-then-calculate-sequential-values/m-p/1413974#M82263</guid>
      <dc:creator>DenizTuran</dc:creator>
      <dc:date>2024-04-23T06:45:41Z</dc:date>
    </item>
  </channel>
</rss>

