<?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 Maintain count variable between scheduled notebook tasks? in ArcGIS Notebooks Questions</title>
    <link>https://community.esri.com/t5/arcgis-notebooks-questions/maintain-count-variable-between-scheduled-notebook/m-p/1358371#M707</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Have an ID field with a mix of string and integer values.&lt;/P&gt;&lt;P&gt;I'd like to run a scheduled notebook to update the ID field with the next highest available&amp;nbsp;&lt;EM&gt;integer&lt;/EM&gt; id.&lt;/P&gt;&lt;P&gt;There's some obvious issues doing this with a string field containing string values. I'd like to avoid processing the field to identify the current highest ID each scheduled run.&lt;/P&gt;&lt;P&gt;Is it possible to set a count value, increment it for new features, and then have the current highest value persist between each scheduled notebook task?&lt;/P&gt;&lt;P&gt;i.e. count = get highest integer value in field (&lt;EM&gt;once&lt;/EM&gt;)&lt;/P&gt;&lt;P&gt;count = 1000&lt;BR /&gt;scheduled task runs over a few features, count = 1003&lt;BR /&gt;next time the scheduled task runs, count = 1004&lt;/P&gt;</description>
    <pubDate>Thu, 07 Dec 2023 23:38:52 GMT</pubDate>
    <dc:creator>ChristopherCounsell</dc:creator>
    <dc:date>2023-12-07T23:38:52Z</dc:date>
    <item>
      <title>Maintain count variable between scheduled notebook tasks?</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-questions/maintain-count-variable-between-scheduled-notebook/m-p/1358371#M707</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Have an ID field with a mix of string and integer values.&lt;/P&gt;&lt;P&gt;I'd like to run a scheduled notebook to update the ID field with the next highest available&amp;nbsp;&lt;EM&gt;integer&lt;/EM&gt; id.&lt;/P&gt;&lt;P&gt;There's some obvious issues doing this with a string field containing string values. I'd like to avoid processing the field to identify the current highest ID each scheduled run.&lt;/P&gt;&lt;P&gt;Is it possible to set a count value, increment it for new features, and then have the current highest value persist between each scheduled notebook task?&lt;/P&gt;&lt;P&gt;i.e. count = get highest integer value in field (&lt;EM&gt;once&lt;/EM&gt;)&lt;/P&gt;&lt;P&gt;count = 1000&lt;BR /&gt;scheduled task runs over a few features, count = 1003&lt;BR /&gt;next time the scheduled task runs, count = 1004&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2023 23:38:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-questions/maintain-count-variable-between-scheduled-notebook/m-p/1358371#M707</guid>
      <dc:creator>ChristopherCounsell</dc:creator>
      <dc:date>2023-12-07T23:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: Maintain count variable between scheduled notebook tasks?</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-questions/maintain-count-variable-between-scheduled-notebook/m-p/1358678#M709</link>
      <description>&lt;P&gt;You could save the current value in a text file in the notebooks files\home folder at the end of each run, and read it at the beginning of the next one.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2023 18:16:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-questions/maintain-count-variable-between-scheduled-notebook/m-p/1358678#M709</guid>
      <dc:creator>BobBooth1</dc:creator>
      <dc:date>2023-12-08T18:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: Maintain count variable between scheduled notebook tasks?</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-questions/maintain-count-variable-between-scheduled-notebook/m-p/1363430#M714</link>
      <description>&lt;P&gt;Thanks, worked a treat&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2023 05:44:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-questions/maintain-count-variable-between-scheduled-notebook/m-p/1363430#M714</guid>
      <dc:creator>ChristopherCounsell</dc:creator>
      <dc:date>2023-12-21T05:44:05Z</dc:date>
    </item>
  </channel>
</rss>

