<?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: autoIncrement not working in ArcGIS Pro field calculate in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/autoincrement-not-working-in-arcgis-pro-field/m-p/1524103#M87179</link>
    <description>&lt;P&gt;I believe it is trying to run a function named &lt;STRONG&gt;"WF-"=.&lt;/STRONG&gt; which isn't defined and should be calling the autoIncrement function.&lt;/P&gt;&lt;P&gt;I think the FACILITYID = line should be autoIncrement() and the concatenation and zfill should be handled in the function/returns.&lt;/P&gt;&lt;P&gt;Not sure what version of Pro this is from, but in 3.1.3 it is SequentialNumber helper and the top line tells it what function to execute:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RhettZufelt_0-1724106267421.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/112837i42B476FF760C8BB6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RhettZufelt_0-1724106267421.png" alt="RhettZufelt_0-1724106267421.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;R_&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 19 Aug 2024 22:26:35 GMT</pubDate>
    <dc:creator>RhettZufelt</dc:creator>
    <dc:date>2024-08-19T22:26:35Z</dc:date>
    <item>
      <title>autoIncrement not working in ArcGIS Pro field calculate</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/autoincrement-not-working-in-arcgis-pro-field/m-p/1521541#M86970</link>
      <description>&lt;P&gt;After we upgraded to ArcGIS Pro version 3.3.1 we are no longer able to run the autoIncrement script to populate values in a field calculate. Attached is the error we're seeing where it is referencing a function was not found. Has anyone come across this issue?&lt;/P&gt;&lt;LI-CODE lang="python"&gt;rec=0 
def autoIncrement(): 
 global rec 
 pStart = 1  
 pInterval = 1 
 if (rec == 0):  
  rec = pStart  
 else:  
  rec += pInterval  
 return rec&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tbearb_0-1723644912235.png" style="width: 266px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/112330iF502AADE03FAA006/image-dimensions/266x433?v=v2" width="266" height="433" role="button" title="tbearb_0-1723644912235.png" alt="tbearb_0-1723644912235.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2024 14:17:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/autoincrement-not-working-in-arcgis-pro-field/m-p/1521541#M86970</guid>
      <dc:creator>Terry_Bearb</dc:creator>
      <dc:date>2024-08-14T14:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: autoIncrement not working in ArcGIS Pro field calculate</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/autoincrement-not-working-in-arcgis-pro-field/m-p/1521594#M86983</link>
      <description>&lt;P&gt;If you ignore the error and hit Apply/OK, does it work correctly?&amp;nbsp; It might be a validation defect for the expression rather than an actual error in the expression.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2024 16:04:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/autoincrement-not-working-in-arcgis-pro-field/m-p/1521594#M86983</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2024-08-14T16:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: autoIncrement not working in ArcGIS Pro field calculate</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/autoincrement-not-working-in-arcgis-pro-field/m-p/1521599#M86984</link>
      <description>&lt;P&gt;So the odd thing is I hit Apply/OK and it would give an error saying I need to correct whatever is wrong before the calc can take place (that part seemed to be new in 3.3.1 - I want to say in the past versions it would let you click Apply/OK). After a few times of doing that, I tried again and I was able to see it go through.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2024 16:14:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/autoincrement-not-working-in-arcgis-pro-field/m-p/1521599#M86984</guid>
      <dc:creator>Terry_Bearb</dc:creator>
      <dc:date>2024-08-14T16:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: autoIncrement not working in ArcGIS Pro field calculate</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/autoincrement-not-working-in-arcgis-pro-field/m-p/1524103#M87179</link>
      <description>&lt;P&gt;I believe it is trying to run a function named &lt;STRONG&gt;"WF-"=.&lt;/STRONG&gt; which isn't defined and should be calling the autoIncrement function.&lt;/P&gt;&lt;P&gt;I think the FACILITYID = line should be autoIncrement() and the concatenation and zfill should be handled in the function/returns.&lt;/P&gt;&lt;P&gt;Not sure what version of Pro this is from, but in 3.1.3 it is SequentialNumber helper and the top line tells it what function to execute:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RhettZufelt_0-1724106267421.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/112837i42B476FF760C8BB6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RhettZufelt_0-1724106267421.png" alt="RhettZufelt_0-1724106267421.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;R_&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2024 22:26:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/autoincrement-not-working-in-arcgis-pro-field/m-p/1524103#M87179</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2024-08-19T22:26:35Z</dc:date>
    </item>
  </channel>
</rss>

