<?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: Can rebuild locator in Pro but not in arcpy in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/can-rebuild-locator-in-pro-but-not-in-arcpy/m-p/1632823#M74491</link>
    <description>&lt;P&gt;I think I'm bumping into the same issue. IDK, might be version issues between locators and db?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The reference data is in an enterprise SDE db.&lt;BR /&gt;I'm signed-in to our enterprise licensing through Portal.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MattGoodman_0-1752500381000.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/136468i7C05CBBD7F79BD20/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MattGoodman_0-1752500381000.png" alt="MattGoodman_0-1752500381000.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MattGoodman_1-1752500440577.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/136469i4811CD432565EF57/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MattGoodman_1-1752500440577.png" alt="MattGoodman_1-1752500440577.png" /&gt;&lt;/span&gt;&lt;BR /&gt;S&lt;/P&gt;</description>
    <pubDate>Mon, 14 Jul 2025 13:49:02 GMT</pubDate>
    <dc:creator>Matt-Goodman</dc:creator>
    <dc:date>2025-07-14T13:49:02Z</dc:date>
    <item>
      <title>Can rebuild locator in Pro but not in arcpy</title>
      <link>https://community.esri.com/t5/python-questions/can-rebuild-locator-in-pro-but-not-in-arcpy/m-p/1510826#M71135</link>
      <description>&lt;P&gt;Hey all, running into an issue where I can rebuild a locator in Pro running the gp tool Rebuild Address Locator, but if I try to rebuild it in a script using arcpy, it doesn't work. I get&amp;nbsp;&lt;A href="https://doc.arcgis.com/en/allsource/1.0/reference/tool-errors-and-warnings/000001-010000/tool-errors-and-warnings-00001-00025-000005.htm" target="_self"&gt;'Error 000005: Could not open the address locator'&lt;/A&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;The rest of the code in my script publishing the locator and sharing it works fine, I just cant rebuild it. The execution block for this part of the script is about as simple as it can be as arcpy.geocoding.RebuildAddressLocator only has one argument, the locator path.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;try:
    arcpy.geocoding.RebuildAddressLocator(locator_path)
    print("The geocoder was rebuilt successfully")

except arcpy.ExecuteError:
    print("Error rebuilding")
    print(arcpy.GetMessages(2))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found this post - &lt;A href="https://community.esri.com/t5/python-questions/error-000005-quot-could-not-open-address-locator/td-p/1285959" target="_blank"&gt;https://community.esri.com/t5/python-questions/error-000005-quot-could-not-open-address-locator/td-p/1285959&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But I am already running this script on the same server where we do a lot of our Pro work, and always have Pro open and signed into both AGOL and our Portal. Doesn't seem to be a pathing or environment issue as publishing works fine.&lt;/P&gt;&lt;P&gt;Is this a bug or am I missing something? Thanks,&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2024 19:32:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/can-rebuild-locator-in-pro-but-not-in-arcpy/m-p/1510826#M71135</guid>
      <dc:creator>AaronManuel2</dc:creator>
      <dc:date>2024-07-26T19:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: Can rebuild locator in Pro but not in arcpy</title>
      <link>https://community.esri.com/t5/python-questions/can-rebuild-locator-in-pro-but-not-in-arcpy/m-p/1510950#M71139</link>
      <description>&lt;P&gt;You're doing everything exactly like for the docs say, I don't think it's anything with how your wrote your business logic, but probably something with permissions. It seems like that function just raises a generic error when it fail to authenticate.&lt;/P&gt;</description>
      <pubDate>Sat, 27 Jul 2024 05:19:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/can-rebuild-locator-in-pro-but-not-in-arcpy/m-p/1510950#M71139</guid>
      <dc:creator>HaydenWelch</dc:creator>
      <dc:date>2024-07-27T05:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: Can rebuild locator in Pro but not in arcpy</title>
      <link>https://community.esri.com/t5/python-questions/can-rebuild-locator-in-pro-but-not-in-arcpy/m-p/1512915#M71161</link>
      <description>&lt;P&gt;Thanks for looking. I'm not sure what else to try, there are no other variables to test with. I've re-created it several times manually but that hasn't fixed the issue. And in the script I am signing into both arcgis online and portal in order to publish the service definition, and share the locator publicly. So I'm pretty stumped!&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2024 13:38:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/can-rebuild-locator-in-pro-but-not-in-arcpy/m-p/1512915#M71161</guid>
      <dc:creator>AaronManuel2</dc:creator>
      <dc:date>2024-07-31T13:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: Can rebuild locator in Pro but not in arcpy</title>
      <link>https://community.esri.com/t5/python-questions/can-rebuild-locator-in-pro-but-not-in-arcpy/m-p/1515395#M71211</link>
      <description>&lt;P&gt;check if you are using the correct path of python executable... python 3 not python 2.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2024 10:22:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/can-rebuild-locator-in-pro-but-not-in-arcpy/m-p/1515395#M71211</guid>
      <dc:creator>Tomasz_Tarchalski</dc:creator>
      <dc:date>2024-08-06T10:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: Can rebuild locator in Pro but not in arcpy</title>
      <link>https://community.esri.com/t5/python-questions/can-rebuild-locator-in-pro-but-not-in-arcpy/m-p/1588272#M73777</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;Did you ever sort this out?&amp;nbsp; We are completely stumped by the same issue....&lt;/P&gt;</description>
      <pubDate>Sat, 22 Feb 2025 00:25:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/can-rebuild-locator-in-pro-but-not-in-arcpy/m-p/1588272#M73777</guid>
      <dc:creator>CortWilson</dc:creator>
      <dc:date>2025-02-22T00:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: Can rebuild locator in Pro but not in arcpy</title>
      <link>https://community.esri.com/t5/python-questions/can-rebuild-locator-in-pro-but-not-in-arcpy/m-p/1588487#M73781</link>
      <description>&lt;P&gt;Hello, I did find a workaround. I changed my script to rebuild from local reference data, in a file geodatabase, instead of referencing data from our db or server and for some reason it works. So now I have a job on our server machine that exports our address data into this file gdb before the rebuild script runs so its using the latest data.&lt;/P&gt;&lt;P&gt;This has to be a bug or incompatibility issue of some kind, though our backend configuration is not out of the ordinary. I haven't tested it recently to see if it will work pointed to server/db now, but my script is still working with the local data so I'm just leaving it at that. Hope this helps.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2025 13:26:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/can-rebuild-locator-in-pro-but-not-in-arcpy/m-p/1588487#M73781</guid>
      <dc:creator>AaronManuel2</dc:creator>
      <dc:date>2025-02-24T13:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: Can rebuild locator in Pro but not in arcpy</title>
      <link>https://community.esri.com/t5/python-questions/can-rebuild-locator-in-pro-but-not-in-arcpy/m-p/1588624#M73785</link>
      <description>&lt;P&gt;Oh, interesting... Yes, that is helpful. It kind of sounds like there is some sort of permission issue.&amp;nbsp; Either ArcGIS Pro or database connection user.&amp;nbsp; At this point, I'm just going to open a case and dive into it with ESRI.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2025 17:30:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/can-rebuild-locator-in-pro-but-not-in-arcpy/m-p/1588624#M73785</guid>
      <dc:creator>CortWilson</dc:creator>
      <dc:date>2025-02-24T17:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: Can rebuild locator in Pro but not in arcpy</title>
      <link>https://community.esri.com/t5/python-questions/can-rebuild-locator-in-pro-but-not-in-arcpy/m-p/1632823#M74491</link>
      <description>&lt;P&gt;I think I'm bumping into the same issue. IDK, might be version issues between locators and db?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The reference data is in an enterprise SDE db.&lt;BR /&gt;I'm signed-in to our enterprise licensing through Portal.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MattGoodman_0-1752500381000.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/136468i7C05CBBD7F79BD20/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MattGoodman_0-1752500381000.png" alt="MattGoodman_0-1752500381000.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MattGoodman_1-1752500440577.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/136469i4811CD432565EF57/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MattGoodman_1-1752500440577.png" alt="MattGoodman_1-1752500440577.png" /&gt;&lt;/span&gt;&lt;BR /&gt;S&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jul 2025 13:49:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/can-rebuild-locator-in-pro-but-not-in-arcpy/m-p/1632823#M74491</guid>
      <dc:creator>Matt-Goodman</dc:creator>
      <dc:date>2025-07-14T13:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: Can rebuild locator in Pro but not in arcpy</title>
      <link>https://community.esri.com/t5/python-questions/can-rebuild-locator-in-pro-but-not-in-arcpy/m-p/1632958#M74495</link>
      <description>&lt;P&gt;Support ended up logging a BUG for the issue I was facing.&amp;nbsp; It's in their product plan now, so it will be addressed at some point.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CortWilson_0-1752526681748.png" style="width: 652px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/136484i6D41742E701F4324/image-dimensions/652x272?v=v2" width="652" height="272" role="button" title="CortWilson_0-1752526681748.png" alt="CortWilson_0-1752526681748.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jul 2025 20:59:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/can-rebuild-locator-in-pro-but-not-in-arcpy/m-p/1632958#M74495</guid>
      <dc:creator>CortWilson</dc:creator>
      <dc:date>2025-07-14T20:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: Can rebuild locator in Pro but not in arcpy</title>
      <link>https://community.esri.com/t5/python-questions/can-rebuild-locator-in-pro-but-not-in-arcpy/m-p/1632967#M74496</link>
      <description>&lt;P&gt;Huh, thanks Cort. Seems like their Bug report is saying the issue is trying to rebuild the locator if its also open in a pro project? I don't recall that specifically being my issue but maybe it was.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jul 2025 21:41:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/can-rebuild-locator-in-pro-but-not-in-arcpy/m-p/1632967#M74496</guid>
      <dc:creator>AaronManuel2</dc:creator>
      <dc:date>2025-07-14T21:41:08Z</dc:date>
    </item>
  </channel>
</rss>

