<?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 Mapping with Create Composite Locator in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/field-mapping-with-create-composite-locator/m-p/1061020#M43341</link>
    <description>&lt;P&gt;ArcGIS Pro 2.7.2&lt;/P&gt;&lt;P&gt;Just started using the Create Composite Locator tool and now I am scripting it in python to automate the process.&amp;nbsp; My python works, but I don't understand the field mapping portion of the tool and subsequently what I am providing to my script.&lt;/P&gt;&lt;P&gt;Here is a snapshot of the tool and parameters:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JoeBorgione_0-1621872825756.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/14029i2C4AEAADF7EC65B7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JoeBorgione_0-1621872825756.png" alt="JoeBorgione_0-1621872825756.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I purposely whittled down all the various input fields that appear by default, since I don't understand what they provide the tool.&lt;/P&gt;&lt;P&gt;When creating python scripts for geocoding, I always use the tool history details as a means to provide me the parameters of a successful tool run:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JoeBorgione_1-1621873016626.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/14030iA15E326D295E7D49/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JoeBorgione_1-1621873016626.png" alt="JoeBorgione_1-1621873016626.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The resulting function in my script creates the composite locator just fine:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;def compositeLocator():
    addressLocators = r"N:\GIS\Geocoding\NewGeocoding\MsdMultiRoleLocator.loc MsdLocator;"\
                      r"N:\GIS\Geocoding\NewGeocoding\NonMSDMultiRoleLocator.loc NonMsdLocator"  
    fieldMap = r'Address "Address or Place" true true false 100 Text 0 0,First,#,N:\GIS\Geocoding\NewGeocoding\MsdMultiRoleLocator.loc,Address,0,0,N:\GIS\Geocoding\NewGeocoding\NonMSDMultiRoleLocator.loc,Address,0,0'
    selectionCriteria = "MsdLocator #;"\
                        "NonMsdLocator #"
    outLocator = r'N:\GIS\Geocoding\NewGeocoding\CityWorksLocator'
    
    arcpy.geocoding.CreateCompositeAddressLocator(addressLocators, fieldMap, selectionCriteria, outLocator)&lt;/LI-CODE&gt;&lt;P&gt;My question is this:&amp;nbsp; in the fieldMap variable what are the various arguments such as:&lt;/P&gt;&lt;P&gt;Address "Address or Place" true true false 100 Text 0 0,First,#,(etc,etc, etc..)&lt;/P&gt;&lt;P&gt;Is there any documentation on this?&amp;nbsp; I haven't stumbled upon any as of yet.&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1420"&gt;@BradNiemand&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1499"&gt;@ShanaBritt&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 24 May 2021 16:22:53 GMT</pubDate>
    <dc:creator>JoeBorgione</dc:creator>
    <dc:date>2021-05-24T16:22:53Z</dc:date>
    <item>
      <title>Field Mapping with Create Composite Locator</title>
      <link>https://community.esri.com/t5/data-management-questions/field-mapping-with-create-composite-locator/m-p/1061020#M43341</link>
      <description>&lt;P&gt;ArcGIS Pro 2.7.2&lt;/P&gt;&lt;P&gt;Just started using the Create Composite Locator tool and now I am scripting it in python to automate the process.&amp;nbsp; My python works, but I don't understand the field mapping portion of the tool and subsequently what I am providing to my script.&lt;/P&gt;&lt;P&gt;Here is a snapshot of the tool and parameters:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JoeBorgione_0-1621872825756.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/14029i2C4AEAADF7EC65B7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JoeBorgione_0-1621872825756.png" alt="JoeBorgione_0-1621872825756.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I purposely whittled down all the various input fields that appear by default, since I don't understand what they provide the tool.&lt;/P&gt;&lt;P&gt;When creating python scripts for geocoding, I always use the tool history details as a means to provide me the parameters of a successful tool run:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JoeBorgione_1-1621873016626.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/14030iA15E326D295E7D49/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JoeBorgione_1-1621873016626.png" alt="JoeBorgione_1-1621873016626.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The resulting function in my script creates the composite locator just fine:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;def compositeLocator():
    addressLocators = r"N:\GIS\Geocoding\NewGeocoding\MsdMultiRoleLocator.loc MsdLocator;"\
                      r"N:\GIS\Geocoding\NewGeocoding\NonMSDMultiRoleLocator.loc NonMsdLocator"  
    fieldMap = r'Address "Address or Place" true true false 100 Text 0 0,First,#,N:\GIS\Geocoding\NewGeocoding\MsdMultiRoleLocator.loc,Address,0,0,N:\GIS\Geocoding\NewGeocoding\NonMSDMultiRoleLocator.loc,Address,0,0'
    selectionCriteria = "MsdLocator #;"\
                        "NonMsdLocator #"
    outLocator = r'N:\GIS\Geocoding\NewGeocoding\CityWorksLocator'
    
    arcpy.geocoding.CreateCompositeAddressLocator(addressLocators, fieldMap, selectionCriteria, outLocator)&lt;/LI-CODE&gt;&lt;P&gt;My question is this:&amp;nbsp; in the fieldMap variable what are the various arguments such as:&lt;/P&gt;&lt;P&gt;Address "Address or Place" true true false 100 Text 0 0,First,#,(etc,etc, etc..)&lt;/P&gt;&lt;P&gt;Is there any documentation on this?&amp;nbsp; I haven't stumbled upon any as of yet.&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1420"&gt;@BradNiemand&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1499"&gt;@ShanaBritt&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 May 2021 16:22:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/field-mapping-with-create-composite-locator/m-p/1061020#M43341</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2021-05-24T16:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Field Mapping with Create Composite Locator</title>
      <link>https://community.esri.com/t5/data-management-questions/field-mapping-with-create-composite-locator/m-p/1061039#M43342</link>
      <description>&lt;P&gt;Joe:&lt;/P&gt;&lt;P&gt;The Field Mappings control is used in a few tools such as&amp;nbsp;Merge (Data Management) and Create Composite Address Locator (Geocoding) tools. Unfortunately, we do not have this info documented specifically for the Create Composite Address Locator tool, but it is something we can add to the documentation for a future release. Here is documentation about mapping fields in Python,&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/get-started/mapping-fields.htm" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/arcpy/get-started/mapping-fields.htm&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;The Python strings for Field Mappings are similar between these 2 tools.&lt;/P&gt;&lt;P&gt;For Create Composite Address Locator, here are the parameters, plus the example you provided:&lt;/P&gt;&lt;TABLE width="420px"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="204px"&gt;&lt;P&gt;Field1&lt;/P&gt;&lt;/TD&gt;&lt;TD width="137.6px"&gt;&lt;P&gt;New field name&lt;/P&gt;&lt;/TD&gt;&lt;TD width="77.6px"&gt;&lt;P&gt;Address&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="204px"&gt;&lt;P&gt;'Field1'&lt;/P&gt;&lt;/TD&gt;&lt;TD width="137.6px"&gt;&lt;P&gt;Alias of new field&lt;/P&gt;&lt;/TD&gt;&lt;TD width="77.6px"&gt;&lt;P&gt;"Address or Place"&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="204px"&gt;&lt;P&gt;true&lt;/P&gt;&lt;/TD&gt;&lt;TD width="137.6px"&gt;&lt;P&gt;IsEditable&lt;/P&gt;&lt;/TD&gt;&lt;TD width="77.6px"&gt;&lt;P&gt;true&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="204px"&gt;&lt;P&gt;true&lt;/P&gt;&lt;/TD&gt;&lt;TD width="137.6px"&gt;&lt;P&gt;&lt;STRONG&gt;Allow NULL values&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="77.6px"&gt;&lt;P&gt;&lt;STRONG&gt;true&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="204px"&gt;&lt;P&gt;false&lt;/P&gt;&lt;/TD&gt;&lt;TD width="137.6px"&gt;&lt;P&gt;&lt;STRONG&gt;Required&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="77.6px"&gt;&lt;P&gt;&lt;STRONG&gt;false&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="204px"&gt;&lt;P&gt;4&lt;/P&gt;&lt;/TD&gt;&lt;TD width="137.6px"&gt;&lt;P&gt;Length&lt;/P&gt;&lt;/TD&gt;&lt;TD width="77.6px"&gt;&lt;P&gt;100&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="204px"&gt;&lt;P&gt;Long&lt;/P&gt;&lt;/TD&gt;&lt;TD width="137.6px"&gt;&lt;P&gt;Type&lt;/P&gt;&lt;/TD&gt;&lt;TD width="77.6px"&gt;&lt;P&gt;Text&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="204px"&gt;&lt;P&gt;0&lt;/P&gt;&lt;/TD&gt;&lt;TD width="137.6px"&gt;&lt;P&gt;&lt;STRONG&gt;Scale&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="77.6px"&gt;&lt;P&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="204px"&gt;&lt;P&gt;0&lt;/P&gt;&lt;/TD&gt;&lt;TD width="137.6px"&gt;&lt;P&gt;&lt;STRONG&gt;Precision&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="77.6px"&gt;&lt;P&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="204px"&gt;&lt;P&gt;First&lt;/P&gt;&lt;/TD&gt;&lt;TD width="137.6px"&gt;&lt;P&gt;Merge Rule&lt;/P&gt;&lt;/TD&gt;&lt;TD width="77.6px"&gt;&lt;P&gt;First&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="204px"&gt;&lt;P&gt;#&lt;/P&gt;&lt;/TD&gt;&lt;TD width="137.6px"&gt;&lt;P&gt;&lt;STRONG&gt;Delimiter&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="77.6px"&gt;&lt;P&gt;&lt;STRONG&gt;#&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For Merge, here are the parameters:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="233"&gt;&lt;P&gt;ObjectID&lt;/P&gt;&lt;/TD&gt;&lt;TD width="129"&gt;&lt;P&gt;New field name&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="233"&gt;&lt;P&gt;'ObjectID'&lt;/P&gt;&lt;/TD&gt;&lt;TD width="129"&gt;&lt;P&gt;Alias of new field&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="233"&gt;&lt;P&gt;true&lt;/P&gt;&lt;/TD&gt;&lt;TD width="129"&gt;&lt;P&gt;IsEditable&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="233"&gt;&lt;P&gt;true&lt;/P&gt;&lt;/TD&gt;&lt;TD width="129"&gt;&lt;P&gt;&lt;STRONG&gt;Allow NULL values&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="233"&gt;&lt;P&gt;false&lt;/P&gt;&lt;/TD&gt;&lt;TD width="129"&gt;&lt;P&gt;&lt;STRONG&gt;Required&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="233"&gt;&lt;P&gt;4&lt;/P&gt;&lt;/TD&gt;&lt;TD width="129"&gt;&lt;P&gt;Length&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="233"&gt;&lt;P&gt;Long&lt;/P&gt;&lt;/TD&gt;&lt;TD width="129"&gt;&lt;P&gt;Type&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="233"&gt;&lt;P&gt;0&lt;/P&gt;&lt;/TD&gt;&lt;TD width="129"&gt;&lt;P&gt;&lt;STRONG&gt;Scale&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="233"&gt;&lt;P&gt;0&lt;/P&gt;&lt;/TD&gt;&lt;TD width="129"&gt;&lt;P&gt;&lt;STRONG&gt;Precision&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="233"&gt;&lt;P&gt;First&lt;/P&gt;&lt;/TD&gt;&lt;TD width="129"&gt;&lt;P&gt;Merge Rule&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="233"&gt;&lt;P&gt;#&lt;/P&gt;&lt;/TD&gt;&lt;TD width="129"&gt;&lt;P&gt;&lt;STRONG&gt;Delimiter&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="233"&gt;&lt;P&gt;C:\\temp\\test1.gdb\\Hospital&lt;/P&gt;&lt;/TD&gt;&lt;TD width="129"&gt;&lt;P&gt;Source data&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="233"&gt;&lt;P&gt;OBJECTID&lt;/P&gt;&lt;/TD&gt;&lt;TD width="129"&gt;&lt;P&gt;Source field&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="233"&gt;&lt;P&gt;-1&lt;/P&gt;&lt;/TD&gt;&lt;TD width="129"&gt;&lt;P&gt;&lt;STRONG&gt;Start Position&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="233"&gt;&lt;P&gt;-1&lt;/P&gt;&lt;/TD&gt;&lt;TD width="129"&gt;&lt;P&gt;&lt;STRONG&gt;End Position&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;P&gt;-Shana&lt;/P&gt;</description>
      <pubDate>Mon, 24 May 2021 17:19:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/field-mapping-with-create-composite-locator/m-p/1061039#M43342</guid>
      <dc:creator>ShanaBritt</dc:creator>
      <dc:date>2021-05-24T17:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: Field Mapping with Create Composite Locator</title>
      <link>https://community.esri.com/t5/data-management-questions/field-mapping-with-create-composite-locator/m-p/1061046#M43343</link>
      <description>&lt;P&gt;Thanks Shana!&lt;/P&gt;</description>
      <pubDate>Mon, 24 May 2021 17:36:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/field-mapping-with-create-composite-locator/m-p/1061046#M43343</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2021-05-24T17:36:17Z</dc:date>
    </item>
  </channel>
</rss>

