<?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 Re: Rebuilding geocoder published to portal in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/rebuilding-geocoder-published-to-portal/m-p/1490609#M10162</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/377526"&gt;@AaronManuel2&lt;/a&gt;&amp;nbsp;The following help topic references the best practice for updating a locator and the geocode service.&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/geocoding/keep-your-locator-up-to-date.htm#ESRI_SECTION1_12AA5C7DF3B44701B13DD015F6D1BA02" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/help/data/geocoding/keep-your-locator-up-to-date.htm#ESRI_SECTION1_12AA5C7DF3B44701B13DD015F6D1BA02&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 12 Jun 2024 14:58:54 GMT</pubDate>
    <dc:creator>ShanaBritt</dc:creator>
    <dc:date>2024-06-12T14:58:54Z</dc:date>
    <item>
      <title>Rebuilding geocoder published to portal</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/rebuilding-geocoder-published-to-portal/m-p/1472912#M10023</link>
      <description>&lt;P&gt;Hi, I'm looking to write a script to rebuild a geocoder published to portal 11.2&lt;/P&gt;&lt;P&gt;Something like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;gis = GIS(
url="&amp;lt;portal url&amp;gt;",
username="&amp;lt;username&amp;gt;",
password="&amp;lt;pw&amp;gt;",
verify_cert=True,
)

gis_servers = gis.admin.servers.list()

server = gis_servers[0]

services = server.services.list(folder='Geocoders')

address_locator1 = services[0]  #locator to rebuild 1

address_locator2 = services[1]  #locator to rebuild 2

arcpy.geocoding.RebuildAddressLocator(address_locator1) #?&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can access the services and see everything so no issues there. But the reference data for these 2 locators, is in our local production DB.&amp;nbsp; So I'm not sure how the rebuild function would access the data.&lt;/P&gt;&lt;P&gt;Do I need to write a script that uses an sd draft instead? Or what if I changed the locators reference data to use publicly accessible hosted services? I'm assuming that would work.&lt;/P&gt;&lt;P&gt;Whats best practice? Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2024 14:26:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/rebuilding-geocoder-published-to-portal/m-p/1472912#M10023</guid>
      <dc:creator>AaronManuel2</dc:creator>
      <dc:date>2024-05-15T14:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: Rebuilding geocoder published to portal</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/rebuilding-geocoder-published-to-portal/m-p/1490609#M10162</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/377526"&gt;@AaronManuel2&lt;/a&gt;&amp;nbsp;The following help topic references the best practice for updating a locator and the geocode service.&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/geocoding/keep-your-locator-up-to-date.htm#ESRI_SECTION1_12AA5C7DF3B44701B13DD015F6D1BA02" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/help/data/geocoding/keep-your-locator-up-to-date.htm#ESRI_SECTION1_12AA5C7DF3B44701B13DD015F6D1BA02&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2024 14:58:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/rebuilding-geocoder-published-to-portal/m-p/1490609#M10162</guid>
      <dc:creator>ShanaBritt</dc:creator>
      <dc:date>2024-06-12T14:58:54Z</dc:date>
    </item>
  </channel>
</rss>

