<?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 Issues with Calculate Field tool in ModelBuilder in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/issues-with-calculate-field-tool-in-modelbuilder/m-p/1046411#M39646</link>
    <description>&lt;P&gt;I'm working with ModelBuilder within ArcGIS Pro 2.7.2. The model I'm creating shouldn't be too complicated, but I seem to be having issues...&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I start by joining two tables of interest, in this case, Species Range Data with Land Cover for two different time periods. Then, I am using the Calculate Field tool to A) Add a field, for example "PctCHNG_Sttl" which doesn't currently exist in the table, and B) Calculate that new field by subtracting Sttl_Time2-Sttl_Time1. However, when I open my final output, it seems like these new fields are being added as type "TEXT" rather than "DOUBLE", even though they are calculating correctly... Am I missing something?&lt;BR /&gt;&lt;BR /&gt;Just for reference:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EmilyHale1_0-1618329416720.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/10701i7162683677E06A7A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="EmilyHale1_0-1618329416720.png" alt="EmilyHale1_0-1618329416720.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 13 Apr 2021 15:58:21 GMT</pubDate>
    <dc:creator>EmilyHale1</dc:creator>
    <dc:date>2021-04-13T15:58:21Z</dc:date>
    <item>
      <title>Issues with Calculate Field tool in ModelBuilder</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/issues-with-calculate-field-tool-in-modelbuilder/m-p/1046411#M39646</link>
      <description>&lt;P&gt;I'm working with ModelBuilder within ArcGIS Pro 2.7.2. The model I'm creating shouldn't be too complicated, but I seem to be having issues...&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I start by joining two tables of interest, in this case, Species Range Data with Land Cover for two different time periods. Then, I am using the Calculate Field tool to A) Add a field, for example "PctCHNG_Sttl" which doesn't currently exist in the table, and B) Calculate that new field by subtracting Sttl_Time2-Sttl_Time1. However, when I open my final output, it seems like these new fields are being added as type "TEXT" rather than "DOUBLE", even though they are calculating correctly... Am I missing something?&lt;BR /&gt;&lt;BR /&gt;Just for reference:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EmilyHale1_0-1618329416720.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/10701i7162683677E06A7A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="EmilyHale1_0-1618329416720.png" alt="EmilyHale1_0-1618329416720.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Apr 2021 15:58:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/issues-with-calculate-field-tool-in-modelbuilder/m-p/1046411#M39646</guid>
      <dc:creator>EmilyHale1</dc:creator>
      <dc:date>2021-04-13T15:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with Calculate Field tool in ModelBuilder</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/issues-with-calculate-field-tool-in-modelbuilder/m-p/1046436#M39652</link>
      <description>&lt;P&gt;In the Calculate Field GP tool in the model, when you add a new field in the GP tool parameter, you'll be prompted to select the FIELD TYPE.&amp;nbsp; Change the Field Type to DOUBLE.&amp;nbsp; It defaults to TEXT so this explains what you're seeing in the result.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Apr 2021 16:32:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/issues-with-calculate-field-tool-in-modelbuilder/m-p/1046436#M39652</guid>
      <dc:creator>Robert_LeClair</dc:creator>
      <dc:date>2021-04-13T16:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with Calculate Field tool in ModelBuilder</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/issues-with-calculate-field-tool-in-modelbuilder/m-p/1046480#M39659</link>
      <description>&lt;P&gt;Hey, thanks for the response. I see what you're saying. However, as you can see in the screencap I had attached, rather than using the Add Field tool (which would prompt me with FIELD TYPE) I was hoping to skip a step, use the Calculate Field tool, and for Field Name I would create a new field name and do the calc. However, when I choose to create a New Field Name, I don't seem to see an option to adjust field type... Does that make sense, or have I missed your point?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Apr 2021 17:35:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/issues-with-calculate-field-tool-in-modelbuilder/m-p/1046480#M39659</guid>
      <dc:creator>EmilyHale1</dc:creator>
      <dc:date>2021-04-13T17:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with Calculate Field tool in ModelBuilder</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/issues-with-calculate-field-tool-in-modelbuilder/m-p/1046485#M39660</link>
      <description>&lt;P&gt;You're welcome!&amp;nbsp; The Calculate Field GP tool will allow you to skip the "Add Field" GP tool step.&amp;nbsp; I wonder, because it's in a model, when you add the field name in the model, it "skips" the Field Type parameter and defaults to TEXT.&amp;nbsp; What you could do is make both the Field Name (New or Existing Field) and Field Type as model parameters - right click and select Model Parameter for each.&amp;nbsp; Then when you run the model, it prompts you for the FIELD NAME and FIELD TYPE.&amp;nbsp; Then you can click Run and it should populate correctly.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Apr 2021 17:42:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/issues-with-calculate-field-tool-in-modelbuilder/m-p/1046485#M39660</guid>
      <dc:creator>Robert_LeClair</dc:creator>
      <dc:date>2021-04-13T17:42:28Z</dc:date>
    </item>
  </channel>
</rss>

