<?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 Field Calculator String Issue in Spatial Data Science Questions</title>
    <link>https://community.esri.com/t5/spatial-data-science-questions/field-calculator-string-issue/m-p/52973#M96</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Very new to ArcPro and have hit a wall. I can't seem to find a solution anywhere so here goes...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using Field Calculator to populate a new Text (50) field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In ArcMap I would have entered [Field1] &amp;amp; "-" &amp;amp; [Field2].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In ArcPro I've entered !Field1! + '-' + !Field2!.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The '-' turns red and the process fails. I've also tried "-".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression type set to Python3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Advice on this seemingly simple task?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 May 2019 17:30:44 GMT</pubDate>
    <dc:creator>AndrewRiggs1</dc:creator>
    <dc:date>2019-05-17T17:30:44Z</dc:date>
    <item>
      <title>Field Calculator String Issue</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/field-calculator-string-issue/m-p/52973#M96</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Very new to ArcPro and have hit a wall. I can't seem to find a solution anywhere so here goes...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using Field Calculator to populate a new Text (50) field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In ArcMap I would have entered [Field1] &amp;amp; "-" &amp;amp; [Field2].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In ArcPro I've entered !Field1! + '-' + !Field2!.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The '-' turns red and the process fails. I've also tried "-".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression type set to Python3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Advice on this seemingly simple task?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2019 17:30:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/field-calculator-string-issue/m-p/52973#M96</guid>
      <dc:creator>AndrewRiggs1</dc:creator>
      <dc:date>2019-05-17T17:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: Field Calculator String Issue</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/field-calculator-string-issue/m-p/52974#M97</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you click on "View details" to get more information on the error? (You can get to the tool's results, including any error messages, either by clicking on "View details" in the error window that pops up, or by going to the Catalog tab, clicking on "History", and mousing-over the tool name in the list.) It could be that the new field isn't wide enough to hold the concatenated values.&amp;nbsp; I think a quoted string will always turn red in the field calculator.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2019 20:01:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/field-calculator-string-issue/m-p/52974#M97</guid>
      <dc:creator>ChrisRingo</dc:creator>
      <dc:date>2019-05-17T20:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: Field Calculator String Issue</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/field-calculator-string-issue/m-p/52975#M98</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Chris,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response. It wasn't giving me much detail. I actually just figured out what the issue was a few minutes ago.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was entering it as follows:&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;[Field1] &amp;amp; "-" &amp;amp; [Field2]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I entered it as:&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;[Field1]&amp;amp;"-"&amp;amp;[Field2]&amp;nbsp; &amp;nbsp; &amp;lt;Removing the spaces resolved the issue.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2019 20:09:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/field-calculator-string-issue/m-p/52975#M98</guid>
      <dc:creator>AndrewRiggs1</dc:creator>
      <dc:date>2019-05-17T20:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: Field Calculator String Issue</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/field-calculator-string-issue/m-p/52976#M99</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE class="language-python line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="string token"&gt;'{}-{}'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;!Field1!&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; !Field2!&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;the format approach in python handles type conversion automatically to string/text regardless of the input&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2019 23:53:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/field-calculator-string-issue/m-p/52976#M99</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2019-05-17T23:53:55Z</dc:date>
    </item>
  </channel>
</rss>

