<?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 Invalid field in model, but works outside of modelbuilder in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/invalid-field-in-model-but-works-outside-of/m-p/1133713#M50005</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a model I've built that takes a polygon feature class converts it to points and the reverse geocodes to get a postal address. The issue is that the Reverse Geocode produces fields that act oddly with modelbuilder; I wanted to concatenate several fields to produce a single string address with all data. When I run the expression:&lt;/P&gt;&lt;PRE&gt;" ".join([!REV_Street!, !REV_City!, !REV_Region!, !REV_Postal!])&lt;/PRE&gt;&lt;P&gt;It says that the field is invalid, but when run outside of modelbuilder as a single&amp;nbsp; Calculate Field geoprocess it works. How can I get the model to function?&lt;/P&gt;</description>
    <pubDate>Fri, 14 Jan 2022 00:59:03 GMT</pubDate>
    <dc:creator>ChrisCowin</dc:creator>
    <dc:date>2022-01-14T00:59:03Z</dc:date>
    <item>
      <title>Invalid field in model, but works outside of modelbuilder</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/invalid-field-in-model-but-works-outside-of/m-p/1133713#M50005</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a model I've built that takes a polygon feature class converts it to points and the reverse geocodes to get a postal address. The issue is that the Reverse Geocode produces fields that act oddly with modelbuilder; I wanted to concatenate several fields to produce a single string address with all data. When I run the expression:&lt;/P&gt;&lt;PRE&gt;" ".join([!REV_Street!, !REV_City!, !REV_Region!, !REV_Postal!])&lt;/PRE&gt;&lt;P&gt;It says that the field is invalid, but when run outside of modelbuilder as a single&amp;nbsp; Calculate Field geoprocess it works. How can I get the model to function?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jan 2022 00:59:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/invalid-field-in-model-but-works-outside-of/m-p/1133713#M50005</guid>
      <dc:creator>ChrisCowin</dc:creator>
      <dc:date>2022-01-14T00:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid field in model, but works outside of modelbuilder</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/invalid-field-in-model-but-works-outside-of/m-p/1133745#M50009</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have tried in the model builder on my end (ArcGIS Pro 10.9.1), and it runs all good. Things I may have done a bit different from you if you did not mention or forgot to consider are:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I added "Calculate Field" into my model builder as the last processing step. For the configuration, I used "Python 3" as the Expression Type&lt;/LI&gt;&lt;LI&gt;If you also used "Python 3", then I think you need to have your expression as below (using bracket to format it as a "tuple" for Python 3 to join the fields, but not a "list". It may also help to click the fields from the list instead of typing them manually):&lt;/LI&gt;&lt;/UL&gt;&lt;LI-CODE lang="c"&gt;" ".join((!REV_Street!, !REV_City!, !REV_Region!, !REV_Postal!))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It did not have any issue with me, so hope it also works for you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jan 2022 05:05:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/invalid-field-in-model-but-works-outside-of/m-p/1133745#M50009</guid>
      <dc:creator>anbinh</dc:creator>
      <dc:date>2022-01-14T05:05:44Z</dc:date>
    </item>
  </channel>
</rss>

