<?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: How to create unique id with batch wise in ArcGIS 10.4.1 in ArcMap Questions</title>
    <link>https://community.esri.com/t5/arcmap-questions/how-to-create-unique-id-with-batch-wise-in-arcgis/m-p/1148970#M3505</link>
    <description>&lt;P&gt;Hi KimGarbade,&lt;/P&gt;&lt;P&gt;Finally, I got the Result of my data Thank you so much for your help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Santhosh&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Result in my data below&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Finally results.JPG" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/35218iF59CF487011781A1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Finally results.JPG" alt="Finally results.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 01 Mar 2022 06:05:39 GMT</pubDate>
    <dc:creator>santhoshp</dc:creator>
    <dc:date>2022-03-01T06:05:39Z</dc:date>
    <item>
      <title>How to create unique id with batch wise in ArcGIS 10.4.1</title>
      <link>https://community.esri.com/t5/arcmap-questions/how-to-create-unique-id-with-batch-wise-in-arcgis/m-p/1148265#M3497</link>
      <description>&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;kindly attached .gdb, example excel sheet, and image for your reference. I want to create a unique id 001 for each batch have 30 point feature, next 30 point feature I want to create 002....etc like that&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to create at a time any arcpy code available please help me.&lt;/P&gt;&lt;P&gt;I want to create a unique at a time like 001,002,003....etc each batch has 30 point features see the example below.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Santhosh&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="work_unit_no.JPG" style="width: 982px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/35050iC30FC5C395C4D106/image-size/large?v=v2&amp;amp;px=999" role="button" title="work_unit_no.JPG" alt="work_unit_no.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 26 Feb 2022 09:18:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/how-to-create-unique-id-with-batch-wise-in-arcgis/m-p/1148265#M3497</guid>
      <dc:creator>santhoshp</dc:creator>
      <dc:date>2022-02-26T09:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to create unique id with batch wise in ArcGIS 10.4.1</title>
      <link>https://community.esri.com/t5/arcmap-questions/how-to-create-unique-id-with-batch-wise-in-arcgis/m-p/1148273#M3498</link>
      <description>&lt;P&gt;There might be more elegant ways of doing it but this worked for me.&amp;nbsp; I wrote this in Spyder:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KimGarbade_0-1645881316379.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/35051i406505A3573385FF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KimGarbade_0-1645881316379.png" alt="KimGarbade_0-1645881316379.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;result in my test data:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KimGarbade_1-1645881341972.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/35052i464B8AA72F133622/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KimGarbade_1-1645881341972.png" alt="KimGarbade_1-1645881341972.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 26 Feb 2022 13:17:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/how-to-create-unique-id-with-batch-wise-in-arcgis/m-p/1148273#M3498</guid>
      <dc:creator>KimberlyGarbade</dc:creator>
      <dc:date>2022-02-26T13:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to create unique id with batch wise in ArcGIS 10.4.1</title>
      <link>https://community.esri.com/t5/arcmap-questions/how-to-create-unique-id-with-batch-wise-in-arcgis/m-p/1148627#M3501</link>
      <description>&lt;P&gt;Hi KimGarbade,&lt;/P&gt;&lt;P&gt;Can you share with me the above code?&amp;nbsp;Exactly I am looking at the above result.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Santhosh&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 16:17:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/how-to-create-unique-id-with-batch-wise-in-arcgis/m-p/1148627#M3501</guid>
      <dc:creator>santhoshp</dc:creator>
      <dc:date>2022-02-28T16:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to create unique id with batch wise in ArcGIS 10.4.1</title>
      <link>https://community.esri.com/t5/arcmap-questions/how-to-create-unique-id-with-batch-wise-in-arcgis/m-p/1148631#M3502</link>
      <description>&lt;P&gt;Sorry, I'm not at the computer I wrote that code on (that was my home PC).&amp;nbsp; So I don't have a text version of the code here (at work), but the code I used was in the first image above.&amp;nbsp; There are no lines of code either above or below the lines shown (no lines below line 27).&lt;/P&gt;&lt;P&gt;I wrote the code in Spyder, which is a third party Python editor, but it should work in any python environment that supports arcpy.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 16:31:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/how-to-create-unique-id-with-batch-wise-in-arcgis/m-p/1148631#M3502</guid>
      <dc:creator>KimberlyGarbade</dc:creator>
      <dc:date>2022-02-28T16:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to create unique id with batch wise in ArcGIS 10.4.1</title>
      <link>https://community.esri.com/t5/arcmap-questions/how-to-create-unique-id-with-batch-wise-in-arcgis/m-p/1148645#M3503</link>
      <description>&lt;P&gt;Hi KimGarbade,&lt;/P&gt;&lt;P&gt;when I was using the above code it's showing the error message. can you see the below image for your reference&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Santhosh&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="error.JPG" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/35145i7E1FEA987C59F6EC/image-size/large?v=v2&amp;amp;px=999" role="button" title="error.JPG" alt="error.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 16:59:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/how-to-create-unique-id-with-batch-wise-in-arcgis/m-p/1148645#M3503</guid>
      <dc:creator>santhoshp</dc:creator>
      <dc:date>2022-02-28T16:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to create unique id with batch wise in ArcGIS 10.4.1</title>
      <link>https://community.esri.com/t5/arcmap-questions/how-to-create-unique-id-with-batch-wise-in-arcgis/m-p/1148692#M3504</link>
      <description>&lt;P&gt;I just used a Notebook and tried this code and it worked.&amp;nbsp; A little different from the original code that runs in Spyder:&lt;/P&gt;&lt;P&gt;intCurrentBatch = 1&lt;BR /&gt;intStartNumber = 1&lt;BR /&gt;intBatchSize = 10&lt;BR /&gt;intBSAfterFirstTimeThrough = intBatchSize - 1&lt;BR /&gt;with arcpy.da.UpdateCursor(fc, fields) as cursor:&lt;BR /&gt;for row in cursor:&lt;BR /&gt;if intStartNumber &amp;lt;= intBatchSize:&lt;BR /&gt;row[0] = str(intCurrentBatch).zfill(4)&lt;BR /&gt;cursor.updateRow(row)&lt;BR /&gt;intStartNumber = intStartNumber + 1&lt;BR /&gt;else:&lt;BR /&gt;intStartNumber = 1&lt;BR /&gt;intCurrentBatch = intCurrentBatch + 1&lt;BR /&gt;row[0] = str(intCurrentBatch).zfill(4)&lt;BR /&gt;cursor.updateRow(row)&lt;BR /&gt;intBatchSize = intBSAfterFirstTimeThrough&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Image of Notebook.&amp;nbsp; Keep in mind that indentation level is important.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KimGarbade_0-1646070660355.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/35159iA466C61F441C200A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KimGarbade_0-1646070660355.png" alt="KimGarbade_0-1646070660355.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Results&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KimGarbade_1-1646070715678.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/35160iEB22FD3605E99864/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KimGarbade_1-1646070715678.png" alt="KimGarbade_1-1646070715678.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 17:53:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/how-to-create-unique-id-with-batch-wise-in-arcgis/m-p/1148692#M3504</guid>
      <dc:creator>KimberlyGarbade</dc:creator>
      <dc:date>2022-02-28T17:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to create unique id with batch wise in ArcGIS 10.4.1</title>
      <link>https://community.esri.com/t5/arcmap-questions/how-to-create-unique-id-with-batch-wise-in-arcgis/m-p/1148970#M3505</link>
      <description>&lt;P&gt;Hi KimGarbade,&lt;/P&gt;&lt;P&gt;Finally, I got the Result of my data Thank you so much for your help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Santhosh&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Result in my data below&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Finally results.JPG" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/35218iF59CF487011781A1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Finally results.JPG" alt="Finally results.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 01 Mar 2022 06:05:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/how-to-create-unique-id-with-batch-wise-in-arcgis/m-p/1148970#M3505</guid>
      <dc:creator>santhoshp</dc:creator>
      <dc:date>2022-03-01T06:05:39Z</dc:date>
    </item>
  </channel>
</rss>

