<?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: Make Unique Alphanumeric value in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/make-unique-alphanumeric-value/m-p/151629#M11706</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Bing&lt;/P&gt;&lt;P&gt;Thanks for your help this work well when I run simply but I need to use this in &lt;SPAN style="color: #4c4c4c; background-color: #ffffff; font-weight: 300;"&gt;arcpy.&lt;/SPAN&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/arcpy/functions/updatecursor.htm" style="color: #0074b8; background-color: #ffffff; font-weight: 300; text-decoration: none;"&gt;UpdateCursor&lt;/A&gt;&amp;nbsp;and in place of [FieldName]. I want to use the values from one of the field already available in data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bilal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Oct 2020 08:34:03 GMT</pubDate>
    <dc:creator>Bmohammad</dc:creator>
    <dc:date>2020-10-13T08:34:03Z</dc:date>
    <item>
      <title>Make Unique Alphanumeric value</title>
      <link>https://community.esri.com/t5/python-questions/make-unique-alphanumeric-value/m-p/151622#M11699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&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;I want to calculate one field from another field e.g I want AAA- [FieldName], I want that AA will be change and give unique value e.g&lt;/P&gt;&lt;P&gt;AAA-&lt;SPAN&gt;[FieldName]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;AAB-&lt;SPAN&gt;[FieldName]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ACA-[FieldName]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;.....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;etc&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks and regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Bilal Alam&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2020 09:19:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/make-unique-alphanumeric-value/m-p/151622#M11699</guid>
      <dc:creator>Bmohammad</dc:creator>
      <dc:date>2020-10-07T09:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: Make Unique Alphanumeric value</title>
      <link>https://community.esri.com/t5/python-questions/make-unique-alphanumeric-value/m-p/151623#M11700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you want the prefix to follow a pattern?&amp;nbsp; I can't see what the pattern would be from the examples (AAA-, AAB-, ACA-) you provide.&amp;nbsp; If you do want a pattern, is having the pattern applied based on ObjectID order sufficient or is there another order of the data you want the pattern applied to?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2020 12:32:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/make-unique-alphanumeric-value/m-p/151623#M11700</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-10-07T12:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: Make Unique Alphanumeric value</title>
      <link>https://community.esri.com/t5/python-questions/make-unique-alphanumeric-value/m-p/151624#M11701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually I don't want any pattern. Only first letter will be constant e.g A and other will be random like AA&amp;nbsp;or AB&amp;nbsp;or CA etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2020 12:37:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/make-unique-alphanumeric-value/m-p/151624#M11701</guid>
      <dc:creator>Bmohammad</dc:creator>
      <dc:date>2020-10-07T12:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: Make Unique Alphanumeric value</title>
      <link>https://community.esri.com/t5/python-questions/make-unique-alphanumeric-value/m-p/151625#M11702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You want unique values, but the first value will be A, which leaves only the 2nd and 3rd spots to change.&amp;nbsp; Assuming your values are case insensitive, e.g., AAb is the same as AAB, you will run out of unique values after 676 records.&amp;nbsp; Do you have less than 676 records?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2020 13:03:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/make-unique-alphanumeric-value/m-p/151625#M11702</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-10-07T13:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: Make Unique Alphanumeric value</title>
      <link>https://community.esri.com/t5/python-questions/make-unique-alphanumeric-value/m-p/151626#M11703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bilal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully below code could provide help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;abc = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'&lt;/P&gt;&lt;P&gt;for i in range(0,26):&lt;BR /&gt;&amp;nbsp; &amp;nbsp; for j in range(0,26):&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; print ('A{0}{1}-[FieldName]'.format(abc&lt;I&gt;,abc&lt;J&gt;))&lt;/J&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2020 23:36:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/make-unique-alphanumeric-value/m-p/151626#M11703</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-10-07T23:36:00Z</dc:date>
    </item>
    <item>
      <title>Re: Make Unique Alphanumeric value</title>
      <link>https://community.esri.com/t5/python-questions/make-unique-alphanumeric-value/m-p/151627#M11704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes I have less then 676 records&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2020 05:11:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/make-unique-alphanumeric-value/m-p/151627#M11704</guid>
      <dc:creator>Bmohammad</dc:creator>
      <dc:date>2020-10-08T05:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: Make Unique Alphanumeric value</title>
      <link>https://community.esri.com/t5/python-questions/make-unique-alphanumeric-value/m-p/151628#M11705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK.&amp;nbsp; Let us know if you need any more than what Bing Zheng provided.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2020 16:10:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/make-unique-alphanumeric-value/m-p/151628#M11705</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-10-08T16:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: Make Unique Alphanumeric value</title>
      <link>https://community.esri.com/t5/python-questions/make-unique-alphanumeric-value/m-p/151629#M11706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Bing&lt;/P&gt;&lt;P&gt;Thanks for your help this work well when I run simply but I need to use this in &lt;SPAN style="color: #4c4c4c; background-color: #ffffff; font-weight: 300;"&gt;arcpy.&lt;/SPAN&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/arcpy/functions/updatecursor.htm" style="color: #0074b8; background-color: #ffffff; font-weight: 300; text-decoration: none;"&gt;UpdateCursor&lt;/A&gt;&amp;nbsp;and in place of [FieldName]. I want to use the values from one of the field already available in data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bilal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2020 08:34:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/make-unique-alphanumeric-value/m-p/151629#M11706</guid>
      <dc:creator>Bmohammad</dc:creator>
      <dc:date>2020-10-13T08:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: Make Unique Alphanumeric value</title>
      <link>https://community.esri.com/t5/python-questions/make-unique-alphanumeric-value/m-p/151630#M11707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bilal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually, if you want to use this list during the update process, I would like to suggest to put it in the dictionary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;abc = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;ind1 = 0&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;ind2 = 0&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;preStr= {}&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;for i in range(0,26):&lt;BR /&gt;&amp;nbsp; &amp;nbsp; for j in range(0,26):&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;preStr[ind] =&amp;nbsp;&lt;SPAN&gt;'A{0}{1}'.format(&lt;SPAN style="background-color: #ffffff;"&gt;abc&lt;I&gt;,abc&lt;J&gt;&lt;/J&gt;&lt;/I&gt;&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; ind1 = ind1 + 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;fc = &lt;/SPAN&gt;&lt;SPAN class="" style="color: #c41a16;"&gt;"c:/data/base.gdb/roads"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt; field1 = &lt;/SPAN&gt;&lt;SPAN class="" style="color: #c41a16;"&gt;"field1"&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;field2 = &lt;/SPAN&gt;&lt;SPAN class="" style="color: #c41a16;"&gt;"field2"&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #c41a16;"&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;cursor = arcpy.UpdateCursor(fc) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #aa0d91;"&gt;for&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt; row &lt;/SPAN&gt;&lt;SPAN class="" style="color: #aa0d91;"&gt;in&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt; cursor: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;&amp;nbsp; &amp;nbsp; row.setValue(field2, preStr[ind2] + row.getValue(field1) * &lt;/SPAN&gt;&lt;SPAN class="" style="color: #1c00cf;"&gt;3.0&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; ind2 = ind2 + 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; cursor.updateRow(row)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;cursor.updateRow(row)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully, it works for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2020 11:01:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/make-unique-alphanumeric-value/m-p/151630#M11707</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-10-13T11:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: Make Unique Alphanumeric value</title>
      <link>https://community.esri.com/t5/python-questions/make-unique-alphanumeric-value/m-p/151631#M11708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you elaborate on&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;I want to use the values from one of the field already available in data.&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Do you have an existing field that is partially populated already?&amp;nbsp; If so, do you want to use those values if they already exist but add new ones if they are missing?&amp;nbsp; And, do you want to make sure any new values are not the same as existing values?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2020 14:56:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/make-unique-alphanumeric-value/m-p/151631#M11708</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-10-13T14:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: Make Unique Alphanumeric value</title>
      <link>https://community.esri.com/t5/python-questions/make-unique-alphanumeric-value/m-p/151632#M11709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Joshua and Bing,&lt;/P&gt;&lt;P&gt;Thanks for your kind help&lt;/P&gt;&lt;P&gt;I attach one picture which make you easy to understand.&lt;/P&gt;&lt;P&gt;In this picture fIeld _1 have value which have duplicate and I want to make unique code e.g AAC-4091&lt;IMG __jive_id="510918" alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/510918_TTTT.JPG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2020 10:21:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/make-unique-alphanumeric-value/m-p/151632#M11709</guid>
      <dc:creator>Bmohammad</dc:creator>
      <dc:date>2020-10-14T10:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: Make Unique Alphanumeric value</title>
      <link>https://community.esri.com/t5/python-questions/make-unique-alphanumeric-value/m-p/151633#M11710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Dear Joshua and Bing,&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Thanks for your kind help&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;I attach one picture which make you easy to understand.&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;In this picture fIeld _1 have value which have duplicate and I want to make unique code e.g AAC-4091&lt;IMG alt="" class="image-1 jive-image j-img-original" height="80" src="https://community.esri.com/legacyfs/online/510919_TTTT.JPG" style="border: 0px; font-weight: inherit; margin: 2px 0px 0px;" width="149" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2020 11:14:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/make-unique-alphanumeric-value/m-p/151633#M11710</guid>
      <dc:creator>Bmohammad</dc:creator>
      <dc:date>2020-10-14T11:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: Make Unique Alphanumeric value</title>
      <link>https://community.esri.com/t5/python-questions/make-unique-alphanumeric-value/m-p/151634#M11711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this in interactive Python Window, just update the value for lyr.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy
&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; itertools &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; product
&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; string &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; ascii_uppercase

lyr &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;# layer name or path to feature class&lt;/SPAN&gt;
flds &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Field_1"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Unique"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;

incr &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &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;i&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; i &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; product&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;ascii_uppercase&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; ascii_uppercase&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;lyr&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; flds&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;as&lt;/SPAN&gt; cur&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; fld1&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; uniq &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; cur&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
        cur&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;updateRow&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;fld1&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"A{}-{}"&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;incr&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; fld1&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;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 08:08:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/make-unique-alphanumeric-value/m-p/151634#M11711</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2021-12-11T08:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: Make Unique Alphanumeric value</title>
      <link>https://community.esri.com/t5/python-questions/make-unique-alphanumeric-value/m-p/151635#M11712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Joshua it works thanks for your kind help&lt;/P&gt;&lt;P&gt;It stops when it works up to AZZ-222 if we need more then we have to change&amp;nbsp;&lt;/P&gt;&lt;PRE class="" style="color: #000000; background: #f5f2f0; border: 0px; font-size: 14px; margin: 0.5em 0px; padding: 1em 1em 1em 3.8em;"&gt;&lt;CODE style="border: 0px; font-weight: inherit; font-size: 14px;"&gt; cur&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;.&lt;/SPAN&gt;updateRow&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;[&lt;/SPAN&gt;fld1&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;,&lt;/SPAN&gt; &lt;SPAN class="" style="color: #669900; border: 0px; font-weight: inherit; font-size: 14px;"&gt;"&lt;STRONG&gt;B&lt;/STRONG&gt;{}-{}"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;.&lt;/SPAN&gt;format&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;(&lt;/SPAN&gt;next&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;(&lt;/SPAN&gt;incr&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;,&lt;/SPAN&gt; fld1&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;]&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;)&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;first letter to B&lt;/P&gt;&lt;P&gt;Is there any method that when A finished it automatically change A to B and so on&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Joshua&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Oct 2020 07:33:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/make-unique-alphanumeric-value/m-p/151635#M11712</guid>
      <dc:creator>Bmohammad</dc:creator>
      <dc:date>2020-10-22T07:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: Make Unique Alphanumeric value</title>
      <link>https://community.esri.com/t5/python-questions/make-unique-alphanumeric-value/m-p/151636#M11713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The following code increments the first letter as well:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy
&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; itertools &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; product
&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; string &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; ascii_uppercase

lyr &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;# layer name or path to feature class&lt;/SPAN&gt;
flds &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Field_1"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Unique"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;

incr &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &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;i&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; i &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; product&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;ascii_uppercase&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; ascii_uppercase&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; ascii_uppercase&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;lyr&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; flds&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;as&lt;/SPAN&gt; cur&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; fld1&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; uniq &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; cur&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
        cur&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;updateRow&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;fld1&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;format&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;next&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;incr&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; fld1&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;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 08:08:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/make-unique-alphanumeric-value/m-p/151636#M11713</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2021-12-11T08:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: Make Unique Alphanumeric value</title>
      <link>https://community.esri.com/t5/python-questions/make-unique-alphanumeric-value/m-p/151637#M11714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Brother it works. I sincerely appreciate your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2020 05:40:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/make-unique-alphanumeric-value/m-p/151637#M11714</guid>
      <dc:creator>Bmohammad</dc:creator>
      <dc:date>2020-10-26T05:40:13Z</dc:date>
    </item>
  </channel>
</rss>

