<?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 Err 539 - 'Invalid Token' on Model in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/err-539-invalid-token-on-model/m-p/1287289#M68962</link>
    <description>&lt;P&gt;I'm trying to build a model that generates unique ID's for each feature within a given section of a grid. I'm using the attached Python expression in the Calculate Value tool to generate the ID's within the model and then use Calculate Field to carry them over to the attribute table (new text field). %Grid_Value% is an output from Iterate Feature Selection and it ranges from 001 - 132 (text w/ leading zeros).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The model appears to run properly for Grid_Values 001 - 012, but at 013, it errors out on 'Invalid token'. I've tried a couple different methods to verify that everything is outputting as a string, but I'm at a loss as to why '013' is breaking it.&lt;/P&gt;&lt;P&gt;I'm on Pro 2.9.5&lt;/P&gt;&lt;P&gt;What can I do to fix it so that it outputs correctly?&lt;/P&gt;</description>
    <pubDate>Tue, 09 May 2023 15:27:23 GMT</pubDate>
    <dc:creator>Wallace</dc:creator>
    <dc:date>2023-05-09T15:27:23Z</dc:date>
    <item>
      <title>Err 539 - 'Invalid Token' on Model</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/err-539-invalid-token-on-model/m-p/1287289#M68962</link>
      <description>&lt;P&gt;I'm trying to build a model that generates unique ID's for each feature within a given section of a grid. I'm using the attached Python expression in the Calculate Value tool to generate the ID's within the model and then use Calculate Field to carry them over to the attribute table (new text field). %Grid_Value% is an output from Iterate Feature Selection and it ranges from 001 - 132 (text w/ leading zeros).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The model appears to run properly for Grid_Values 001 - 012, but at 013, it errors out on 'Invalid token'. I've tried a couple different methods to verify that everything is outputting as a string, but I'm at a loss as to why '013' is breaking it.&lt;/P&gt;&lt;P&gt;I'm on Pro 2.9.5&lt;/P&gt;&lt;P&gt;What can I do to fix it so that it outputs correctly?&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2023 15:27:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/err-539-invalid-token-on-model/m-p/1287289#M68962</guid>
      <dc:creator>Wallace</dc:creator>
      <dc:date>2023-05-09T15:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: Err 539 - 'Invalid Token' on Model</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/err-539-invalid-token-on-model/m-p/1287757#M69016</link>
      <description>&lt;P&gt;SOLVED: The Calculate Value tool was correctly outputting a string to Calculate Field, but Calculate Field was not recognizing it as a string. Adding quotation marks fixed that problem so that Calc. Value's Expression == "FunctionName()"&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2023 15:31:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/err-539-invalid-token-on-model/m-p/1287757#M69016</guid>
      <dc:creator>Wallace</dc:creator>
      <dc:date>2023-05-10T15:31:08Z</dc:date>
    </item>
  </channel>
</rss>

